From d9d3b51e7d89f4485b6587b7f5dcb28a45e6397c Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 23 Aug 2022 19:17:35 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= 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 --- .../cloud/datastream/v1/DatastreamClient.java | 96 +- .../datastream/v1/DatastreamSettings.java | 19 +- .../cloud/datastream/v1/gapic_metadata.json | 0 .../cloud/datastream/v1/package-info.java | 0 .../datastream/v1/stub/DatastreamStub.java | 0 .../v1/stub/DatastreamStubSettings.java | 51 +- .../stub/GrpcDatastreamCallableFactory.java | 0 .../v1/stub/GrpcDatastreamStub.java | 1 - .../HttpJsonDatastreamCallableFactory.java | 0 .../v1/stub/HttpJsonDatastreamStub.java | 1 - .../datastream/v1alpha1/DatastreamClient.java | 72 +- .../v1alpha1/DatastreamSettings.java | 19 +- .../datastream/v1alpha1/gapic_metadata.json | 0 .../datastream/v1alpha1/package-info.java | 0 .../v1alpha1/stub/DatastreamStub.java | 0 .../v1alpha1/stub/DatastreamStubSettings.java | 48 +- .../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 | 3220 +++++++++++++++++ .../datastream/v1alpha1/DatastreamGrpc.java | 2768 ++++++++++++++ .../cloud/datastream/v1/DatastreamGrpc.java | 2399 ------------ .../v1/AvroFileFormatOrBuilder.java | 9 - .../v1/BigQueryProfileOrBuilder.java | 9 - .../cloud/datastream/v1/DatastreamProto.java | 739 ---- .../v1/DatastreamResourcesProto.java | 1001 ----- .../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 | 29 - .../StaticServiceIpConnectivityOrBuilder.java | 9 - .../v1/StopBackfillJobRequestOrBuilder.java | 29 - .../datastream/v1alpha1/DatastreamGrpc.java | 2059 ----------- .../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 - .../cloud/datastream/v1/AvroFileFormat.java | 225 +- .../v1/AvroFileFormatOrBuilder.java | 24 + .../cloud/datastream/v1/BackfillJob.java | 1049 ++++-- .../datastream/v1/BackfillJobOrBuilder.java | 109 +- .../v1/BigQueryDestinationConfig.java | 2413 +++++++----- .../BigQueryDestinationConfigOrBuilder.java | 81 +- .../cloud/datastream/v1/BigQueryProfile.java | 225 +- .../v1/BigQueryProfileOrBuilder.java | 24 + .../datastream/v1/ConnectionProfile.java | 2052 +++++++---- .../datastream/v1/ConnectionProfileName.java | 0 .../v1/ConnectionProfileOrBuilder.java | 192 +- .../v1/CreateConnectionProfileRequest.java | 736 ++-- ...eateConnectionProfileRequestOrBuilder.java | 79 +- .../v1/CreatePrivateConnectionRequest.java | 660 ++-- ...eatePrivateConnectionRequestOrBuilder.java | 73 +- .../datastream/v1/CreateRouteRequest.java | 624 ++-- .../v1/CreateRouteRequestOrBuilder.java | 70 +- .../datastream/v1/CreateStreamRequest.java | 715 ++-- .../v1/CreateStreamRequestOrBuilder.java | 76 +- .../cloud/datastream/v1/DatastreamProto.java | 810 +++++ .../v1/DatastreamResourcesProto.java | 1176 ++++++ .../v1/DeleteConnectionProfileRequest.java | 432 ++- ...leteConnectionProfileRequestOrBuilder.java | 44 +- .../v1/DeletePrivateConnectionRequest.java | 469 ++- ...letePrivateConnectionRequestOrBuilder.java | 47 +- .../datastream/v1/DeleteRouteRequest.java | 418 ++- .../v1/DeleteRouteRequestOrBuilder.java | 44 +- .../datastream/v1/DeleteStreamRequest.java | 418 ++- .../v1/DeleteStreamRequestOrBuilder.java | 44 +- .../datastream/v1/DestinationConfig.java | 705 ++-- .../v1/DestinationConfigOrBuilder.java | 66 +- .../v1/DiscoverConnectionProfileRequest.java | 1109 ++++-- ...overConnectionProfileRequestOrBuilder.java | 97 +- .../v1/DiscoverConnectionProfileResponse.java | 627 ++-- ...verConnectionProfileResponseOrBuilder.java | 45 +- .../com/google/cloud/datastream/v1/Error.java | 805 +++-- .../cloud/datastream/v1/ErrorOrBuilder.java | 84 +- .../datastream/v1/FetchStaticIpsRequest.java | 452 ++- .../v1/FetchStaticIpsRequestOrBuilder.java | 47 +- .../datastream/v1/FetchStaticIpsResponse.java | 425 ++- .../v1/FetchStaticIpsResponseOrBuilder.java | 45 +- .../v1/ForwardSshTunnelConnectivity.java | 659 ++-- ...ForwardSshTunnelConnectivityOrBuilder.java | 66 +- .../datastream/v1/GcsDestinationConfig.java | 698 ++-- .../v1/GcsDestinationConfigOrBuilder.java | 54 +- .../cloud/datastream/v1/GcsProfile.java | 380 +- .../datastream/v1/GcsProfileOrBuilder.java | 36 +- .../v1/GetConnectionProfileRequest.java | 342 +- .../GetConnectionProfileRequestOrBuilder.java | 54 + .../v1/GetPrivateConnectionRequest.java | 342 +- .../GetPrivateConnectionRequestOrBuilder.java | 54 + .../cloud/datastream/v1/GetRouteRequest.java | 329 +- .../v1/GetRouteRequestOrBuilder.java | 54 + .../datastream/v1/GetStreamObjectRequest.java | 342 +- .../v1/GetStreamObjectRequestOrBuilder.java | 54 + .../cloud/datastream/v1/GetStreamRequest.java | 332 +- .../v1/GetStreamRequestOrBuilder.java | 54 + .../cloud/datastream/v1/JsonFileFormat.java | 521 ++- .../v1/JsonFileFormatOrBuilder.java | 36 +- .../v1/ListConnectionProfilesRequest.java | 622 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../v1/ListConnectionProfilesResponse.java | 571 +-- ...stConnectionProfilesResponseOrBuilder.java | 60 +- .../v1/ListPrivateConnectionsRequest.java | 622 ++-- ...istPrivateConnectionsRequestOrBuilder.java | 65 +- .../v1/ListPrivateConnectionsResponse.java | 571 +-- ...stPrivateConnectionsResponseOrBuilder.java | 60 +- .../datastream/v1/ListRoutesRequest.java | 609 ++-- .../v1/ListRoutesRequestOrBuilder.java | 65 +- .../datastream/v1/ListRoutesResponse.java | 569 +-- .../v1/ListRoutesResponseOrBuilder.java | 64 +- .../v1/ListStreamObjectsRequest.java | 455 ++- .../v1/ListStreamObjectsRequestOrBuilder.java | 47 +- .../v1/ListStreamObjectsResponse.java | 456 ++- .../ListStreamObjectsResponseOrBuilder.java | 45 +- .../datastream/v1/ListStreamsRequest.java | 612 ++-- .../v1/ListStreamsRequestOrBuilder.java | 65 +- .../datastream/v1/ListStreamsResponse.java | 569 +-- .../v1/ListStreamsResponseOrBuilder.java | 63 +- .../cloud/datastream/v1/LocationName.java | 0 .../v1/LookupStreamObjectRequest.java | 506 ++- .../LookupStreamObjectRequestOrBuilder.java | 96 + .../cloud/datastream/v1/MysqlColumn.java | 603 +-- .../datastream/v1/MysqlColumnOrBuilder.java | 57 +- .../cloud/datastream/v1/MysqlDatabase.java | 450 ++- .../datastream/v1/MysqlDatabaseOrBuilder.java | 45 +- .../cloud/datastream/v1/MysqlProfile.java | 619 ++-- .../datastream/v1/MysqlProfileOrBuilder.java | 64 +- .../cloud/datastream/v1/MysqlRdbms.java | 349 +- .../datastream/v1/MysqlRdbmsOrBuilder.java | 36 +- .../datastream/v1/MysqlSourceConfig.java | 462 ++- .../v1/MysqlSourceConfigOrBuilder.java | 37 +- .../cloud/datastream/v1/MysqlSslConfig.java | 572 +-- .../v1/MysqlSslConfigOrBuilder.java | 54 +- .../cloud/datastream/v1/MysqlTable.java | 451 ++- .../datastream/v1/MysqlTableOrBuilder.java | 45 +- .../datastream/v1/OperationMetadata.java | 995 +++-- .../v1/OperationMetadataOrBuilder.java | 111 +- .../cloud/datastream/v1/OracleColumn.java | 671 ++-- .../datastream/v1/OracleColumnOrBuilder.java | 63 +- .../cloud/datastream/v1/OracleProfile.java | 815 +++-- .../datastream/v1/OracleProfileOrBuilder.java | 88 +- .../cloud/datastream/v1/OracleRdbms.java | 364 +- .../datastream/v1/OracleRdbmsOrBuilder.java | 36 +- .../cloud/datastream/v1/OracleSchema.java | 451 ++- .../datastream/v1/OracleSchemaOrBuilder.java | 45 +- .../datastream/v1/OracleSourceConfig.java | 1458 +++++--- .../v1/OracleSourceConfigOrBuilder.java | 83 +- .../cloud/datastream/v1/OracleTable.java | 443 ++- .../datastream/v1/OracleTableOrBuilder.java | 45 +- .../cloud/datastream/v1/PostgresqlColumn.java | 595 +-- .../v1/PostgresqlColumnOrBuilder.java | 54 +- .../datastream/v1/PostgresqlProfile.java | 581 +-- .../v1/PostgresqlProfileOrBuilder.java | 57 +- .../cloud/datastream/v1/PostgresqlRdbms.java | 357 +- .../v1/PostgresqlRdbmsOrBuilder.java | 36 +- .../cloud/datastream/v1/PostgresqlSchema.java | 435 ++- .../v1/PostgresqlSchemaOrBuilder.java | 45 +- .../datastream/v1/PostgresqlSourceConfig.java | 591 +-- .../v1/PostgresqlSourceConfigOrBuilder.java | 52 +- .../cloud/datastream/v1/PostgresqlTable.java | 436 ++- .../v1/PostgresqlTableOrBuilder.java | 45 +- .../datastream/v1/PrivateConnection.java | 1348 ++++--- .../datastream/v1/PrivateConnectionName.java | 0 .../v1/PrivateConnectionOrBuilder.java | 140 +- .../datastream/v1/PrivateConnectivity.java | 339 +- .../v1/PrivateConnectivityOrBuilder.java | 56 + .../com/google/cloud/datastream/v1/Route.java | 1030 +++--- .../google/cloud/datastream/v1/RouteName.java | 0 .../cloud/datastream/v1/RouteOrBuilder.java | 113 +- .../cloud/datastream/v1/SourceConfig.java | 780 ++-- .../datastream/v1/SourceConfigOrBuilder.java | 65 +- .../datastream/v1/SourceObjectIdentifier.java | 2470 ++++++++----- .../v1/SourceObjectIdentifierOrBuilder.java | 156 + .../v1/StartBackfillJobRequest.java | 342 +- .../v1/StartBackfillJobRequestOrBuilder.java | 54 + .../v1/StartBackfillJobResponse.java | 341 +- .../v1/StartBackfillJobResponseOrBuilder.java | 26 +- .../v1/StaticServiceIpConnectivity.java | 238 +- .../StaticServiceIpConnectivityOrBuilder.java | 24 + .../datastream/v1/StopBackfillJobRequest.java | 342 +- .../v1/StopBackfillJobRequestOrBuilder.java | 54 + .../v1/StopBackfillJobResponse.java | 341 +- .../v1/StopBackfillJobResponseOrBuilder.java | 26 +- .../google/cloud/datastream/v1/Stream.java | 2905 +++++++++------ .../cloud/datastream/v1/StreamName.java | 0 .../cloud/datastream/v1/StreamObject.java | 1102 ++++-- .../cloud/datastream/v1/StreamObjectName.java | 0 .../datastream/v1/StreamObjectOrBuilder.java | 125 +- .../cloud/datastream/v1/StreamOrBuilder.java | 226 +- .../v1/UpdateConnectionProfileRequest.java | 680 ++-- ...dateConnectionProfileRequestOrBuilder.java | 70 +- .../datastream/v1/UpdateStreamRequest.java | 659 ++-- .../v1/UpdateStreamRequestOrBuilder.java | 67 +- .../cloud/datastream/v1/Validation.java | 655 ++-- .../datastream/v1/ValidationMessage.java | 785 ++-- .../v1/ValidationMessageOrBuilder.java | 73 +- .../datastream/v1/ValidationOrBuilder.java | 60 +- .../cloud/datastream/v1/ValidationResult.java | 374 +- .../v1/ValidationResultOrBuilder.java | 36 +- .../cloud/datastream/v1/VpcPeeringConfig.java | 411 ++- .../v1/VpcPeeringConfigOrBuilder.java | 44 +- .../cloud/datastream/v1/datastream.proto | 0 .../datastream/v1/datastream_resources.proto | 0 .../datastream/v1alpha1/AvroFileFormat.java | 235 +- .../v1alpha1/AvroFileFormatOrBuilder.java | 24 + .../CloudDatastreamResourcesProto.java | 832 +++++ .../v1alpha1/CloudDatastreamServiceProto.java | 699 ++++ .../v1alpha1/ConnectionProfile.java | 2051 +++++++---- .../v1alpha1/ConnectionProfileName.java | 0 .../v1alpha1/ConnectionProfileOrBuilder.java | 193 +- .../CreateConnectionProfileRequest.java | 702 ++-- ...eateConnectionProfileRequestOrBuilder.java | 73 +- .../CreatePrivateConnectionRequest.java | 702 ++-- ...eatePrivateConnectionRequestOrBuilder.java | 73 +- .../v1alpha1/CreateRouteRequest.java | 649 ++-- .../v1alpha1/CreateRouteRequestOrBuilder.java | 73 +- .../v1alpha1/CreateStreamRequest.java | 729 ++-- .../CreateStreamRequestOrBuilder.java | 79 +- .../DeleteConnectionProfileRequest.java | 461 ++- ...leteConnectionProfileRequestOrBuilder.java | 44 +- .../DeletePrivateConnectionRequest.java | 498 +-- ...letePrivateConnectionRequestOrBuilder.java | 47 +- .../v1alpha1/DeleteRouteRequest.java | 421 ++- .../v1alpha1/DeleteRouteRequestOrBuilder.java | 44 +- .../v1alpha1/DeleteStreamRequest.java | 425 ++- .../DeleteStreamRequestOrBuilder.java | 44 +- .../v1alpha1/DestinationConfig.java | 548 +-- .../v1alpha1/DestinationConfigOrBuilder.java | 50 +- .../DiscoverConnectionProfileRequest.java | 1032 ++++-- ...overConnectionProfileRequestOrBuilder.java | 92 +- .../DiscoverConnectionProfileResponse.java | 540 +-- ...verConnectionProfileResponseOrBuilder.java | 37 +- .../cloud/datastream/v1alpha1/Error.java | 812 +++-- .../datastream/v1alpha1/ErrorOrBuilder.java | 84 +- .../v1alpha1/FetchErrorsRequest.java | 314 +- .../v1alpha1/FetchErrorsRequestOrBuilder.java | 27 +- .../v1alpha1/FetchErrorsResponse.java | 384 +- .../FetchErrorsResponseOrBuilder.java | 36 +- .../v1alpha1/FetchStaticIpsRequest.java | 455 ++- .../FetchStaticIpsRequestOrBuilder.java | 47 +- .../v1alpha1/FetchStaticIpsResponse.java | 425 ++- .../FetchStaticIpsResponseOrBuilder.java | 45 +- .../ForwardSshTunnelConnectivity.java | 688 ++-- ...ForwardSshTunnelConnectivityOrBuilder.java | 66 +- .../v1alpha1/GcsDestinationConfig.java | 856 +++-- .../GcsDestinationConfigOrBuilder.java | 83 +- .../datastream/v1alpha1/GcsFileFormat.java | 80 +- .../cloud/datastream/v1alpha1/GcsProfile.java | 383 +- .../v1alpha1/GcsProfileOrBuilder.java | 36 +- .../v1alpha1/GetConnectionProfileRequest.java | 367 +- .../GetConnectionProfileRequestOrBuilder.java | 54 + .../v1alpha1/GetPrivateConnectionRequest.java | 367 +- .../GetPrivateConnectionRequestOrBuilder.java | 54 + .../datastream/v1alpha1/GetRouteRequest.java | 339 +- .../v1alpha1/GetRouteRequestOrBuilder.java | 54 + .../datastream/v1alpha1/GetStreamRequest.java | 346 +- .../v1alpha1/GetStreamRequestOrBuilder.java | 54 + .../datastream/v1alpha1/JsonFileFormat.java | 465 ++- .../v1alpha1/JsonFileFormatOrBuilder.java | 30 +- .../ListConnectionProfilesRequest.java | 652 ++-- ...istConnectionProfilesRequestOrBuilder.java | 65 +- .../ListConnectionProfilesResponse.java | 701 ++-- ...stConnectionProfilesResponseOrBuilder.java | 74 +- .../ListPrivateConnectionsRequest.java | 652 ++-- ...istPrivateConnectionsRequestOrBuilder.java | 65 +- .../ListPrivateConnectionsResponse.java | 701 ++-- ...stPrivateConnectionsResponseOrBuilder.java | 74 +- .../v1alpha1/ListRoutesRequest.java | 615 ++-- .../v1alpha1/ListRoutesRequestOrBuilder.java | 65 +- .../v1alpha1/ListRoutesResponse.java | 573 +-- .../v1alpha1/ListRoutesResponseOrBuilder.java | 63 +- .../v1alpha1/ListStreamsRequest.java | 619 ++-- .../v1alpha1/ListStreamsRequestOrBuilder.java | 65 +- .../v1alpha1/ListStreamsResponse.java | 577 +-- .../ListStreamsResponseOrBuilder.java | 63 +- .../datastream/v1alpha1/LocationName.java | 0 .../datastream/v1alpha1/MysqlColumn.java | 610 ++-- .../v1alpha1/MysqlColumnOrBuilder.java | 57 +- .../datastream/v1alpha1/MysqlDatabase.java | 443 ++- .../v1alpha1/MysqlDatabaseOrBuilder.java | 45 +- .../datastream/v1alpha1/MysqlProfile.java | 630 ++-- .../v1alpha1/MysqlProfileOrBuilder.java | 64 +- .../cloud/datastream/v1alpha1/MysqlRdbms.java | 361 +- .../v1alpha1/MysqlRdbmsOrBuilder.java | 36 +- .../v1alpha1/MysqlSourceConfig.java | 438 ++- .../v1alpha1/MysqlSourceConfigOrBuilder.java | 34 +- .../datastream/v1alpha1/MysqlSslConfig.java | 582 +-- .../v1alpha1/MysqlSslConfigOrBuilder.java | 54 +- .../cloud/datastream/v1alpha1/MysqlTable.java | 438 ++- .../v1alpha1/MysqlTableOrBuilder.java | 45 +- .../v1alpha1/NoConnectivitySettings.java | 238 +- .../NoConnectivitySettingsOrBuilder.java | 24 + .../v1alpha1/OperationMetadata.java | 1017 ++++-- .../v1alpha1/OperationMetadataOrBuilder.java | 111 +- .../datastream/v1alpha1/OracleColumn.java | 681 ++-- .../v1alpha1/OracleColumnOrBuilder.java | 63 +- .../datastream/v1alpha1/OracleProfile.java | 825 +++-- .../v1alpha1/OracleProfileOrBuilder.java | 88 +- .../datastream/v1alpha1/OracleRdbms.java | 362 +- .../v1alpha1/OracleRdbmsOrBuilder.java | 36 +- .../datastream/v1alpha1/OracleSchema.java | 445 ++- .../v1alpha1/OracleSchemaOrBuilder.java | 45 +- .../v1alpha1/OracleSourceConfig.java | 438 ++- .../v1alpha1/OracleSourceConfigOrBuilder.java | 34 +- .../datastream/v1alpha1/OracleTable.java | 441 ++- .../v1alpha1/OracleTableOrBuilder.java | 45 +- .../v1alpha1/PrivateConnection.java | 1379 ++++--- .../v1alpha1/PrivateConnectionName.java | 0 .../v1alpha1/PrivateConnectionOrBuilder.java | 143 +- .../v1alpha1/PrivateConnectivity.java | 300 +- .../PrivateConnectivityOrBuilder.java | 38 + .../cloud/datastream/v1alpha1/Route.java | 1037 +++--- .../cloud/datastream/v1alpha1/RouteName.java | 0 .../datastream/v1alpha1/RouteOrBuilder.java | 113 +- .../datastream/v1alpha1/SchemaFileFormat.java | 86 +- .../datastream/v1alpha1/SourceConfig.java | 640 ++-- .../v1alpha1/SourceConfigOrBuilder.java | 52 +- .../v1alpha1/StaticServiceIpConnectivity.java | 259 +- .../StaticServiceIpConnectivityOrBuilder.java | 24 + .../cloud/datastream/v1alpha1/Stream.java | 2828 +++++++++------ .../cloud/datastream/v1alpha1/StreamName.java | 0 .../datastream/v1alpha1/StreamOrBuilder.java | 207 +- .../UpdateConnectionProfileRequest.java | 648 ++-- ...dateConnectionProfileRequestOrBuilder.java | 64 +- .../v1alpha1/UpdateStreamRequest.java | 673 ++-- .../UpdateStreamRequestOrBuilder.java | 70 +- .../cloud/datastream/v1alpha1/Validation.java | 667 ++-- .../v1alpha1/ValidationMessage.java | 799 ++-- .../v1alpha1/ValidationMessageOrBuilder.java | 73 +- .../v1alpha1/ValidationOrBuilder.java | 60 +- .../datastream/v1alpha1/ValidationResult.java | 367 +- .../v1alpha1/ValidationResultOrBuilder.java | 36 +- .../datastream/v1alpha1/VpcPeeringConfig.java | 393 +- .../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 .../getroute/AsyncGetRoute.java | 0 .../getroute/SyncGetRoute.java | 0 .../getroute/SyncGetRouteRoutename.java | 0 .../getroute/SyncGetRouteString.java | 0 .../getstream/AsyncGetStream.java | 0 .../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 .../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 .../getroute/AsyncGetRoute.java | 0 .../getroute/SyncGetRoute.java | 0 .../getroute/SyncGetRouteRoutename.java | 0 .../getroute/SyncGetRouteString.java | 0 .../getstream/AsyncGetStream.java | 0 .../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 .../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 577 files changed, 72155 insertions(+), 44412 deletions(-) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java (98%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java (99%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java (99%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java (98%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java (97%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java (98%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java (99%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java (99%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/MockLocations.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java (100%) create mode 100644 grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java create mode 100644 grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java (69%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java (61%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java (69%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java (74%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/Error.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java (56%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java (57%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java (64%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java (64%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java (65%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java (64%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java (65%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java (62%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleTable.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java (66%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/Route.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/RouteName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java (60%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java (64%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java (67%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java (64%) create mode 100644 proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/Stream.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StreamName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StreamObject.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/Validation.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java (52%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/proto/google/cloud/datastream/v1/datastream.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-datastream-v1 => proto-google-cloud-datastream-v1}/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java (67%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfile.java (64%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java (74%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java (64%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java (55%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java (77%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java (51%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java (73%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java (62%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java (55%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java (74%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java (63%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java (60%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java (62%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java (62%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java (66%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java (64%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java (64%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java (74%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java (64%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java (73%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java (73%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java (74%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java (70%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java (66%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java (75%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java (75%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java (77%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java (76%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java (67%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java (73%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java (75%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java (74%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java (76%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java (63%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java (69%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java (68%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java (72%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java (64%) create mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java (67%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java (75%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java (73%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java (78%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java (74%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java (65%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java (73%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java (75%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java (69%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java (71%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java (60%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto (100%) rename {owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1 => proto-google-cloud-datastream-v1alpha1}/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) rename {owl-bot-staging/v1alpha1/samples => samples}/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java index c5bf414c..d4b891db 100644 --- a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -67,13 +67,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -3564,8 +3564,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectionProfilesPagedResponse extends AbstractPagedListResponse< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, - ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, + ListConnectionProfilesPage, + ListConnectionProfilesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3587,7 +3590,9 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -3623,8 +3628,11 @@ public ApiFuture createPageAsync( public static class ListConnectionProfilesFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, - ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, + ListConnectionProfilesPage, + ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( List pages, int collectionSize) { @@ -3644,7 +3652,10 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3691,7 +3702,10 @@ public ApiFuture createPageAsync( public static class ListStreamsFixedSizeCollection extends AbstractFixedSizeCollection< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { private ListStreamsFixedSizeCollection(List pages, int collectionSize) { @@ -3711,7 +3725,10 @@ protected ListStreamsFixedSizeCollection createCollection( public static class ListStreamObjectsPagedResponse extends AbstractPagedListResponse< - ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, ListStreamObjectsPage, + ListStreamObjectsRequest, + ListStreamObjectsResponse, + StreamObject, + ListStreamObjectsPage, ListStreamObjectsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3732,7 +3749,9 @@ private ListStreamObjectsPagedResponse(ListStreamObjectsPage page) { public static class ListStreamObjectsPage extends AbstractPage< - ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, + ListStreamObjectsRequest, + ListStreamObjectsResponse, + StreamObject, ListStreamObjectsPage> { private ListStreamObjectsPage( @@ -3762,7 +3781,10 @@ public ApiFuture createPageAsync( public static class ListStreamObjectsFixedSizeCollection extends AbstractFixedSizeCollection< - ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, ListStreamObjectsPage, + ListStreamObjectsRequest, + ListStreamObjectsResponse, + StreamObject, + ListStreamObjectsPage, ListStreamObjectsFixedSizeCollection> { private ListStreamObjectsFixedSizeCollection( @@ -3783,7 +3805,10 @@ protected ListStreamObjectsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3833,7 +3858,10 @@ public ApiFuture createPageAsync( public static class FetchStaticIpsFixedSizeCollection extends AbstractFixedSizeCollection< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { @@ -3853,8 +3881,11 @@ protected FetchStaticIpsFixedSizeCollection createCollection( public static class ListPrivateConnectionsPagedResponse extends AbstractPagedListResponse< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, - ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage, + ListPrivateConnectionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3876,7 +3907,9 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3912,8 +3945,11 @@ public ApiFuture createPageAsync( public static class ListPrivateConnectionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, - ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage, + ListPrivateConnectionsFixedSizeCollection> { private ListPrivateConnectionsFixedSizeCollection( List pages, int collectionSize) { @@ -3933,7 +3969,10 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3980,7 +4019,10 @@ public ApiFuture createPageAsync( public static class ListRoutesFixedSizeCollection extends AbstractFixedSizeCollection< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { private ListRoutesFixedSizeCollection(List pages, int collectionSize) { @@ -4000,7 +4042,10 @@ protected ListRoutesFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -4050,7 +4095,10 @@ public ApiFuture createPageAsync( public static class ListLocationsFixedSizeCollection extends AbstractFixedSizeCollection< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { private ListLocationsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java index f7262b1a..c300817a 100644 --- a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java +++ b/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; @@ -56,9 +55,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (datastream.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datastream.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -87,7 +86,8 @@ public class DatastreamSettings extends ClientSettings { /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return ((DatastreamStubSettings) getStubSettings()).listConnectionProfilesSettings(); @@ -241,7 +241,8 @@ public UnaryCallSettings lookupStreamOb /** Returns the object with the settings used for calls to listPrivateConnections. */ public PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return ((DatastreamStubSettings) getStubSettings()).listPrivateConnectionsSettings(); @@ -419,7 +420,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return getStubSettingsBuilder().listConnectionProfilesSettings(); @@ -580,7 +582,8 @@ public UnaryCallSettings.Builder deleteStreamSet /** Returns the builder for the settings used for calls to listPrivateConnections. */ public PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return getStubSettingsBuilder().listPrivateConnectionsSettings(); diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java index 7d2bde58..6114d9a9 100644 --- a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java @@ -115,9 +115,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (datastream.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datastream.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -148,7 +148,8 @@ public class DatastreamStubSettings extends StubSettings ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings @@ -203,7 +204,8 @@ public class DatastreamStubSettings extends StubSettings private final UnaryCallSettings getPrivateConnectionSettings; private final PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings @@ -496,11 +498,13 @@ public Iterable extractResources(ListLocationsResponse payload) { }; private static final PagedListResponseFactory< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> LIST_CONNECTION_PROFILES_PAGE_STR_FACT = new PagedListResponseFactory< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -510,7 +514,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -540,7 +545,8 @@ public ApiFuture getFuturePagedResponse( ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> LIST_STREAM_OBJECTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListStreamObjectsRequest, ListStreamObjectsResponse, + ListStreamObjectsRequest, + ListStreamObjectsResponse, ListStreamObjectsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -574,11 +580,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -588,7 +596,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, PrivateConnection> pageContext = PageContext.create( @@ -633,7 +642,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -787,7 +797,8 @@ public UnaryCallSettings lookupStreamOb /** Returns the object with the settings used for calls to listPrivateConnections. */ public PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return listPrivateConnectionsSettings; @@ -1003,7 +1014,8 @@ protected DatastreamStubSettings(Builder settingsBuilder) throws IOException { public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings.Builder @@ -1061,7 +1073,8 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1700,7 +1713,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -1875,7 +1889,8 @@ public UnaryCallSettings.Builder deleteStreamSet /** Returns the builder for the settings used for calls to listPrivateConnections. */ public PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return listPrivateConnectionsSettings; diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java index 0bb962fa..35aae842 100644 --- a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java +++ b/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/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java index 5500115e..93b28d2e 100644 --- a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/HttpJsonDatastreamStub.java @@ -36,7 +36,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/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java similarity index 98% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java index 4dde6d3f..2a9f640b 100644 --- a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java @@ -63,13 +63,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -2973,8 +2973,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectionProfilesPagedResponse extends AbstractPagedListResponse< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, - ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, + ListConnectionProfilesPage, + ListConnectionProfilesFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -2996,7 +2999,9 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -3032,8 +3037,11 @@ public ApiFuture createPageAsync( public static class ListConnectionProfilesFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, - ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, + ListConnectionProfilesPage, + ListConnectionProfilesFixedSizeCollection> { private ListConnectionProfilesFixedSizeCollection( List pages, int collectionSize) { @@ -3053,7 +3061,10 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3100,7 +3111,10 @@ public ApiFuture createPageAsync( public static class ListStreamsFixedSizeCollection extends AbstractFixedSizeCollection< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { private ListStreamsFixedSizeCollection(List pages, int collectionSize) { @@ -3120,7 +3134,10 @@ protected ListStreamsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3170,7 +3187,10 @@ public ApiFuture createPageAsync( public static class FetchStaticIpsFixedSizeCollection extends AbstractFixedSizeCollection< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { @@ -3190,8 +3210,11 @@ protected FetchStaticIpsFixedSizeCollection createCollection( public static class ListPrivateConnectionsPagedResponse extends AbstractPagedListResponse< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, - ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage, + ListPrivateConnectionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3213,7 +3236,9 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3249,8 +3274,11 @@ public ApiFuture createPageAsync( public static class ListPrivateConnectionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, - ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, + ListPrivateConnectionsPage, + ListPrivateConnectionsFixedSizeCollection> { private ListPrivateConnectionsFixedSizeCollection( List pages, int collectionSize) { @@ -3270,7 +3298,10 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3317,7 +3348,10 @@ public ApiFuture createPageAsync( public static class ListRoutesFixedSizeCollection extends AbstractFixedSizeCollection< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { private ListRoutesFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java similarity index 97% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java index 122b203e..bd0a8f98 100644 --- a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java +++ b/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; @@ -50,9 +49,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (datastream.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datastream.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -82,7 +81,8 @@ public class DatastreamSettings extends ClientSettings { /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return ((DatastreamStubSettings) getStubSettings()).listConnectionProfilesSettings(); @@ -218,7 +218,8 @@ public UnaryCallSettings fetchErrorsSettings() { /** Returns the object with the settings used for calls to listPrivateConnections. */ public PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return ((DatastreamStubSettings) getStubSettings()).listPrivateConnectionsSettings(); @@ -385,7 +386,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return getStubSettingsBuilder().listConnectionProfilesSettings(); @@ -526,7 +528,8 @@ public UnaryCallSettings.Builder fetchErrorsSetti /** Returns the builder for the settings used for calls to listPrivateConnections. */ public PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return getStubSettingsBuilder().listPrivateConnectionsSettings(); diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java similarity index 98% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java index 115901d8..09435df8 100644 --- a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java @@ -102,9 +102,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (datastream.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (datastream.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -136,7 +136,8 @@ public class DatastreamStubSettings extends StubSettings ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings @@ -184,7 +185,8 @@ public class DatastreamStubSettings extends StubSettings private final UnaryCallSettings getPrivateConnectionSettings; private final PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings @@ -397,11 +399,13 @@ public Iterable extractResources(ListRoutesResponse payload) { }; private static final PagedListResponseFactory< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> LIST_CONNECTION_PROFILES_PAGE_STR_FACT = new PagedListResponseFactory< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -411,7 +415,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -455,11 +460,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT = new PagedListResponseFactory< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -469,7 +476,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, PrivateConnection> pageContext = PageContext.create( @@ -497,7 +505,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -633,7 +642,8 @@ public UnaryCallSettings fetchErrorsSettings() { /** Returns the object with the settings used for calls to listPrivateConnections. */ public PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return listPrivateConnectionsSettings; @@ -833,7 +843,8 @@ protected DatastreamStubSettings(Builder settingsBuilder) throws IOException { public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings; private final UnaryCallSettings.Builder @@ -884,7 +895,8 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1490,7 +1502,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listConnectionProfiles. */ public PagedCallSettings.Builder< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -1647,7 +1660,8 @@ public UnaryCallSettings.Builder fetchErrorsSetti /** Returns the builder for the settings used for calls to listPrivateConnections. */ public PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return listPrivateConnectionsSettings; diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java similarity index 99% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java index f3d278fa..5379c0ad 100644 --- a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java +++ b/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/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamCallableFactory.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java similarity index 99% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java rename to google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java index ac1e165a..3a1a643d 100644 --- a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java +++ b/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/HttpJsonDatastreamStub.java @@ -34,7 +34,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/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocations.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockLocationsImpl.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientHttpJsonTest.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java diff --git a/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java new file mode 100644 index 00000000..c537dd31 --- /dev/null +++ b/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java @@ -0,0 +1,3220 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 abstract static class DatastreamImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionProfilesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionProfileMethod(), 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.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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteRoute( + com.google.cloud.datastream.v1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRouteMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>(this, 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>( + this, 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>( + this, METHODID_LIST_STREAMS))) + .addMethod( + getGetStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetStreamRequest, + com.google.cloud.datastream.v1.Stream>(this, METHODID_GET_STREAM))) + .addMethod( + getCreateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateStreamRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_STREAM))) + .addMethod( + getUpdateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.UpdateStreamRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_STREAM))) + .addMethod( + getDeleteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteStreamRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_STREAM))) + .addMethod( + getGetStreamObjectMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetStreamObjectRequest, + com.google.cloud.datastream.v1.StreamObject>( + this, 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>( + this, 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>( + this, 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>( + this, 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>( + this, 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>( + this, METHODID_FETCH_STATIC_IPS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>(this, 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>( + this, 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>( + this, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getCreateRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.CreateRouteRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ROUTE))) + .addMethod( + getGetRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.GetRouteRequest, + com.google.cloud.datastream.v1.Route>(this, METHODID_GET_ROUTE))) + .addMethod( + getListRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.ListRoutesRequest, + com.google.cloud.datastream.v1.ListRoutesResponse>( + this, METHODID_LIST_ROUTES))) + .addMethod( + getDeleteRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1.DeleteRouteRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ROUTE))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 DatastreamImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DatastreamImplBase 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(); + } + } + } + + 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/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java new file mode 100644 index 00000000..d1c53d48 --- /dev/null +++ b/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java @@ -0,0 +1,2768 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 abstract static class DatastreamImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionProfilesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getGetConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConnectionProfileMethod(), 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.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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteRoute( + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRouteMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, 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>( + this, METHODID_GET_CONNECTION_PROFILE))) + .addMethod( + getCreateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTION_PROFILE))) + .addMethod( + getUpdateConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_CONNECTION_PROFILE))) + .addMethod( + getDeleteConnectionProfileMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, + com.google.longrunning.Operation>(this, 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>( + this, 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>( + this, METHODID_LIST_STREAMS))) + .addMethod( + getGetStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetStreamRequest, + com.google.cloud.datastream.v1alpha1.Stream>(this, METHODID_GET_STREAM))) + .addMethod( + getCreateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateStreamRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_STREAM))) + .addMethod( + getUpdateStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_STREAM))) + .addMethod( + getDeleteStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_STREAM))) + .addMethod( + getFetchErrorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, + com.google.longrunning.Operation>(this, METHODID_FETCH_ERRORS))) + .addMethod( + getFetchStaticIpsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>( + this, METHODID_FETCH_STATIC_IPS))) + .addMethod( + getCreatePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, + com.google.longrunning.Operation>(this, 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>( + this, 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>( + this, METHODID_LIST_PRIVATE_CONNECTIONS))) + .addMethod( + getDeletePrivateConnectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_PRIVATE_CONNECTION))) + .addMethod( + getCreateRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.CreateRouteRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ROUTE))) + .addMethod( + getGetRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.GetRouteRequest, + com.google.cloud.datastream.v1alpha1.Route>(this, METHODID_GET_ROUTE))) + .addMethod( + getListRoutesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.ListRoutesRequest, + com.google.cloud.datastream.v1alpha1.ListRoutesResponse>( + this, METHODID_LIST_ROUTES))) + .addMethod( + getDeleteRouteMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_ROUTE))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 DatastreamImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DatastreamImplBase 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(); + } + } + } + + 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/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java deleted file mode 100644 index 87980183..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java +++ /dev/null @@ -1,2399 +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 static abstract class DatastreamImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), 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.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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteRoute(com.google.cloud.datastream.v1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRouteMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>( - this, 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>( - this, 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>( - this, METHODID_LIST_STREAMS))) - .addMethod( - getGetStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetStreamRequest, - com.google.cloud.datastream.v1.Stream>( - this, METHODID_GET_STREAM))) - .addMethod( - getCreateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateStreamRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_STREAM))) - .addMethod( - getUpdateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.UpdateStreamRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_STREAM))) - .addMethod( - getDeleteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteStreamRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_STREAM))) - .addMethod( - getGetStreamObjectMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetStreamObjectRequest, - com.google.cloud.datastream.v1.StreamObject>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, 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>( - this, METHODID_FETCH_STATIC_IPS))) - .addMethod( - getCreatePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation>( - this, 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>( - this, 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>( - this, METHODID_LIST_PRIVATE_CONNECTIONS))) - .addMethod( - getDeletePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_PRIVATE_CONNECTION))) - .addMethod( - getCreateRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.CreateRouteRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_ROUTE))) - .addMethod( - getGetRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.GetRouteRequest, - com.google.cloud.datastream.v1.Route>( - this, METHODID_GET_ROUTE))) - .addMethod( - getListRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.ListRoutesRequest, - com.google.cloud.datastream.v1.ListRoutesResponse>( - this, METHODID_LIST_ROUTES))) - .addMethod( - getDeleteRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1.DeleteRouteRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_ROUTE))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 DatastreamImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DatastreamImplBase 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(); - } - } - } - - 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java deleted file mode 100644 index 8dd2d0db..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java deleted file mode 100644 index 011e5d1f..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java deleted file mode 100644 index c56a8543..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ /dev/null @@ -1,739 +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 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\"\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\256\002\n\036c" + - "om.google.cloud.datastream.v1B\030Datastrea" + - "mResourcesProtoP\001ZDgoogle.golang.org/gen" + - "proto/googleapis/cloud/datastream/v1;dat" + - "astream\252\002\032Google.Cloud.Datastream.V1\312\002\032G" + - "oogle\\Cloud\\Datastream\\V1\352\002\035Google::Clou" + - "d::Datastream::V1\352AO\n\037compute.googleapis" + - ".com/Networks\022,projects/{project}/global" + - "/networks/{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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java deleted file mode 100644 index cbd87355..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java deleted file mode 100644 index 277aaf46..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java deleted file mode 100644 index ee7f97b7..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java deleted file mode 100644 index 4afde35b..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java deleted file mode 100644 index d61ac09e..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java deleted file mode 100644 index fb7a4690..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java deleted file mode 100644 index 7cf685c4..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java deleted file mode 100644 index 4c3568f7..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java deleted file mode 100644 index be48119f..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.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 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java deleted file mode 100644 index d385d5d4..00000000 --- a/owl-bot-staging/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java deleted file mode 100644 index 673f995d..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.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 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/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java b/owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java deleted file mode 100644 index 96fac2d9..00000000 --- a/owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ /dev/null @@ -1,2059 +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 static abstract class DatastreamImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionProfilesMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectionProfileMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionProfileMethod(), 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.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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteRoute(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRouteMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, 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>( - this, METHODID_GET_CONNECTION_PROFILE))) - .addMethod( - getCreateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_CONNECTION_PROFILE))) - .addMethod( - getUpdateConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_CONNECTION_PROFILE))) - .addMethod( - getDeleteConnectionProfileMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation>( - this, 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>( - this, 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>( - this, METHODID_LIST_STREAMS))) - .addMethod( - getGetStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream>( - this, METHODID_GET_STREAM))) - .addMethod( - getCreateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_STREAM))) - .addMethod( - getUpdateStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_STREAM))) - .addMethod( - getDeleteStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_STREAM))) - .addMethod( - getFetchErrorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, - com.google.longrunning.Operation>( - this, METHODID_FETCH_ERRORS))) - .addMethod( - getFetchStaticIpsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse>( - this, METHODID_FETCH_STATIC_IPS))) - .addMethod( - getCreatePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation>( - this, 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>( - this, 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>( - this, METHODID_LIST_PRIVATE_CONNECTIONS))) - .addMethod( - getDeletePrivateConnectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_PRIVATE_CONNECTION))) - .addMethod( - getCreateRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_ROUTE))) - .addMethod( - getGetRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route>( - this, METHODID_GET_ROUTE))) - .addMethod( - getListRoutesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse>( - this, METHODID_LIST_ROUTES))) - .addMethod( - getDeleteRouteMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_ROUTE))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 DatastreamImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DatastreamImplBase 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(); - } - } - } - - 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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java deleted file mode 100644 index ecd8ad00..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java deleted file mode 100644 index da2a5cbd..00000000 --- a/owl-bot-staging/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\377\001\n$com.google.cloud.datastream.v1alpha" + - "1B\035CloudDatastreamResourcesProtoP\001ZJgoog" + - "le.golang.org/genproto/googleapis/cloud/" + - "datastream/v1alpha1;datastream\252\002 Google." + - "Cloud.Datastream.V1Alpha1\312\002 Google\\Cloud" + - "\\Datastream\\V1alpha1\352\002#Google::Cloud::Da" + - "tastream::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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java deleted file mode 100644 index 98422847..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java deleted file mode 100644 index b6968cd1..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java deleted file mode 100644 index 738f0aa9..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java deleted file mode 100644 index 8d5ae593..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java deleted file mode 100644 index fe72f9f2..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java deleted file mode 100644 index fcc6ed47..00000000 --- a/owl-bot-staging/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java deleted file mode 100644 index 70408cec..00000000 --- a/owl-bot-staging/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 { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java index ffe5100c..3d47c177 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java @@ -1,39 +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; /** + * + * *
  * 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; } + private AvroFileFormat( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private AvroFileFormat( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private AvroFileFormat( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -140,118 +159,127 @@ 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() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,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 @@ -297,7 +324,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; } @@ -306,38 +334,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; @@ -374,9 +403,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +415,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(); } @@ -400,16 +429,16 @@ 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 { - return new AvroFileFormat(input, extensionRegistry); - } - }; + 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 { + return new AvroFileFormat(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java new file mode 100644 index 00000000..26143146 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java index a3086c96..2f4905d4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java +++ b/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,16 +45,15 @@ 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; } + private BackfillJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,60 +73,68 @@ private BackfillJob( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - trigger_ = rawValue; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastStartTime_ != null) { - subBuilder = lastStartTime_.toBuilder(); - } - lastStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastStartTime_); - lastStartTime_ = subBuilder.buildPartial(); + state_ = rawValue; + break; } + case 16: + { + int rawValue = input.readEnum(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (lastEndTime_ != null) { - subBuilder = lastEndTime_.toBuilder(); + trigger_ = rawValue; + break; } - lastEndTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastEndTime_); - lastEndTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastStartTime_ != null) { + subBuilder = lastStartTime_.toBuilder(); + } + lastStartTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastStartTime_); + lastStartTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (lastEndTime_ != null) { + subBuilder = lastEndTime_.toBuilder(); + } + lastEndTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastEndTime_); + lastEndTime_ = subBuilder.buildPartial(); + } + + break; } - errors_.add( - input.readMessage(com.google.cloud.datastream.v1.Error.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,8 +142,7 @@ private BackfillJob( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -127,29 +151,35 @@ private BackfillJob( makeExtensionsImmutable(); } } - 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.
      * 
@@ -158,6 +188,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
@@ -168,6 +200,8 @@ public enum State
      */
     NOT_STARTED(1),
     /**
+     *
+     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -176,6 +210,8 @@ public enum State */ PENDING(2), /** + * + * *
      * Backfill job is running.
      * 
@@ -184,6 +220,8 @@ public enum State */ ACTIVE(3), /** + * + * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -192,6 +230,8 @@ public enum State */ STOPPED(4), /** + * + * *
      * Backfill job failed (due to an error).
      * 
@@ -200,6 +240,8 @@ public enum State */ FAILED(5), /** + * + * *
      * Backfill completed successfully.
      * 
@@ -208,6 +250,8 @@ public enum State */ COMPLETED(6), /** + * + * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -220,6 +264,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -228,6 +274,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
@@ -238,6 +286,8 @@ public enum State
      */
     public static final int NOT_STARTED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -246,6 +296,8 @@ public enum State */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Backfill job is running.
      * 
@@ -254,6 +306,8 @@ public enum State */ public static final int ACTIVE_VALUE = 3; /** + * + * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -262,6 +316,8 @@ public enum State */ public static final int STOPPED_VALUE = 4; /** + * + * *
      * Backfill job failed (due to an error).
      * 
@@ -270,6 +326,8 @@ public enum State */ public static final int FAILED_VALUE = 5; /** + * + * *
      * Backfill completed successfully.
      * 
@@ -278,6 +336,8 @@ public enum State */ public static final int COMPLETED_VALUE = 6; /** + * + * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -287,7 +347,6 @@ public enum State
      */
     public static final int UNSUPPORTED_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -312,54 +371,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;
@@ -377,15 +441,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.
      * 
@@ -394,6 +461,8 @@ public enum Trigger */ TRIGGER_UNSPECIFIED(0), /** + * + * *
      * Object backfill job was triggered automatically according to the stream's
      * backfill strategy.
@@ -403,6 +472,8 @@ public enum Trigger
      */
     AUTOMATIC(1),
     /**
+     *
+     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -414,6 +485,8 @@ public enum Trigger ; /** + * + * *
      * Default value.
      * 
@@ -422,6 +495,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.
@@ -431,6 +506,8 @@ public enum Trigger
      */
     public static final int AUTOMATIC_VALUE = 1;
     /**
+     *
+     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -439,7 +516,6 @@ public enum Trigger */ public static final int MANUAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -464,49 +540,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; @@ -526,65 +602,90 @@ private Trigger(int value) { public static final int STATE_FIELD_NUMBER = 1; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.BackfillJob.State result = com.google.cloud.datastream.v1.BackfillJob.State.valueOf(state_); + com.google.cloud.datastream.v1.BackfillJob.State result = + com.google.cloud.datastream.v1.BackfillJob.State.valueOf(state_); return result == null ? com.google.cloud.datastream.v1.BackfillJob.State.UNRECOGNIZED : result; } public static final int TRIGGER_FIELD_NUMBER = 2; private int trigger_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJob.Trigger getTrigger() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.BackfillJob.Trigger result = com.google.cloud.datastream.v1.BackfillJob.Trigger.valueOf(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.valueOf(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 @@ -592,23 +693,34 @@ 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() { @@ -618,11 +730,16 @@ public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { 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 @@ -630,11 +747,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 @@ -642,11 +764,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() { @@ -656,64 +782,84 @@ public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { public static final int ERRORS_FIELD_NUMBER = 5; 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; @@ -725,12 +871,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) { @@ -752,24 +898,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -779,27 +921,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -832,118 +972,127 @@ 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() @@ -951,17 +1100,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -991,9 +1140,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 @@ -1012,7 +1161,8 @@ 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); int from_bitField0_ = bitField0_; result.state_ = state_; result.trigger_ = trigger_; @@ -1043,38 +1193,39 @@ public com.google.cloud.datastream.v1.BackfillJob 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.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; @@ -1113,9 +1264,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.BackfillJob other) { 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_); } @@ -1149,55 +1301,72 @@ public Builder mergeFrom( } 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.BackfillJob.State result = com.google.cloud.datastream.v1.BackfillJob.State.valueOf(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.valueOf(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. */ @@ -1205,21 +1374,24 @@ public Builder setState(com.google.cloud.datastream.v1.BackfillJob.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Backfill job state.
      * 
* * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1227,51 +1399,67 @@ 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. */ public Builder setTriggerValue(int value) { - + trigger_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.BackfillJob.Trigger result = com.google.cloud.datastream.v1.BackfillJob.Trigger.valueOf(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.valueOf(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. */ @@ -1279,21 +1467,24 @@ public Builder setTrigger(com.google.cloud.datastream.v1.BackfillJob.Trigger val if (value == null) { throw new NullPointerException(); } - + trigger_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Backfill job's triggering reason.
      * 
* * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * * @return This builder for chaining. */ public Builder clearTrigger() { - + trigger_ = 0; onChanged(); return this; @@ -1301,39 +1492,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 lastStartTimeBuilder_ != null || 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. */ 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) { @@ -1349,14 +1559,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(); onChanged(); @@ -1367,17 +1580,23 @@ 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 (lastStartTime_ != null) { lastStartTime_ = - com.google.protobuf.Timestamp.newBuilder(lastStartTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastStartTime_) + .mergeFrom(value) + .buildPartial(); } else { lastStartTime_ = value; } @@ -1389,11 +1608,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() { if (lastStartTimeBuilder_ == null) { @@ -1407,48 +1630,64 @@ 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() { - + onChanged(); 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_; @@ -1456,39 +1695,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 lastEndTimeBuilder_ != null || 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. */ 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) { @@ -1504,14 +1762,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(); onChanged(); @@ -1522,17 +1783,23 @@ 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 (lastEndTime_ != null) { lastEndTime_ = - com.google.protobuf.Timestamp.newBuilder(lastEndTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastEndTime_) + .mergeFrom(value) + .buildPartial(); } else { lastEndTime_ = value; } @@ -1544,11 +1811,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() { if (lastEndTimeBuilder_ == null) { @@ -1562,71 +1833,95 @@ 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() { - + onChanged(); 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_ & 0x00000001) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000001; - } + } } 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) { @@ -1636,11 +1931,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) { @@ -1650,11 +1949,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) { @@ -1664,14 +1967,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(); @@ -1685,11 +1991,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) { @@ -1703,11 +2013,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) { @@ -1723,14 +2037,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(); @@ -1744,14 +2061,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()); @@ -1762,11 +2082,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) { @@ -1780,18 +2104,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); @@ -1799,11 +2126,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) { @@ -1816,11 +2147,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) { @@ -1833,39 +2168,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 { @@ -1873,56 +2219,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_ & 0x00000001) != 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_ & 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); } @@ -1932,12 +2291,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(); } @@ -1946,16 +2305,16 @@ 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 { - return new BackfillJob(input, extensionRegistry); - } - }; + 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 { + return new BackfillJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1970,6 +2329,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.BackfillJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java index b5dc43d5..58eab00c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java index 2a2f15d2..f9fe309f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfig.java @@ -1,35 +1,47 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the 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 +/** 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; } + private BigQueryDestinationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,54 +60,79 @@ private BigQueryDestinationConfig( case 0: done = true; break; - case 1610: { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder subBuilder = null; - if (datasetConfigCase_ == 201) { - subBuilder = ((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_).toBuilder(); - } - datasetConfig_ = - input.readMessage(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) datasetConfig_); - datasetConfig_ = subBuilder.buildPartial(); - } - datasetConfigCase_ = 201; - break; - } - case 1618: { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.Builder subBuilder = null; - if (datasetConfigCase_ == 202) { - subBuilder = ((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_).toBuilder(); - } - datasetConfig_ = - input.readMessage(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) datasetConfig_); - datasetConfig_ = subBuilder.buildPartial(); - } - datasetConfigCase_ = 202; - break; - } - case 2402: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (dataFreshness_ != null) { - subBuilder = dataFreshness_.toBuilder(); + case 1610: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.Builder + subBuilder = null; + if (datasetConfigCase_ == 201) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_) + .toBuilder(); + } + datasetConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + datasetConfig_); + datasetConfig_ = subBuilder.buildPartial(); + } + datasetConfigCase_ = 201; + break; } - dataFreshness_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataFreshness_); - dataFreshness_ = subBuilder.buildPartial(); + case 1618: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .Builder + subBuilder = null; + if (datasetConfigCase_ == 202) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_) + .toBuilder(); + } + datasetConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets) + datasetConfig_); + datasetConfig_ = subBuilder.buildPartial(); + } + datasetConfigCase_ = 202; + break; } + case 2402: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (dataFreshness_ != null) { + subBuilder = dataFreshness_.toBuilder(); + } + dataFreshness_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dataFreshness_); + dataFreshness_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,74 +140,80 @@ private BigQueryDestinationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; + * * @return The datasetId. */ java.lang.String getDatasetId(); /** * 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; } + private SingleTargetDataset( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -189,19 +232,20 @@ private SingleTargetDataset( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - datasetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + datasetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -209,30 +253,34 @@ private SingleTargetDataset( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object datasetId_; /** * string dataset_id = 1; + * * @return The datasetId. */ @java.lang.Override @@ -241,8 +289,7 @@ 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; @@ -250,16 +297,15 @@ public java.lang.String getDatasetId() { } /** * 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 { @@ -268,6 +314,7 @@ public java.lang.String getDatasetId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,8 +326,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_); } @@ -304,15 +350,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,88 +379,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 @@ -422,44 +483,51 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -469,19 +537,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); } @@ -489,8 +560,10 @@ 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); + 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); result.datasetId_ = datasetId_; onBuilt(); return result; @@ -500,46 +573,55 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetData public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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_; onChanged(); @@ -559,11 +641,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parsedMessage = null; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SingleTargetDataset) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,13 +661,13 @@ public Builder mergeFrom( private java.lang.Object datasetId_ = ""; /** * 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; @@ -592,15 +677,14 @@ public java.lang.String getDatasetId() { } /** * 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 { @@ -609,45 +693,47 @@ public java.lang.String getDatasetId() { } /** * string dataset_id = 1; + * * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setDatasetId( - java.lang.String value) { + public Builder setDatasetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetId_ = value; onChanged(); return this; } /** * string dataset_id = 1; + * * @return This builder for chaining. */ public Builder clearDatasetId() { - + datasetId_ = getDefaultInstance().getDatasetId(); onChanged(); return this; } /** * 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) { + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -660,30 +746,34 @@ 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 { - return new SingleTargetDataset(input, extensionRegistry); - } - }; + 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 { + return new SingleTargetDataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -695,63 +785,77 @@ 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; + * + * .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; + * + * .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; + * + * .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; } + private SourceHierarchyDatasets( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -770,26 +874,33 @@ private SourceHierarchyDatasets( case 0: done = true; break; - case 18: { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.Builder subBuilder = null; - if (datasetTemplate_ != null) { - subBuilder = datasetTemplate_.toBuilder(); - } - datasetTemplate_ = input.readMessage(com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(datasetTemplate_); - datasetTemplate_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.Builder + subBuilder = null; + if (datasetTemplate_ != null) { + subBuilder = datasetTemplate_.toBuilder(); + } + datasetTemplate_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig + .SourceHierarchyDatasets.DatasetTemplate.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datasetTemplate_); + datasetTemplate_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -797,31 +908,38 @@ private SourceHierarchyDatasets( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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
@@ -829,10 +947,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
@@ -840,12 +961,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.
@@ -853,10 +976,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.
@@ -864,12 +990,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
@@ -881,10 +1009,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
@@ -896,27 +1027,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_ = ""; @@ -925,16 +1060,15 @@ 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; } + private DatasetTemplate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -953,31 +1087,34 @@ private DatasetTemplate( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + location_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - datasetIdPrefix_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + datasetIdPrefix_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - kmsKeyName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + kmsKeyName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -985,29 +1122,36 @@ private DatasetTemplate( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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
@@ -1015,6 +1159,7 @@ private DatasetTemplate(
        * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The location. */ @java.lang.Override @@ -1023,14 +1168,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
@@ -1038,16 +1184,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 { @@ -1058,6 +1203,8 @@ public java.lang.String getLocation() { public static final int DATASET_ID_PREFIX_FIELD_NUMBER = 2; 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.
@@ -1065,6 +1212,7 @@ public java.lang.String getLocation() {
        * 
* * string dataset_id_prefix = 2; + * * @return The datasetIdPrefix. */ @java.lang.Override @@ -1073,14 +1221,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.
@@ -1088,16 +1237,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 { @@ -1108,6 +1256,8 @@ public java.lang.String getDatasetIdPrefix() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 3; 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
@@ -1119,6 +1269,7 @@ public java.lang.String getDatasetIdPrefix() {
        * 
* * string kms_key_name = 3; + * * @return The kmsKeyName. */ @java.lang.Override @@ -1127,14 +1278,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
@@ -1146,16 +1298,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 { @@ -1164,6 +1315,7 @@ public java.lang.String getKmsKeyName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1175,8 +1327,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_); } @@ -1212,19 +1363,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1247,88 +1403,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 @@ -1338,44 +1523,53 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1389,19 +1583,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); } @@ -1409,8 +1610,14 @@ 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); + 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); result.location_ = location_; result.datasetIdPrefix_ = datasetIdPrefix_; result.kmsKeyName_ = kmsKeyName_; @@ -1422,46 +1629,60 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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_; onChanged(); @@ -1489,11 +1710,16 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate parsedMessage = null; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1505,6 +1731,8 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1512,13 +1740,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; @@ -1527,6 +1755,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
@@ -1534,15 +1764,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 { @@ -1550,6 +1779,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
@@ -1557,20 +1788,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) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1578,15 +1811,18 @@ public Builder setLocation(
          * 
* * string location = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
          * Required. The geographic location where the dataset should reside. See
          * https://cloud.google.com/bigquery/docs/locations for supported
@@ -1594,16 +1830,16 @@ 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) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; @@ -1611,6 +1847,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.
@@ -1618,13 +1856,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; @@ -1633,6 +1871,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.
@@ -1640,15 +1880,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 { @@ -1656,6 +1895,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.
@@ -1663,20 +1904,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) { + public Builder setDatasetIdPrefix(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + datasetIdPrefix_ = value; 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.
@@ -1684,15 +1927,18 @@ public Builder setDatasetIdPrefix(
          * 
* * string dataset_id_prefix = 2; + * * @return This builder for chaining. */ public Builder clearDatasetIdPrefix() { - + datasetIdPrefix_ = getDefaultInstance().getDatasetIdPrefix(); 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.
@@ -1700,16 +1946,16 @@ 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) { + public Builder setDatasetIdPrefixBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetIdPrefix_ = value; onChanged(); return this; @@ -1717,6 +1963,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
@@ -1728,13 +1976,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; @@ -1743,6 +1991,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
@@ -1754,15 +2004,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 { @@ -1770,6 +2019,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
@@ -1781,20 +2032,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) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1806,15 +2059,18 @@ public Builder setKmsKeyName(
          * 
* * string kms_key_name = 3; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
          * Describes the Cloud KMS encryption key that will be used to
          * protect destination BigQuery table. The BigQuery Service Account
@@ -1826,20 +2082,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) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1852,30 +2109,36 @@ 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 { - return new DatasetTemplate(input, extensionRegistry); - } - }; + 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 { + return new DatasetTemplate(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1887,16 +2150,22 @@ 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; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return Whether the datasetTemplate field is set. */ @java.lang.Override @@ -1904,22 +2173,35 @@ public boolean hasDatasetTemplate() { return datasetTemplate_ != null; } /** - * .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_; } /** - * .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() { + public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplateOrBuilder + getDatasetTemplateOrBuilder() { return getDatasetTemplate(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1931,8 +2213,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()); } @@ -1946,8 +2227,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1957,17 +2237,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1989,88 +2271,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 @@ -2080,45 +2376,53 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2132,19 +2436,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); } @@ -2152,8 +2460,11 @@ 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); + 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 (datasetTemplateBuilder_ == null) { result.datasetTemplate_ = datasetTemplate_; } else { @@ -2167,46 +2478,56 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyD public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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()); } @@ -2225,11 +2546,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets parsedMessage = null; + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2239,31 +2563,55 @@ public Builder mergeFrom( return this; } - 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; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * * @return Whether the datasetTemplate field is set. */ public boolean hasDatasetTemplate() { return datasetTemplateBuilder_ != null || datasetTemplate_ != null; } /** - * .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(); } } /** - * .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(); @@ -2277,10 +2625,14 @@ public Builder setDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDestina return this; } /** - * .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(); onChanged(); @@ -2291,13 +2643,21 @@ public Builder setDatasetTemplate( return this; } /** - * .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 (datasetTemplate_ != null) { datasetTemplate_ = - com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate.newBuilder(datasetTemplate_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets + .DatasetTemplate.newBuilder(datasetTemplate_) + .mergeFrom(value) + .buildPartial(); } else { datasetTemplate_ = value; } @@ -2309,7 +2669,9 @@ public Builder mergeDatasetTemplate(com.google.cloud.datastream.v1.BigQueryDesti return this; } /** - * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * + * .google.cloud.datastream.v1.BigQueryDestinationConfig.SourceHierarchyDatasets.DatasetTemplate dataset_template = 2; + * */ public Builder clearDatasetTemplate() { if (datasetTemplateBuilder_ == null) { @@ -2323,40 +2685,62 @@ public Builder clearDatasetTemplate() { return this; } /** - * .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() { + onChanged(); return getDatasetTemplateFieldBuilder().getBuilder(); } /** - * .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_; } } /** - * .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) { @@ -2369,30 +2753,34 @@ 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 { - return new SourceHierarchyDatasets(input, extensionRegistry); - } - }; + 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 { + return new SourceHierarchyDatasets(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2404,21 +2792,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; } @@ -2434,30 +2825,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 @@ -2465,42 +2864,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 @@ -2508,38 +2927,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
@@ -2548,6 +2984,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 @@ -2555,6 +2992,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
@@ -2563,13 +3002,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
@@ -2585,6 +3029,7 @@ public com.google.protobuf.DurationOrBuilder getDataFreshnessOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -2596,13 +3041,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());
@@ -2617,16 +3067,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -2636,27 +3091,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:
@@ -2694,113 +3147,119 @@ 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
+  /** 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()
@@ -2808,16 +3267,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2833,9 +3291,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
@@ -2854,7 +3312,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);
+      com.google.cloud.datastream.v1.BigQueryDestinationConfig result =
+          new com.google.cloud.datastream.v1.BigQueryDestinationConfig(this);
       if (datasetConfigCase_ == 201) {
         if (singleTargetDatasetBuilder_ == null) {
           result.datasetConfig_ = datasetConfig_;
@@ -2883,38 +3342,39 @@ public com.google.cloud.datastream.v1.BigQueryDestinationConfig 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.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;
@@ -2922,22 +3382,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.unknownFields);
       onChanged();
@@ -2958,7 +3422,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datastream.v1.BigQueryDestinationConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datastream.v1.BigQueryDestinationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2967,12 +3432,12 @@ public Builder mergeFrom(
       }
       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() {
@@ -2982,15 +3447,22 @@ public Builder clearDatasetConfig() {
       return this;
     }
 
-
     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 @@ -2998,35 +3470,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(); @@ -3040,14 +3526,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(); @@ -3058,18 +3549,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; } @@ -3085,11 +3588,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) { @@ -3108,67 +3615,104 @@ 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; } datasetConfigCase_ = 201; - onChanged();; + onChanged(); + ; return singleTargetDatasetBuilder_; } 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 @@ -3176,35 +3720,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(); @@ -3218,14 +3776,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(); @@ -3236,18 +3799,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; } @@ -3263,11 +3839,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) { @@ -3286,63 +3866,97 @@ 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; } datasetConfigCase_ = 202; - onChanged();; + onChanged(); + ; return sourceHierarchyDatasetsBuilder_; } 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
@@ -3351,12 +3965,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 dataFreshnessBuilder_ != null || 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
@@ -3365,16 +3982,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
@@ -3398,6 +4020,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
@@ -3407,8 +4031,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();
         onChanged();
@@ -3419,6 +4042,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
@@ -3432,7 +4057,9 @@ public Builder mergeDataFreshness(com.google.protobuf.Duration value) {
       if (dataFreshnessBuilder_ == null) {
         if (dataFreshness_ != null) {
           dataFreshness_ =
-            com.google.protobuf.Duration.newBuilder(dataFreshness_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(dataFreshness_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           dataFreshness_ = value;
         }
@@ -3444,6 +4071,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
@@ -3465,6 +4094,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
@@ -3475,11 +4106,13 @@ public Builder clearDataFreshness() {
      * .google.protobuf.Duration data_freshness = 300;
      */
     public com.google.protobuf.Duration.Builder getDataFreshnessBuilder() {
-      
+
       onChanged();
       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
@@ -3493,11 +4126,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
@@ -3508,21 +4144,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);
     }
 
@@ -3532,12 +4171,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();
   }
@@ -3546,16 +4185,16 @@ 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 {
-      return new BigQueryDestinationConfig(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new BigQueryDestinationConfig(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -3570,6 +4209,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.datastream.v1.BigQueryDestinationConfig getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
similarity index 59%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
index 94651151..a9045b1c 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryDestinationConfigOrBuilder.java
+++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
index ab0c4a44..5b4ae7a2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
+++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfile.java
@@ -1,39 +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;
 
 /**
+ *
+ *
  * 
  * 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; } + private BigQueryProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private BigQueryProfile( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private BigQueryProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -140,118 +159,127 @@ 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() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,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 @@ -297,7 +324,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; } @@ -306,38 +334,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; @@ -374,9 +403,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +415,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(); } @@ -400,16 +429,16 @@ 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 { - return new BigQueryProfile(input, extensionRegistry); - } - }; + 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 { + return new BigQueryProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.BigQueryProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BigQueryProfileOrBuilder.java new file mode 100644 index 00000000..65ad646b --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java index d1db0b1b..74baca41 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java +++ b/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,16 +45,15 @@ 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;
   }
+
   private ConnectionProfile(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,176 +73,212 @@ private ConnectionProfile(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
-            }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 802: {
-            com.google.cloud.datastream.v1.OracleProfile.Builder subBuilder = null;
-            if (profileCase_ == 100) {
-              subBuilder = ((com.google.cloud.datastream.v1.OracleProfile) profile_).toBuilder();
-            }
-            profile_ =
-                input.readMessage(com.google.cloud.datastream.v1.OracleProfile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleProfile) profile_);
-              profile_ = subBuilder.buildPartial();
-            }
-            profileCase_ = 100;
-            break;
-          }
-          case 810: {
-            com.google.cloud.datastream.v1.GcsProfile.Builder subBuilder = null;
-            if (profileCase_ == 101) {
-              subBuilder = ((com.google.cloud.datastream.v1.GcsProfile) profile_).toBuilder();
-            }
-            profile_ =
-                input.readMessage(com.google.cloud.datastream.v1.GcsProfile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.GcsProfile) profile_);
-              profile_ = subBuilder.buildPartial();
-            }
-            profileCase_ = 101;
-            break;
-          }
-          case 818: {
-            com.google.cloud.datastream.v1.MysqlProfile.Builder subBuilder = null;
-            if (profileCase_ == 102) {
-              subBuilder = ((com.google.cloud.datastream.v1.MysqlProfile) profile_).toBuilder();
-            }
-            profile_ =
-                input.readMessage(com.google.cloud.datastream.v1.MysqlProfile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlProfile) profile_);
-              profile_ = subBuilder.buildPartial();
-            }
-            profileCase_ = 102;
-            break;
-          }
-          case 826: {
-            com.google.cloud.datastream.v1.BigQueryProfile.Builder subBuilder = null;
-            if (profileCase_ == 103) {
-              subBuilder = ((com.google.cloud.datastream.v1.BigQueryProfile) profile_).toBuilder();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
-            profile_ =
-                input.readMessage(com.google.cloud.datastream.v1.BigQueryProfile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) profile_);
-              profile_ = subBuilder.buildPartial();
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              displayName_ = s;
+              break;
             }
-            profileCase_ = 103;
-            break;
-          }
-          case 834: {
-            com.google.cloud.datastream.v1.PostgresqlProfile.Builder subBuilder = null;
-            if (profileCase_ == 104) {
-              subBuilder = ((com.google.cloud.datastream.v1.PostgresqlProfile) profile_).toBuilder();
+          case 802:
+            {
+              com.google.cloud.datastream.v1.OracleProfile.Builder subBuilder = null;
+              if (profileCase_ == 100) {
+                subBuilder = ((com.google.cloud.datastream.v1.OracleProfile) profile_).toBuilder();
+              }
+              profile_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.OracleProfile.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleProfile) profile_);
+                profile_ = subBuilder.buildPartial();
+              }
+              profileCase_ = 100;
+              break;
             }
-            profile_ =
-                input.readMessage(com.google.cloud.datastream.v1.PostgresqlProfile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) profile_);
-              profile_ = subBuilder.buildPartial();
+          case 810:
+            {
+              com.google.cloud.datastream.v1.GcsProfile.Builder subBuilder = null;
+              if (profileCase_ == 101) {
+                subBuilder = ((com.google.cloud.datastream.v1.GcsProfile) profile_).toBuilder();
+              }
+              profile_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.GcsProfile.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datastream.v1.GcsProfile) profile_);
+                profile_ = subBuilder.buildPartial();
+              }
+              profileCase_ = 101;
+              break;
             }
-            profileCase_ = 104;
-            break;
-          }
-          case 1602: {
-            com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder subBuilder = null;
-            if (connectivityCase_ == 200) {
-              subBuilder = ((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_).toBuilder();
+          case 818:
+            {
+              com.google.cloud.datastream.v1.MysqlProfile.Builder subBuilder = null;
+              if (profileCase_ == 102) {
+                subBuilder = ((com.google.cloud.datastream.v1.MysqlProfile) profile_).toBuilder();
+              }
+              profile_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.MysqlProfile.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlProfile) profile_);
+                profile_ = subBuilder.buildPartial();
+              }
+              profileCase_ = 102;
+              break;
             }
-            connectivity_ =
-                input.readMessage(com.google.cloud.datastream.v1.StaticServiceIpConnectivity.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_);
-              connectivity_ = subBuilder.buildPartial();
+          case 826:
+            {
+              com.google.cloud.datastream.v1.BigQueryProfile.Builder subBuilder = null;
+              if (profileCase_ == 103) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.BigQueryProfile) profile_).toBuilder();
+              }
+              profile_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.BigQueryProfile.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryProfile) profile_);
+                profile_ = subBuilder.buildPartial();
+              }
+              profileCase_ = 103;
+              break;
             }
-            connectivityCase_ = 200;
-            break;
-          }
-          case 1610: {
-            com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder subBuilder = null;
-            if (connectivityCase_ == 201) {
-              subBuilder = ((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_).toBuilder();
+          case 834:
+            {
+              com.google.cloud.datastream.v1.PostgresqlProfile.Builder subBuilder = null;
+              if (profileCase_ == 104) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.PostgresqlProfile) profile_).toBuilder();
+              }
+              profile_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.PostgresqlProfile.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlProfile) profile_);
+                profile_ = subBuilder.buildPartial();
+              }
+              profileCase_ = 104;
+              break;
             }
-            connectivity_ =
-                input.readMessage(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_);
-              connectivity_ = subBuilder.buildPartial();
+          case 1602:
+            {
+              com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder subBuilder = null;
+              if (connectivityCase_ == 200) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_)
+                        .toBuilder();
+              }
+              connectivity_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.StaticServiceIpConnectivity.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_);
+                connectivity_ = subBuilder.buildPartial();
+              }
+              connectivityCase_ = 200;
+              break;
             }
-            connectivityCase_ = 201;
-            break;
-          }
-          case 1618: {
-            com.google.cloud.datastream.v1.PrivateConnectivity.Builder subBuilder = null;
-            if (connectivityCase_ == 202) {
-              subBuilder = ((com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_).toBuilder();
+          case 1610:
+            {
+              com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder subBuilder = null;
+              if (connectivityCase_ == 201) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_)
+                        .toBuilder();
+              }
+              connectivity_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_);
+                connectivity_ = subBuilder.buildPartial();
+              }
+              connectivityCase_ = 201;
+              break;
             }
-            connectivity_ =
-                input.readMessage(com.google.cloud.datastream.v1.PrivateConnectivity.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_);
-              connectivity_ = subBuilder.buildPartial();
+          case 1618:
+            {
+              com.google.cloud.datastream.v1.PrivateConnectivity.Builder subBuilder = null;
+              if (connectivityCase_ == 202) {
+                subBuilder =
+                    ((com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_)
+                        .toBuilder();
+              }
+              connectivity_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.PrivateConnectivity.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_);
+                connectivity_ = subBuilder.buildPartial();
+              }
+              connectivityCase_ = 202;
+              break;
             }
-            connectivityCase_ = 202;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -233,42 +286,45 @@ private ConnectionProfile(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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),
@@ -277,6 +333,7 @@ public enum ProfileCase
     POSTGRESQL_PROFILE(104),
     PROFILE_NOT_SET(0);
     private final int value;
+
     private ProfileCase(int value) {
       this.value = value;
     }
@@ -292,36 +349,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;
     }
@@ -337,32 +403,39 @@ 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;
   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 @@ -371,29 +444,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 { @@ -404,11 +477,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 @@ -416,11 +493,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 @@ -428,11 +509,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() { @@ -442,11 +526,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 @@ -454,11 +542,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 @@ -466,11 +558,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() { @@ -478,24 +573,23 @@ 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, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + 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, + ""); + } + + 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_; } @@ -504,28 +598,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -533,11 +629,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -545,16 +642,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -562,12 +659,11 @@ public 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(); } @@ -577,11 +673,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -590,29 +689,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 { @@ -622,11 +721,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 @@ -634,21 +736,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.
    * 
@@ -658,18 +765,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 @@ -677,21 +787,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.
    * 
@@ -701,18 +816,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 @@ -720,21 +838,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.
    * 
@@ -744,18 +867,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 @@ -763,21 +889,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.
    * 
@@ -787,18 +918,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 @@ -806,21 +940,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.
    * 
@@ -830,18 +969,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 @@ -849,42 +993,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 @@ -892,42 +1051,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 @@ -935,21 +1105,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.
    * 
@@ -957,14 +1132,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; @@ -976,8 +1153,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_); } @@ -987,12 +1163,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_); } @@ -1012,10 +1184,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_); @@ -1033,57 +1207,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1093,50 +1273,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: @@ -1144,16 +1315,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: @@ -1230,97 +1399,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.
@@ -1328,43 +1504,43 @@ 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()
@@ -1372,16 +1548,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1410,9 +1585,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
@@ -1431,7 +1606,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);
+      com.google.cloud.datastream.v1.ConnectionProfile result =
+          new com.google.cloud.datastream.v1.ConnectionProfile(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -1513,38 +1689,39 @@ public com.google.cloud.datastream.v1.ConnectionProfile 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.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;
@@ -1552,7 +1729,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_;
         onChanged();
@@ -1563,53 +1741,62 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other)
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         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.unknownFields);
       onChanged();
@@ -1639,12 +1826,12 @@ public Builder mergeFrom(
       }
       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() {
@@ -1656,10 +1843,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() {
@@ -1673,18 +1859,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; @@ -1693,20 +1881,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 { @@ -1714,54 +1903,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1769,39 +1965,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1817,14 +2032,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(); onChanged(); @@ -1835,17 +2053,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1857,11 +2079,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() { if (createTimeBuilder_ == null) { @@ -1875,48 +2101,64 @@ 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() { - + onChanged(); 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_; @@ -1924,39 +2166,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1972,14 +2233,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(); onChanged(); @@ -1990,17 +2254,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2012,11 +2280,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() { if (updateTimeBuilder_ == null) { @@ -2030,69 +2302,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2104,28 +2391,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -2133,11 +2422,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -2145,16 +2435,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -2162,12 +2453,11 @@ public 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(); } @@ -2175,81 +2465,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -2258,20 +2547,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 { @@ -2279,67 +2569,80 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } 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 @@ -2347,11 +2650,14 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override @@ -2369,6 +2675,8 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2389,6 +2697,8 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1.OracleProfile val return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2407,6 +2717,8 @@ public Builder setOracleProfile( return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2415,10 +2727,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; } @@ -2434,6 +2749,8 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile v return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2457,6 +2774,8 @@ public Builder clearOracleProfile() { return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2467,6 +2786,8 @@ public com.google.cloud.datastream.v1.OracleProfile.Builder getOracleProfileBuil return getOracleProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2485,6 +2806,8 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2492,32 +2815,44 @@ 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()); profile_ = null; } profileCase_ = 100; - onChanged();; + onChanged(); + ; return oracleProfileBuilder_; } 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 @@ -2525,11 +2860,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 @@ -2547,6 +2885,8 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2567,6 +2907,8 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2585,6 +2927,8 @@ public Builder setGcsProfile( return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2593,10 +2937,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; } @@ -2612,6 +2959,8 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2635,6 +2984,8 @@ public Builder clearGcsProfile() { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2645,6 +2996,8 @@ public com.google.cloud.datastream.v1.GcsProfile.Builder getGcsProfileBuilder() return getGcsProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2663,6 +3016,8 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2670,32 +3025,44 @@ 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()); profile_ = null; } profileCase_ = 101; - onChanged();; + onChanged(); + ; return gcsProfileBuilder_; } 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 @@ -2703,11 +3070,14 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override @@ -2725,6 +3095,8 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2745,6 +3117,8 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2763,6 +3137,8 @@ public Builder setMysqlProfile( return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2771,10 +3147,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; } @@ -2790,6 +3169,8 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile val return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2813,6 +3194,8 @@ public Builder clearMysqlProfile() { return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2823,6 +3206,8 @@ public com.google.cloud.datastream.v1.MysqlProfile.Builder getMysqlProfileBuilde return getMysqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2841,6 +3226,8 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2848,32 +3235,44 @@ 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()); profile_ = null; } profileCase_ = 102; - onChanged();; + onChanged(); + ; return mysqlProfileBuilder_; } 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 @@ -2881,11 +3280,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 @@ -2903,6 +3305,8 @@ public com.google.cloud.datastream.v1.BigQueryProfile getBigqueryProfile() { } } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2923,6 +3327,8 @@ public Builder setBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfile return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2941,6 +3347,8 @@ public Builder setBigqueryProfile( return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2949,10 +3357,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; } @@ -2968,6 +3379,8 @@ public Builder mergeBigqueryProfile(com.google.cloud.datastream.v1.BigQueryProfi return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -2991,6 +3404,8 @@ public Builder clearBigqueryProfile() { return this; } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3001,6 +3416,8 @@ public com.google.cloud.datastream.v1.BigQueryProfile.Builder getBigqueryProfile return getBigqueryProfileFieldBuilder().getBuilder(); } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3019,6 +3436,8 @@ public com.google.cloud.datastream.v1.BigQueryProfileOrBuilder getBigqueryProfil } } /** + * + * *
      * BigQuery Connection Profile configuration.
      * 
@@ -3026,32 +3445,44 @@ 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()); profile_ = null; } profileCase_ = 103; - onChanged();; + onChanged(); + ; return bigqueryProfileBuilder_; } 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 @@ -3059,11 +3490,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 @@ -3081,6 +3515,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfile getPostgresqlProfile() { } } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3101,6 +3537,8 @@ public Builder setPostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlPro return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3119,6 +3557,8 @@ public Builder setPostgresqlProfile( return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3127,10 +3567,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; } @@ -3146,6 +3589,8 @@ public Builder mergePostgresqlProfile(com.google.cloud.datastream.v1.PostgresqlP return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3169,6 +3614,8 @@ public Builder clearPostgresqlProfile() { return this; } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3179,6 +3626,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfile.Builder getPostgresqlPro return getPostgresqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3186,7 +3635,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 { @@ -3197,6 +3647,8 @@ public com.google.cloud.datastream.v1.PostgresqlProfileOrBuilder getPostgresqlPr } } /** + * + * *
      * PostgreSQL Connection Profile configuration.
      * 
@@ -3204,32 +3656,46 @@ 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()); profile_ = null; } profileCase_ = 104; - onChanged();; + onChanged(); + ; return postgresqlProfileBuilder_; } 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 @@ -3237,15 +3703,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_; @@ -3259,13 +3731,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(); @@ -3279,11 +3756,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) { @@ -3297,18 +3778,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; } @@ -3324,11 +3815,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) { @@ -3347,24 +3842,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 { @@ -3375,39 +3880,58 @@ 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()); connectivity_ = null; } connectivityCase_ = 200; - onChanged();; + onChanged(); + ; return staticServiceIpConnectivityBuilder_; } 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 @@ -3415,11 +3939,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 @@ -3437,13 +3966,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(); @@ -3457,11 +3991,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) { @@ -3475,18 +4013,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; } @@ -3502,11 +4050,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) { @@ -3525,24 +4077,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 { @@ -3553,39 +4115,56 @@ 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()); connectivity_ = null; } connectivityCase_ = 201; - onChanged();; + onChanged(); + ; return forwardSshConnectivityBuilder_; } 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 @@ -3593,11 +4172,14 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 202; } /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return The privateConnectivity. */ @java.lang.Override @@ -3615,13 +4197,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(); @@ -3635,6 +4220,8 @@ public Builder setPrivateConnectivity(com.google.cloud.datastream.v1.PrivateConn return this; } /** + * + * *
      * Private connectivity.
      * 
@@ -3653,18 +4240,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; } @@ -3680,6 +4274,8 @@ public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1.PrivateCo return this; } /** + * + * *
      * Private connectivity.
      * 
@@ -3703,16 +4299,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.
      * 
@@ -3720,7 +4321,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 { @@ -3731,6 +4333,8 @@ public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateCon } } /** + * + * *
      * Private connectivity.
      * 
@@ -3738,26 +4342,32 @@ 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()); connectivity_ = null; } connectivityCase_ = 202; - onChanged();; + 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); } @@ -3767,12 +4377,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(); } @@ -3781,16 +4391,16 @@ 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 { - return new ConnectionProfile(input, extensionRegistry); - } - }; + 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 { + return new ConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3805,6 +4415,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java similarity index 78% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java index c48fa2fd..73368d36 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java +++ b/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.
    * 
@@ -122,60 +168,73 @@ boolean containsLabels( */ /* 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.
    * 
@@ -185,24 +244,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.
    * 
@@ -212,24 +279,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.
    * 
@@ -239,24 +314,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.
    * 
@@ -266,24 +349,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.
    * 
@@ -293,78 +384,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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java index 80601878..1b4b5c34 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java +++ b/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,16 +46,15 @@ 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; } + private CreateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +73,60 @@ private CreateConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - connectionProfileId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); + connectionProfileId_ = s; + break; } - connectionProfile_ = input.readMessage(com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - case 48: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 40: + { + validateOnly_ = input.readBool(); + break; + } + case 48: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,34 +134,41 @@ private CreateConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -146,29 +177,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 { @@ -179,11 +212,14 @@ public java.lang.String getParent() { public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; 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 @@ -192,29 +228,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 { @@ -225,11 +261,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 @@ -237,23 +278,34 @@ 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() { @@ -263,6 +315,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -278,6 +332,7 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -286,14 +341,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
@@ -309,16 +365,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 { @@ -329,12 +384,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; 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 @@ -345,11 +403,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; 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 @@ -358,6 +419,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,8 +431,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_); } @@ -405,19 +466,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -427,28 +485,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,128 +524,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) + unknownFields.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() @@ -600,16 +661,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -633,13 +693,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(); } @@ -654,7 +715,8 @@ 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); + com.google.cloud.datastream.v1.CreateConnectionProfileRequest result = + new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(this); result.parent_ = parent_; result.connectionProfileId_ = connectionProfileId_; if (connectionProfileBuilder_ == null) { @@ -673,38 +735,39 @@ public com.google.cloud.datastream.v1.CreateConnectionProfileRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -712,7 +775,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_; onChanged(); @@ -753,7 +818,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -765,18 +832,22 @@ public Builder mergeFrom( 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; @@ -785,20 +856,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 { @@ -806,54 +880,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -861,18 +948,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; @@ -881,20 +970,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 { @@ -902,54 +992,61 @@ 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) { + public Builder setConnectionProfileId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionProfileId_ = value; 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() { - + connectionProfileId_ = getDefaultInstance().getConnectionProfileId(); onChanged(); 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) { + public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionProfileId_ = value; onChanged(); return this; @@ -957,39 +1054,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 connectionProfileBuilder_ != null || 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. */ 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) { @@ -1005,11 +1121,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) { @@ -1023,17 +1143,23 @@ 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 (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.datastream.v1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.ConnectionProfile.newBuilder(connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -1045,11 +1171,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() { if (connectionProfileBuilder_ == null) { @@ -1063,48 +1193,65 @@ 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() { - + onChanged(); 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_; @@ -1112,6 +1259,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
@@ -1127,13 +1276,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; @@ -1142,6 +1291,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,15 +1308,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 { @@ -1173,6 +1323,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
@@ -1188,20 +1340,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1217,15 +1371,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1241,29 +1398,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -1271,44 +1431,53 @@ 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; 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() { - + validateOnly_ = false; onChanged(); 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 @@ -1316,37 +1485,43 @@ 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; 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() { - + force_ = false; 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); } @@ -1356,12 +1531,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(); } @@ -1370,16 +1546,16 @@ 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 { - return new CreateConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1394,6 +1570,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java index 3674b9f9..eb703b7f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java index 37dc7367..1d46fff2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java +++ b/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,16 +46,15 @@ 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; } + private CreatePrivateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +73,50 @@ private CreatePrivateConnectionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - privateConnectionId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1.PrivateConnection.Builder subBuilder = null; - if (privateConnection_ != null) { - subBuilder = privateConnection_.toBuilder(); + parent_ = s; + break; } - privateConnection_ = input.readMessage(com.google.cloud.datastream.v1.PrivateConnection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(privateConnection_); - privateConnection_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + privateConnectionId_ = s; + break; } + case 26: + { + com.google.cloud.datastream.v1.PrivateConnection.Builder subBuilder = null; + if (privateConnection_ != null) { + subBuilder = privateConnection_.toBuilder(); + } + privateConnection_ = + input.readMessage( + com.google.cloud.datastream.v1.PrivateConnection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateConnection_); + privateConnection_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +124,41 @@ private CreatePrivateConnectionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -136,29 +167,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 { @@ -169,11 +202,14 @@ public java.lang.String getParent() { public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; 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 @@ -182,29 +218,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 { @@ -215,11 +251,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 @@ -227,23 +268,34 @@ 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() { @@ -253,6 +305,8 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -268,6 +322,7 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -276,14 +331,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
@@ -299,16 +355,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 { @@ -317,6 +372,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +384,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_); } @@ -358,8 +413,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_); @@ -372,24 +426,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,117 +468,127 @@ public int hashCode() { } 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() @@ -535,16 +596,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,13 +624,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(); } @@ -585,7 +646,8 @@ 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); + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result = + new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(this); result.parent_ = parent_; result.privateConnectionId_ = privateConnectionId_; if (privateConnectionBuilder_ == null) { @@ -602,38 +664,39 @@ public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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,7 +704,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_; onChanged(); @@ -676,7 +741,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,18 +755,22 @@ public Builder mergeFrom( 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; @@ -708,20 +779,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 { @@ -729,54 +803,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -784,18 +871,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; @@ -804,20 +893,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 { @@ -825,54 +915,61 @@ 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) { + public Builder setPrivateConnectionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateConnectionId_ = value; 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() { - + privateConnectionId_ = getDefaultInstance().getPrivateConnectionId(); onChanged(); 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) { + public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnectionId_ = value; onChanged(); return this; @@ -880,39 +977,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 privateConnectionBuilder_ != null || 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. */ 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) { @@ -928,11 +1044,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) { @@ -946,17 +1066,23 @@ 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 (privateConnection_ != null) { privateConnection_ = - com.google.cloud.datastream.v1.PrivateConnection.newBuilder(privateConnection_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.PrivateConnection.newBuilder(privateConnection_) + .mergeFrom(value) + .buildPartial(); } else { privateConnection_ = value; } @@ -968,11 +1094,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() { if (privateConnectionBuilder_ == null) { @@ -986,48 +1116,65 @@ 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() { - + onChanged(); 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_; @@ -1035,6 +1182,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
@@ -1050,13 +1199,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; @@ -1065,6 +1214,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
@@ -1080,15 +1231,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 { @@ -1096,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
@@ -1111,20 +1263,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1140,15 +1294,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1164,23 +1321,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1190,12 +1347,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(); } @@ -1204,16 +1362,16 @@ 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 { - return new CreatePrivateConnectionRequest(input, extensionRegistry); - } - }; + 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 { + return new CreatePrivateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,6 +1386,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java index 90b3e3a0..92dbf640 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java +++ b/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,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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java index 9263fddd..5a900bc2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java +++ b/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,16 +45,15 @@ 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; } + private CreateRouteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,50 @@ private CreateRouteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - routeId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1.Route.Builder subBuilder = null; - if (route_ != null) { - subBuilder = route_.toBuilder(); + parent_ = s; + break; } - route_ = input.readMessage(com.google.cloud.datastream.v1.Route.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(route_); - route_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + routeId_ = s; + break; } + case 26: + { + com.google.cloud.datastream.v1.Route.Builder subBuilder = null; + if (route_ != null) { + subBuilder = route_.toBuilder(); + } + route_ = + input.readMessage( + com.google.cloud.datastream.v1.Route.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(route_); + route_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +123,41 @@ private CreateRouteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -136,29 +166,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 { @@ -169,11 +201,14 @@ public java.lang.String getParent() { public static final int ROUTE_ID_FIELD_NUMBER = 2; 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 @@ -182,29 +217,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 { @@ -215,11 +250,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 @@ -227,11 +266,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 @@ -239,11 +282,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() { @@ -253,6 +299,8 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -268,6 +316,7 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -276,14 +325,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
@@ -299,16 +349,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 { @@ -317,6 +366,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +378,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_); } @@ -358,8 +407,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_); @@ -372,24 +420,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,117 +462,126 @@ 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() @@ -535,16 +589,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +617,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 @@ -585,7 +638,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); + com.google.cloud.datastream.v1.CreateRouteRequest result = + new com.google.cloud.datastream.v1.CreateRouteRequest(this); result.parent_ = parent_; result.routeId_ = routeId_; if (routeBuilder_ == null) { @@ -602,38 +656,39 @@ public com.google.cloud.datastream.v1.CreateRouteRequest 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.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; @@ -641,7 +696,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_; onChanged(); @@ -676,7 +732,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.CreateRouteRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.CreateRouteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,18 +745,22 @@ public Builder mergeFrom( 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; @@ -708,20 +769,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 { @@ -729,54 +793,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -784,18 +861,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; @@ -804,20 +883,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 { @@ -825,54 +905,61 @@ 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) { + public Builder setRouteId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routeId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRouteId() { - + routeId_ = getDefaultInstance().getRouteId(); onChanged(); 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) { + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routeId_ = value; onChanged(); return this; @@ -880,24 +967,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 routeBuilder_ != null || 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. */ public com.google.cloud.datastream.v1.Route getRoute() { @@ -908,11 +1006,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) { @@ -928,14 +1029,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(); onChanged(); @@ -946,17 +1049,22 @@ 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 (route_ != null) { route_ = - com.google.cloud.datastream.v1.Route.newBuilder(route_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.Route.newBuilder(route_) + .mergeFrom(value) + .buildPartial(); } else { route_ = value; } @@ -968,11 +1076,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() { if (routeBuilder_ == null) { @@ -986,48 +1097,59 @@ 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() { - + onChanged(); 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_; @@ -1035,6 +1157,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
@@ -1050,13 +1174,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; @@ -1065,6 +1189,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
@@ -1080,15 +1206,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 { @@ -1096,6 +1221,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
@@ -1111,20 +1238,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1140,15 +1269,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1164,23 +1296,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1190,12 +1322,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(); } @@ -1204,16 +1336,16 @@ 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 { - return new CreateRouteRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateRouteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,6 +1360,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java index ed1195c9..53f171d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java index 62ba6ae0..7f39784c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java +++ b/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,16 +45,15 @@ 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; } + private CreateStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,54 +72,60 @@ private CreateStreamRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - streamId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1.Stream.Builder subBuilder = null; - if (stream_ != null) { - subBuilder = stream_.toBuilder(); + streamId_ = s; + break; } - stream_ = input.readMessage(com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stream_); - stream_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.datastream.v1.Stream.Builder subBuilder = null; + if (stream_ != null) { + subBuilder = stream_.toBuilder(); + } + stream_ = + input.readMessage( + com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stream_); + stream_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - case 48: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 40: + { + validateOnly_ = input.readBool(); + break; + } + case 48: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,34 +133,41 @@ private CreateStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -146,29 +176,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 { @@ -179,11 +211,14 @@ public java.lang.String getParent() { public static final int STREAM_ID_FIELD_NUMBER = 2; 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 @@ -192,29 +227,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 { @@ -225,11 +260,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 @@ -237,11 +276,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 @@ -249,11 +292,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() { @@ -263,6 +309,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -278,6 +326,7 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -286,14 +335,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
@@ -309,16 +359,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 { @@ -329,12 +378,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; 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 @@ -345,11 +397,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_; /** + * + * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -358,6 +413,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,8 +425,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_); } @@ -405,19 +460,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -427,28 +479,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -471,128 +518,135 @@ 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) + unknownFields.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() @@ -600,16 +654,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -633,9 +686,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 @@ -654,7 +707,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); + com.google.cloud.datastream.v1.CreateStreamRequest result = + new com.google.cloud.datastream.v1.CreateStreamRequest(this); result.parent_ = parent_; result.streamId_ = streamId_; if (streamBuilder_ == null) { @@ -673,38 +727,39 @@ public com.google.cloud.datastream.v1.CreateStreamRequest 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.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; @@ -712,7 +767,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_; onChanged(); @@ -753,7 +809,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.CreateStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.CreateStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -765,18 +822,22 @@ public Builder mergeFrom( 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; @@ -785,20 +846,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 { @@ -806,54 +870,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -861,18 +938,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; @@ -881,20 +960,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 { @@ -902,54 +982,61 @@ 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) { + public Builder setStreamId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + streamId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamId() { - + streamId_ = getDefaultInstance().getStreamId(); onChanged(); 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) { + public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streamId_ = value; onChanged(); return this; @@ -957,39 +1044,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 streamBuilder_ != null || 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. */ 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) { @@ -1005,14 +1111,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(); onChanged(); @@ -1023,17 +1132,23 @@ 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 (stream_ != null) { stream_ = - com.google.cloud.datastream.v1.Stream.newBuilder(stream_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.Stream.newBuilder(stream_) + .mergeFrom(value) + .buildPartial(); } else { stream_ = value; } @@ -1045,11 +1160,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() { if (streamBuilder_ == null) { @@ -1063,48 +1182,64 @@ 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() { - + onChanged(); 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_; @@ -1112,6 +1247,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
@@ -1127,13 +1264,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; @@ -1142,6 +1279,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,15 +1296,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 { @@ -1173,6 +1311,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
@@ -1188,20 +1328,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1217,15 +1359,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1241,29 +1386,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -1271,44 +1419,53 @@ 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; 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() { - + validateOnly_ = false; onChanged(); 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 @@ -1316,37 +1473,43 @@ 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; 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() { - + force_ = false; 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); } @@ -1356,12 +1519,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(); } @@ -1370,16 +1533,16 @@ 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 { - return new CreateStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1394,6 +1557,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java index b5acf401..b657ef59 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java +++ b/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/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java new file mode 100644 index 00000000..6a5e9dd5 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -0,0 +1,810 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the 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\"\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\256\002\n\036c" + + "om.google.cloud.datastream.v1B\030Datastrea" + + "mResourcesProtoP\001ZDgoogle.golang.org/gen" + + "proto/googleapis/cloud/datastream/v1;dat" + + "astream\252\002\032Google.Cloud.Datastream.V1\312\002\032G" + + "oogle\\Cloud\\Datastream\\V1\352\002\035Google::Clou" + + "d::Datastream::V1\352AO\n\037compute.googleapis" + + ".com/Networks\022,projects/{project}/global" + + "/networks/{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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java index 2e957066..63f4e6f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java +++ b/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,16 +45,15 @@ 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; } + private DeleteConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +72,27 @@ private DeleteConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +100,41 @@ private DeleteConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -116,29 +143,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 { @@ -149,6 +178,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -164,6 +195,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -172,14 +204,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
@@ -195,16 +228,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 { @@ -213,6 +245,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +257,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_); } @@ -255,17 +287,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,117 +318,127 @@ 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() @@ -405,16 +446,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,13 +466,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(); } @@ -447,7 +488,8 @@ 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); + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result = + new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -458,38 +500,39 @@ public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -497,7 +540,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_; onChanged(); @@ -525,7 +570,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,18 +584,22 @@ public Builder mergeFrom( 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; @@ -557,20 +608,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 { @@ -578,54 +632,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -633,6 +700,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
@@ -648,13 +717,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; @@ -663,6 +732,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
@@ -678,15 +749,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 { @@ -694,6 +764,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
@@ -709,20 +781,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -738,15 +812,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -762,23 +839,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -788,12 +865,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(); } @@ -802,16 +880,16 @@ 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 { - return new DeleteConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +904,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java index fb6fe83c..c1def32d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java index 54409857..38a6a646 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java +++ b/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,16 +45,15 @@ 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; } + private DeletePrivateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private DeletePrivateConnectionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +105,41 @@ private DeletePrivateConnectionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -121,29 +148,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 { @@ -154,6 +183,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -169,6 +200,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -177,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
@@ -200,16 +233,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 { @@ -220,12 +252,15 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 3; 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 @@ -234,6 +269,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +281,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_); } @@ -272,8 +307,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -283,19 +317,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,125 +344,134 @@ 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) + unknownFields.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() @@ -438,16 +479,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -461,13 +501,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(); } @@ -482,7 +523,8 @@ 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); + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result = + new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(this); result.name_ = name_; result.requestId_ = requestId_; result.force_ = force_; @@ -494,38 +536,39 @@ public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -533,7 +576,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_; onChanged(); @@ -564,7 +609,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,18 +623,22 @@ public Builder mergeFrom( 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; @@ -596,20 +647,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 { @@ -617,54 +671,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -672,6 +739,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
@@ -687,13 +756,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; @@ -702,6 +771,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,15 +788,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 { @@ -733,6 +803,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
@@ -748,20 +820,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -777,15 +851,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -801,29 +878,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -831,39 +911,45 @@ 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; 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() { - + force_ = false; 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); } @@ -873,12 +959,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(); } @@ -887,16 +974,16 @@ 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 { - return new DeletePrivateConnectionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeletePrivateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +998,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java index 8e507313..f0b90236 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java index 6d2984fa..66af4214 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java +++ b/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,16 +44,15 @@ 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; } + private DeleteRouteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DeleteRouteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private DeleteRouteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -116,29 +142,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 { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -164,6 +194,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -172,14 +203,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
@@ -195,16 +227,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 { @@ -213,6 +244,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +256,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_); } @@ -255,17 +286,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,117 +317,126 @@ 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() @@ -405,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +464,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 @@ -447,7 +485,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); + com.google.cloud.datastream.v1.DeleteRouteRequest result = + new com.google.cloud.datastream.v1.DeleteRouteRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -458,38 +497,39 @@ public com.google.cloud.datastream.v1.DeleteRouteRequest 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.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; @@ -497,7 +537,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_; onChanged(); @@ -525,7 +566,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.DeleteRouteRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.DeleteRouteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,18 +579,22 @@ public Builder mergeFrom( 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; @@ -557,20 +603,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 { @@ -578,54 +627,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -633,6 +695,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
@@ -648,13 +712,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; @@ -663,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
@@ -678,15 +744,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 { @@ -694,6 +759,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
@@ -709,20 +776,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -738,15 +807,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -762,23 +834,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -788,12 +860,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(); } @@ -802,16 +874,16 @@ 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 { - return new DeleteRouteRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteRouteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +898,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java index eb3c2612..15ac9157 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java index 64fb727f..a2ea7be0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java +++ b/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,16 +44,15 @@ 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; } + private DeleteStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DeleteStreamRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private DeleteStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -116,29 +142,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 { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -164,6 +194,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -172,14 +203,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
@@ -195,16 +227,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 { @@ -213,6 +244,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +256,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_); } @@ -255,17 +286,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,117 +317,126 @@ 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() @@ -405,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +464,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 @@ -447,7 +485,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); + com.google.cloud.datastream.v1.DeleteStreamRequest result = + new com.google.cloud.datastream.v1.DeleteStreamRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -458,38 +497,39 @@ public com.google.cloud.datastream.v1.DeleteStreamRequest 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.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; @@ -497,7 +537,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_; onChanged(); @@ -525,7 +566,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.DeleteStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.DeleteStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,18 +579,22 @@ public Builder mergeFrom( 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; @@ -557,20 +603,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 { @@ -578,54 +627,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -633,6 +695,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
@@ -648,13 +712,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; @@ -663,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
@@ -678,15 +744,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 { @@ -694,6 +759,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
@@ -709,20 +776,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -738,15 +807,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -762,23 +834,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -788,12 +860,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(); } @@ -802,16 +874,16 @@ 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 { - return new DeleteStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +898,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java index fa3991af..27aaca5e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java index a0a2ee73..7533cd89 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java @@ -1,40 +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; /** + * + * *
  * 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; } + private DestinationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,62 @@ private DestinationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - destinationConnectionProfile_ = s; - break; - } - case 802: { - com.google.cloud.datastream.v1.GcsDestinationConfig.Builder subBuilder = null; - if (destinationStreamConfigCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_).toBuilder(); - } - destinationStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1.GcsDestinationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); - destinationStreamConfig_ = subBuilder.buildPartial(); + destinationConnectionProfile_ = s; + break; } - destinationStreamConfigCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder subBuilder = null; - if (destinationStreamConfigCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_).toBuilder(); + case 802: + { + com.google.cloud.datastream.v1.GcsDestinationConfig.Builder subBuilder = null; + if (destinationStreamConfigCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_) + .toBuilder(); + } + destinationStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.GcsDestinationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_); + destinationStreamConfig_ = subBuilder.buildPartial(); + } + destinationStreamConfigCase_ = 100; + break; } - destinationStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1.BigQueryDestinationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.BigQueryDestinationConfig) destinationStreamConfig_); - destinationStreamConfig_ = subBuilder.buildPartial(); + case 810: + { + com.google.cloud.datastream.v1.BigQueryDestinationConfig.Builder subBuilder = null; + if (destinationStreamConfigCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_) + .toBuilder(); + } + destinationStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.BigQueryDestinationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.BigQueryDestinationConfig) + destinationStreamConfig_); + destinationStreamConfig_ = subBuilder.buildPartial(); + } + destinationStreamConfigCase_ = 101; + break; } - destinationStreamConfigCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,35 +133,40 @@ private DestinationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -145,32 +182,40 @@ 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; 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 @@ -179,30 +224,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 { @@ -212,11 +259,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 @@ -224,21 +274,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.
    * 
@@ -246,20 +301,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 @@ -267,36 +327,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; @@ -308,16 +377,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_); } unknownFields.writeTo(output); } @@ -329,15 +399,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -347,24 +422,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: @@ -399,118 +475,127 @@ 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() @@ -518,16 +603,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -539,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_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 @@ -560,7 +644,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); + com.google.cloud.datastream.v1.DestinationConfig result = + new com.google.cloud.datastream.v1.DestinationConfig(this); result.destinationConnectionProfile_ = destinationConnectionProfile_; if (destinationStreamConfigCase_ == 100) { if (gcsDestinationConfigBuilder_ == null) { @@ -585,38 +670,39 @@ public com.google.cloud.datastream.v1.DestinationConfig 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.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; @@ -624,23 +710,27 @@ 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_; 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.unknownFields); onChanged(); @@ -670,12 +760,12 @@ public Builder mergeFrom( } 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() { @@ -685,22 +775,25 @@ public Builder clearDestinationStreamConfig() { return this; } - 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; @@ -709,21 +802,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 { @@ -731,70 +827,89 @@ 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) { + public Builder setDestinationConnectionProfile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationConnectionProfile_ = value; 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() { - + destinationConnectionProfile_ = getDefaultInstance().getDestinationConnectionProfile(); 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) = { ... } + * + * * @param value The bytes for destinationConnectionProfile to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileBytes( - com.google.protobuf.ByteString value) { + public Builder setDestinationConnectionProfileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationConnectionProfile_ = value; onChanged(); return this; } 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 @@ -802,11 +917,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 @@ -824,13 +942,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(); @@ -844,6 +965,8 @@ public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestina return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -862,18 +985,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; } @@ -889,6 +1020,8 @@ public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDesti return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -912,16 +1045,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.
      * 
@@ -929,7 +1067,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 { @@ -940,6 +1079,8 @@ public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestin } } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -947,32 +1088,47 @@ 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()); destinationStreamConfig_ = null; } destinationStreamConfigCase_ = 100; - onChanged();; + onChanged(); + ; return gcsDestinationConfigBuilder_; } 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 @@ -980,18 +1136,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 { @@ -1002,13 +1164,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(); @@ -1022,11 +1189,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) { @@ -1040,18 +1211,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; } @@ -1067,11 +1248,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) { @@ -1090,61 +1275,83 @@ 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()); destinationStreamConfig_ = null; } destinationStreamConfigCase_ = 101; - onChanged();; + 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); } @@ -1154,12 +1361,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(); } @@ -1168,16 +1375,16 @@ 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 { - return new DestinationConfig(input, extensionRegistry); - } - }; + 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 { + return new DestinationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,6 +1399,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java index 4b7ec8c8..6c9dd4b6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java index 2890ac17..296e2b58 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -1,40 +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/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; } + private DiscoverConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,91 +71,105 @@ private DiscoverConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 24: { - hierarchy_ = input.readBool(); - hierarchyCase_ = 3; - break; - } - case 32: { - hierarchy_ = input.readInt32(); - hierarchyCase_ = 4; - break; - } - case 802: { - com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1.OracleRdbms) dataObject_).toBuilder(); + parent_ = s; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 24: + { + hierarchy_ = input.readBool(); + hierarchyCase_ = 3; + break; } - dataObjectCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_).toBuilder(); + case 32: + { + hierarchy_ = input.readInt32(); + hierarchyCase_ = 4; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 100) { + subBuilder = ((com.google.cloud.datastream.v1.OracleRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 100; + break; } - dataObjectCase_ = 101; - break; - } - case 818: { - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 101) { + subBuilder = ((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 101; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 102; + break; } - dataObjectCase_ = 102; - break; - } - case 1602: { - com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; - if (targetCase_ == 200) { - subBuilder = ((com.google.cloud.datastream.v1.ConnectionProfile) target_).toBuilder(); + case 1602: + { + com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; + if (targetCase_ == 200) { + subBuilder = + ((com.google.cloud.datastream.v1.ConnectionProfile) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 200; + break; } - target_ = - input.readMessage(com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.ConnectionProfile) target_); - target_ = subBuilder.buildPartial(); + case 1610: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; } - targetCase_ = 200; - break; - } - case 1610: { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -145,35 +177,40 @@ private DiscoverConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -189,32 +226,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; } @@ -230,33 +273,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; } @@ -272,33 +321,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 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; 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 @@ -307,30 +365,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 { @@ -340,11 +400,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 @@ -352,21 +415,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.
    * 
@@ -376,29 +444,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() { @@ -409,8 +483,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; @@ -419,23 +492,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; } @@ -447,12 +521,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 @@ -460,12 +537,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 @@ -478,11 +558,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 @@ -490,11 +573,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 @@ -507,11 +593,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 @@ -519,21 +608,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.
    * 
@@ -543,18 +637,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 @@ -562,21 +659,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.
    * 
@@ -586,18 +688,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 @@ -605,21 +710,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.
    * 
@@ -629,12 +739,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; @@ -646,18 +757,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_); @@ -687,30 +795,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_); @@ -723,24 +835,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: @@ -748,12 +858,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: @@ -761,16 +869,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: @@ -803,8 +908,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; @@ -835,117 +939,127 @@ 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() @@ -953,16 +1067,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -978,13 +1091,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(); } @@ -999,7 +1113,8 @@ 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); + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = + new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(this); result.parent_ = parent_; if (targetCase_ == 200) { if (connectionProfileBuilder_ == null) { @@ -1049,94 +1164,108 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; 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.unknownFields); onChanged(); @@ -1157,7 +1286,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1166,12 +1297,12 @@ public Builder mergeFrom( } 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() { @@ -1183,10 +1314,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() { @@ -1198,10 +1328,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() { @@ -1211,22 +1340,25 @@ public Builder clearDataObject() { return this; } - 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; @@ -1235,21 +1367,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 { @@ -1257,70 +1392,89 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } 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 @@ -1328,11 +1482,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 @@ -1350,6 +1507,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { } } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1370,6 +1529,8 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1388,6 +1549,8 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1396,10 +1559,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; } @@ -1415,6 +1581,8 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1438,6 +1606,8 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1448,6 +1618,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1455,7 +1627,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 { @@ -1466,6 +1639,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1473,30 +1648,39 @@ 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()); target_ = null; } targetCase_ = 200; - onChanged();; + onChanged(); + ; return connectionProfileBuilder_; } /** + * + * *
      * A reference to an existing connection profile.
      * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ @java.lang.Override @@ -1504,11 +1688,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 @@ -1518,8 +1705,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; @@ -1530,24 +1716,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; } @@ -1557,30 +1744,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) { + public Builder setConnectionProfileName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetCase_ = 201; + 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() { @@ -1592,20 +1784,22 @@ 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) { + public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; onChanged(); @@ -1613,24 +1807,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() { @@ -1640,12 +1840,15 @@ 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. */ @@ -1656,12 +1859,15 @@ public Builder setFullHierarchy(boolean value) { 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() { @@ -1674,22 +1880,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() { @@ -1699,11 +1911,14 @@ 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. */ @@ -1714,11 +1929,14 @@ public Builder setHierarchyDepth(int value) { 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() { @@ -1731,13 +1949,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 @@ -1745,11 +1969,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 @@ -1767,6 +1994,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1787,6 +2016,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1805,6 +2036,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1813,10 +2046,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; } @@ -1832,6 +2068,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1855,6 +2093,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1865,6 +2105,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1883,6 +2125,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1890,32 +2134,44 @@ 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()); dataObject_ = null; } dataObjectCase_ = 100; - onChanged();; + onChanged(); + ; return oracleRdbmsBuilder_; } 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 @@ -1923,11 +2179,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 @@ -1945,6 +2204,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1965,6 +2226,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1983,6 +2246,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1991,10 +2256,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; } @@ -2010,6 +2278,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2033,6 +2303,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2043,6 +2315,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2061,6 +2335,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2068,32 +2344,44 @@ 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()); dataObject_ = null; } dataObjectCase_ = 101; - onChanged();; + onChanged(); + ; return mysqlRdbmsBuilder_; } 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 @@ -2101,11 +2389,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 @@ -2123,6 +2414,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { } } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2143,6 +2436,8 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2161,6 +2456,8 @@ public Builder setPostgresqlRdbms( return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2169,10 +2466,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; } @@ -2188,6 +2488,8 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2211,6 +2513,8 @@ public Builder clearPostgresqlRdbms() { return this; } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2221,6 +2525,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms return getPostgresqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2239,6 +2545,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm } } /** + * + * *
      * PostgreSQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2246,26 +2554,32 @@ 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()); dataObject_ = null; } dataObjectCase_ = 102; - onChanged();; + 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); } @@ -2275,30 +2589,32 @@ 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 { - return new DiscoverConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new DiscoverConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2310,9 +2626,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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 80% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java index 42dc860f..d8e5477f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java index c9a2b087..c512569c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -1,39 +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; /** + * + * *
  * 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; } + private DiscoverConnectionProfileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,55 +69,62 @@ private DiscoverConnectionProfileResponse( case 0: done = true; break; - case 802: { - com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1.OracleRdbms) dataObject_).toBuilder(); + case 802: + { + com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 100) { + subBuilder = ((com.google.cloud.datastream.v1.OracleRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 100; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 810: + { + com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 101) { + subBuilder = ((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 101; + break; } - dataObjectCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_).toBuilder(); + case 818: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 102; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - dataObjectCase_ = 101; - break; - } - case 818: { - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_).toBuilder(); - } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); - } - dataObjectCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,36 +132,41 @@ private DiscoverConnectionProfileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -153,31 +182,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 @@ -185,21 +221,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.
    * 
@@ -209,18 +250,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 @@ -228,21 +272,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.
    * 
@@ -252,18 +301,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 @@ -271,21 +323,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.
    * 
@@ -295,12 +352,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; @@ -312,8 +370,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_); } @@ -333,16 +390,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,26 +412,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: @@ -409,117 +467,127 @@ 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() @@ -527,16 +595,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -546,13 +613,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(); } @@ -567,7 +635,8 @@ 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); + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = + new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(this); if (dataObjectCase_ == 100) { if (oracleRdbmsBuilder_ == null) { result.dataObject_ = dataObject_; @@ -598,62 +667,70 @@ public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse 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.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.unknownFields); onChanged(); @@ -674,7 +751,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,12 +762,12 @@ public Builder mergeFrom( } 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() { @@ -698,15 +777,20 @@ public Builder clearDataObject() { return this; } - 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 @@ -714,11 +798,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 @@ -736,6 +823,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -756,6 +845,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -774,6 +865,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -782,10 +875,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; } @@ -801,6 +897,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -824,6 +922,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -834,6 +934,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -852,6 +954,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -859,32 +963,44 @@ 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()); dataObject_ = null; } dataObjectCase_ = 100; - onChanged();; + onChanged(); + ; return oracleRdbmsBuilder_; } 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 @@ -892,11 +1008,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 @@ -914,6 +1033,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -934,6 +1055,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -952,6 +1075,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -960,10 +1085,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; } @@ -979,6 +1107,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1002,6 +1132,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1012,6 +1144,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1030,6 +1164,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1037,32 +1173,44 @@ 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()); dataObject_ = null; } dataObjectCase_ = 101; - onChanged();; + onChanged(); + ; return mysqlRdbmsBuilder_; } 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 @@ -1070,11 +1218,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 @@ -1092,6 +1243,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms getPostgresqlRdbms() { } } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1112,6 +1265,8 @@ public Builder setPostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1130,6 +1285,8 @@ public Builder setPostgresqlRdbms( return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1138,10 +1295,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; } @@ -1157,6 +1317,8 @@ public Builder mergePostgresqlRdbms(com.google.cloud.datastream.v1.PostgresqlRdb return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1180,6 +1342,8 @@ public Builder clearPostgresqlRdbms() { return this; } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1190,6 +1354,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getPostgresqlRdbms return getPostgresqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1208,6 +1374,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlRdbm } } /** + * + * *
      * Enriched PostgreSQL RDBMS object.
      * 
@@ -1215,26 +1383,32 @@ 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()); dataObject_ = null; } dataObjectCase_ = 102; - onChanged();; + 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); } @@ -1244,30 +1418,32 @@ 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 { - return new DiscoverConnectionProfileResponse(input, extensionRegistry); - } - }; + 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 { + return new DiscoverConnectionProfileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1279,9 +1455,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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java index 94817804..d458039a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java index bdd2c83d..27e4bccf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java +++ b/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,16 +45,15 @@ 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; } + private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,57 +73,63 @@ private Error( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - reason_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + reason_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorUuid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + errorUuid_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (errorTime_ != null) { - subBuilder = errorTime_.toBuilder(); + message_ = s; + break; } - errorTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorTime_); - errorTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (errorTime_ != null) { + subBuilder = errorTime_.toBuilder(); + } + errorTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorTime_); + errorTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = com.google.protobuf.MapField.newMapField( - DetailsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = + com.google.protobuf.MapField.newMapField( + DetailsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + details_.getMutableMap().put(details__.getKey(), details__.getValue()); + break; } - com.google.protobuf.MapEntry - details__ = input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - details_.getMutableMap().put( - details__.getKey(), details__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,46 +137,50 @@ private Error( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object reason_; /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The reason. */ @java.lang.Override @@ -162,29 +189,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 { @@ -195,12 +222,15 @@ public java.lang.String getReason() { public static final int ERROR_UUID_FIELD_NUMBER = 2; 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 @@ -209,30 +239,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 { @@ -243,11 +273,14 @@ public java.lang.String getErrorUuid() { public static final int MESSAGE_FIELD_NUMBER = 3; 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 @@ -256,29 +289,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 { @@ -289,11 +322,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 @@ -301,11 +337,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 @@ -313,6 +352,8 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** + * + * *
    * The time when the error occurred.
    * 
@@ -325,24 +366,23 @@ 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, + ""); } - 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_; } @@ -351,28 +391,30 @@ public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
    * Additional information about the error.
    * 
* * 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.
    * 
@@ -380,11 +422,12 @@ public java.util.Map getDetails() { * map<string, string> details = 5; */ @java.lang.Override - public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -392,16 +435,16 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - - public java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrDefault(java.lang.String key, 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.
    * 
@@ -409,12 +452,11 @@ public 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(); } @@ -422,6 +464,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +476,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_); } @@ -447,12 +489,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); unknownFields.writeTo(output); } @@ -472,18 +510,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -493,26 +530,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -543,140 +575,146 @@ 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() @@ -684,16 +722,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -714,9 +751,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 @@ -755,38 +792,39 @@ public com.google.cloud.datastream.v1.Error 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.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; @@ -810,8 +848,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()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -840,22 +877,25 @@ public Builder mergeFrom( } 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; @@ -864,20 +904,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 { @@ -885,54 +926,61 @@ 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) { + public Builder setReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reason_ = value; onChanged(); return this; } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = getDefaultInstance().getReason(); onChanged(); 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) { + public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; onChanged(); return this; @@ -940,19 +988,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; @@ -961,21 +1011,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 { @@ -983,57 +1034,64 @@ 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) { + public Builder setErrorUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorUuid_ = value; 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() { - + errorUuid_ = getDefaultInstance().getErrorUuid(); 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; + * * @param value The bytes for errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorUuid_ = value; onChanged(); return this; @@ -1041,18 +1099,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; @@ -1061,20 +1121,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 { @@ -1082,54 +1143,61 @@ 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) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); 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) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1137,24 +1205,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 errorTimeBuilder_ != null || errorTime_ != null; } /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ public com.google.protobuf.Timestamp getErrorTime() { @@ -1165,6 +1242,8 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1185,14 +1264,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(); onChanged(); @@ -1203,6 +1283,8 @@ public Builder setErrorTime( return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1213,7 +1295,7 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { if (errorTimeBuilder_ == null) { if (errorTime_ != null) { errorTime_ = - com.google.protobuf.Timestamp.newBuilder(errorTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(errorTime_).mergeFrom(value).buildPartial(); } else { errorTime_ = value; } @@ -1225,6 +1307,8 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1243,6 +1327,8 @@ public Builder clearErrorTime() { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1250,11 +1336,13 @@ public Builder clearErrorTime() { * .google.protobuf.Timestamp error_time = 4; */ public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { - + onChanged(); return getErrorTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1265,11 +1353,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.
      * 
@@ -1277,35 +1366,37 @@ 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() { - onChanged();; + internalGetMutableDetails() { + onChanged(); + ; 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(); @@ -1317,28 +1408,30 @@ public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
      * Additional information about the error.
      * 
* * 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.
      * 
@@ -1346,11 +1439,12 @@ public java.util.Map getDetails() { * map<string, string> details = 5; */ @java.lang.Override - public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1358,16 +1452,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String key, 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.
      * 
@@ -1375,12 +1470,11 @@ public 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(); } @@ -1388,69 +1482,66 @@ public java.lang.String getDetailsOrThrow( } public Builder clearDetails() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableDetails().getMutableMap() - .put(key, value); + internalGetMutableDetails().getMutableMap().put(key, value); 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); 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); } @@ -1460,12 +1551,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(); } @@ -1474,16 +1565,16 @@ 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 { - return new Error(input, extensionRegistry); - } - }; + 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 { + return new Error(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1498,6 +1589,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java index d1ae6e37..71d2a729 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java +++ b/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.
    * 
@@ -137,18 +179,18 @@ boolean containsDetails( */ /* 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java index e1eb3790..a4d0235c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java +++ b/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,16 +44,15 @@ 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; } + private FetchStaticIpsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private FetchStaticIpsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private FetchStaticIpsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,12 +202,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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 @@ -185,30 +219,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 { @@ -217,6 +251,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +263,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_); } @@ -252,8 +286,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_); @@ -266,19 +299,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,117 +333,126 @@ 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() @@ -420,16 +460,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +482,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 @@ -464,7 +503,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); + com.google.cloud.datastream.v1.FetchStaticIpsRequest result = + new com.google.cloud.datastream.v1.FetchStaticIpsRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,38 +516,39 @@ public com.google.cloud.datastream.v1.FetchStaticIpsRequest 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.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; @@ -515,7 +556,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_; onChanged(); @@ -546,7 +588,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.FetchStaticIpsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.FetchStaticIpsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,19 +601,23 @@ public Builder mergeFrom( 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; @@ -579,21 +626,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 { @@ -601,69 +651,85 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); 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 @@ -671,30 +737,36 @@ 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; 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() { - + pageSize_ = 0; onChanged(); return this; @@ -702,19 +774,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; @@ -723,21 +797,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 { @@ -745,64 +820,71 @@ 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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -812,12 +894,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(); } @@ -826,16 +908,16 @@ 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 { - return new FetchStaticIpsRequest(input, extensionRegistry); - } - }; + 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 { + return new FetchStaticIpsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +932,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java similarity index 56% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java index 4f7f2606..09c66d82 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java index 99aa355b..95d27ec7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java +++ b/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,16 +44,15 @@ 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; } + private FetchStaticIpsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private FetchStaticIpsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - staticIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + staticIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + staticIps_.add(s); + break; } - staticIps_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private FetchStaticIpsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); @@ -94,50 +112,61 @@ private FetchStaticIpsResponse( makeExtensionsImmutable(); } } - 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; 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. */ @@ -145,28 +174,33 @@ 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; 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 @@ -175,30 +209,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 { @@ -207,6 +241,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +253,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)); } @@ -254,17 +288,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -288,117 +321,127 @@ 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() @@ -406,16 +449,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -427,9 +469,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 @@ -448,7 +490,8 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); @@ -464,38 +507,39 @@ public com.google.cloud.datastream.v1.FetchStaticIpsResponse 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.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; @@ -503,7 +547,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_; @@ -537,7 +582,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.FetchStaticIpsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.FetchStaticIpsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -546,44 +592,55 @@ public Builder mergeFrom( } 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. */ @@ -591,80 +648,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) { + public Builder setStaticIps(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStaticIpsIsMutable(); + 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) { + public Builder addStaticIps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStaticIpsIsMutable(); + 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() { @@ -674,20 +741,22 @@ 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) { + public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStaticIpsIsMutable(); staticIps_.add(value); onChanged(); @@ -696,19 +765,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; @@ -717,21 +788,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 { @@ -739,64 +811,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -806,12 +885,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(); } @@ -820,16 +899,16 @@ 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 { - return new FetchStaticIpsResponse(input, extensionRegistry); - } - }; + 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 { + return new FetchStaticIpsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java index 128d3d63..fc59ab73 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java index 7bbb9175..56fdfcfa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java +++ b/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,16 +44,15 @@ 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; } + private ForwardSshTunnelConnectivity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,42 +71,46 @@ private ForwardSshTunnelConnectivity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hostname_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { + hostname_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 802: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 100; - authenticationMethod_ = s; - break; - } - case 810: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 101; - authenticationMethod_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + username_ = s; + break; + } + case 24: + { + port_ = input.readInt32(); + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,35 +118,40 @@ private ForwardSshTunnelConnectivity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -141,31 +167,37 @@ 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; 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 @@ -174,29 +206,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 { @@ -207,11 +239,14 @@ public java.lang.String getHostname() { public static final int USERNAME_FIELD_NUMBER = 2; 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 @@ -220,29 +255,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 { @@ -253,11 +288,14 @@ public java.lang.String getUsername() { public static final int PORT_FIELD_NUMBER = 3; private int port_; /** + * + * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -267,22 +305,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() { @@ -293,8 +337,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; @@ -303,23 +346,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; } @@ -331,22 +375,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() { @@ -357,8 +407,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; @@ -367,23 +416,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; } @@ -394,6 +444,7 @@ public java.lang.String getPrivateKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,8 +456,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_); } @@ -438,8 +488,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_); @@ -455,28 +504,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: @@ -516,117 +561,127 @@ 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() @@ -634,16 +689,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,9 +713,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 @@ -680,7 +734,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); + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result = + new com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity(this); result.hostname_ = hostname_; result.username_ = username_; result.port_ = port_; @@ -699,38 +754,39 @@ public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity 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.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; @@ -738,7 +794,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_; onChanged(); @@ -751,21 +808,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.unknownFields); onChanged(); @@ -786,7 +846,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -795,12 +856,12 @@ public Builder mergeFrom( } 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() { @@ -810,21 +871,22 @@ public Builder clearAuthenticationMethod() { return this; } - 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; @@ -833,20 +895,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 { @@ -854,54 +917,61 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); return this; @@ -909,18 +979,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; @@ -929,20 +1001,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 { @@ -950,66 +1023,76 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); 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 @@ -1017,41 +1100,50 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ @java.lang.Override @@ -1059,11 +1151,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 @@ -1073,8 +1168,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; @@ -1085,24 +1179,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; } @@ -1112,30 +1207,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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - authenticationMethodCase_ = 100; + 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() { @@ -1147,20 +1247,22 @@ 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) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); authenticationMethodCase_ = 100; authenticationMethod_ = value; onChanged(); @@ -1168,11 +1270,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 @@ -1180,11 +1285,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 @@ -1194,8 +1302,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; @@ -1206,24 +1313,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; } @@ -1233,30 +1341,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) { + public Builder setPrivateKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - authenticationMethodCase_ = 101; + 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() { @@ -1268,28 +1381,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) { + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1299,12 +1414,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(); } @@ -1313,16 +1428,16 @@ 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 { - return new ForwardSshTunnelConnectivity(input, extensionRegistry); - } - }; + 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 { + return new ForwardSshTunnelConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1337,6 +1452,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java index e636a456..6febb574 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java index c08edd8b..83113074 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java @@ -1,40 +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; /** + * + * *
  * 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; } + private GcsDestinationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,74 @@ private GcsDestinationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - path_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - fileRotationMb_ = input.readInt32(); - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (fileRotationInterval_ != null) { - subBuilder = fileRotationInterval_.toBuilder(); + path_ = s; + break; } - fileRotationInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fileRotationInterval_); - fileRotationInterval_ = subBuilder.buildPartial(); + case 16: + { + fileRotationMb_ = input.readInt32(); + break; } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (fileRotationInterval_ != null) { + subBuilder = fileRotationInterval_.toBuilder(); + } + fileRotationInterval_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fileRotationInterval_); + fileRotationInterval_ = subBuilder.buildPartial(); + } - break; - } - case 802: { - com.google.cloud.datastream.v1.AvroFileFormat.Builder subBuilder = null; - if (fileFormatCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_).toBuilder(); + break; } - fileFormat_ = - input.readMessage(com.google.cloud.datastream.v1.AvroFileFormat.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); - fileFormat_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1.AvroFileFormat.Builder subBuilder = null; + if (fileFormatCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_).toBuilder(); + } + fileFormat_ = + input.readMessage( + com.google.cloud.datastream.v1.AvroFileFormat.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); + fileFormat_ = subBuilder.buildPartial(); + } + fileFormatCase_ = 100; + break; } - fileFormatCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1.JsonFileFormat.Builder subBuilder = null; - if (fileFormatCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1.JsonFileFormat.Builder subBuilder = null; + if (fileFormatCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_).toBuilder(); + } + fileFormat_ = + input.readMessage( + com.google.cloud.datastream.v1.JsonFileFormat.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); + fileFormat_ = subBuilder.buildPartial(); + } + fileFormatCase_ = 101; + break; } - fileFormat_ = - input.readMessage(com.google.cloud.datastream.v1.JsonFileFormat.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); - fileFormat_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - fileFormatCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,35 +145,40 @@ private GcsDestinationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -163,31 +194,37 @@ 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; 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 @@ -196,29 +233,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 { @@ -229,11 +266,14 @@ public java.lang.String getPath() { public static final int FILE_ROTATION_MB_FIELD_NUMBER = 2; private int fileRotationMb_; /** + * + * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 2; + * * @return The fileRotationMb. */ @java.lang.Override @@ -244,12 +284,15 @@ 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.
    * 
* * .google.protobuf.Duration file_rotation_interval = 3; + * * @return Whether the fileRotationInterval field is set. */ @java.lang.Override @@ -257,19 +300,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 = 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.
@@ -284,11 +334,14 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
 
   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 @@ -296,21 +349,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.
    * 
@@ -320,18 +378,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 @@ -339,21 +400,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.
    * 
@@ -363,12 +429,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; @@ -380,8 +447,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_); } @@ -410,20 +476,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -433,31 +500,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: @@ -499,117 +562,126 @@ 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() @@ -617,16 +689,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -646,9 +717,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 @@ -667,7 +738,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); + com.google.cloud.datastream.v1.GcsDestinationConfig result = + new com.google.cloud.datastream.v1.GcsDestinationConfig(this); result.path_ = path_; result.fileRotationMb_ = fileRotationMb_; if (fileRotationIntervalBuilder_ == null) { @@ -698,38 +770,39 @@ public com.google.cloud.datastream.v1.GcsDestinationConfig 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.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; @@ -737,7 +810,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_; onChanged(); @@ -749,17 +823,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.unknownFields); onChanged(); @@ -780,7 +857,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.GcsDestinationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.GcsDestinationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -789,12 +867,12 @@ public Builder mergeFrom( } 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() { @@ -804,21 +882,22 @@ public Builder clearFileFormat() { return this; } - 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; @@ -827,20 +906,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 { @@ -848,66 +928,76 @@ 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) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); 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) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); 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 @@ -915,30 +1005,36 @@ 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; 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() { - + fileRotationMb_ = 0; onChanged(); return this; @@ -946,36 +1042,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 = 3; + * * @return Whether the fileRotationInterval field is set. */ public boolean hasFileRotationInterval() { return fileRotationIntervalBuilder_ != null || 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 = 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.
@@ -997,6 +1106,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.
@@ -1004,8 +1115,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();
         onChanged();
@@ -1016,6 +1126,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.
@@ -1027,7 +1139,9 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       if (fileRotationIntervalBuilder_ == null) {
         if (fileRotationInterval_ != null) {
           fileRotationInterval_ =
-            com.google.protobuf.Duration.newBuilder(fileRotationInterval_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(fileRotationInterval_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fileRotationInterval_ = value;
         }
@@ -1039,6 +1153,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.
@@ -1058,6 +1174,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.
@@ -1066,11 +1184,13 @@ public Builder clearFileRotationInterval() {
      * .google.protobuf.Duration file_rotation_interval = 3;
      */
     public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder() {
-      
+
       onChanged();
       return getFileRotationIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1082,11 +1202,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.
@@ -1095,27 +1218,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 @@ -1123,11 +1255,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 @@ -1145,6 +1280,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1165,6 +1302,8 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat v return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1183,6 +1322,8 @@ public Builder setAvroFileFormat( return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1191,10 +1332,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; } @@ -1210,6 +1354,8 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1233,6 +1379,8 @@ public Builder clearAvroFileFormat() { return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1243,6 +1391,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat.Builder getAvroFileFormatBu return getAvroFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1261,6 +1411,8 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1268,32 +1420,44 @@ 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()); fileFormat_ = null; } fileFormatCase_ = 100; - onChanged();; + onChanged(); + ; return avroFileFormatBuilder_; } 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 @@ -1301,11 +1465,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 @@ -1323,6 +1490,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1343,6 +1512,8 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat v return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1361,6 +1532,8 @@ public Builder setJsonFileFormat( return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1369,10 +1542,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; } @@ -1388,6 +1564,8 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1411,6 +1589,8 @@ public Builder clearJsonFileFormat() { return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1421,6 +1601,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat.Builder getJsonFileFormatBu return getJsonFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1439,6 +1621,8 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1446,26 +1630,32 @@ 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()); fileFormat_ = null; } fileFormatCase_ = 101; - onChanged();; + 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); } @@ -1475,12 +1665,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(); } @@ -1489,16 +1679,16 @@ 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 { - return new GcsDestinationConfig(input, extensionRegistry); - } - }; + 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 { + return new GcsDestinationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1513,6 +1703,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java index 289bb6f0..0730c1a9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java @@ -1,63 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the 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.
    * 
* * .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.
    * 
* * .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.
@@ -68,24 +100,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.
    * 
@@ -95,24 +135,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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java index e0f95c7b..f8ac7853 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java +++ b/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,16 +44,15 @@ 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; } + private GcsProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GcsProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - bucket_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + bucket_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - rootPath_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootPath_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private GcsProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -116,29 +140,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 { @@ -149,11 +173,14 @@ public java.lang.String getBucket() { public static final int ROOT_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object rootPath_; /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The rootPath. */ @java.lang.Override @@ -162,29 +189,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 { @@ -193,6 +220,7 @@ public java.lang.String getRootPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,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_); } @@ -235,17 +262,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,118 +292,127 @@ 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() @@ -385,16 +420,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -406,9 +440,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 @@ -427,7 +461,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); + com.google.cloud.datastream.v1.GcsProfile result = + new com.google.cloud.datastream.v1.GcsProfile(this); result.bucket_ = bucket_; result.rootPath_ = rootPath_; onBuilt(); @@ -438,38 +473,39 @@ public com.google.cloud.datastream.v1.GcsProfile 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.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; @@ -517,18 +553,20 @@ public Builder mergeFrom( 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; @@ -537,20 +575,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 { @@ -558,54 +597,61 @@ 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) { + public Builder setBucket(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucket_ = value; 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() { - + bucket_ = getDefaultInstance().getBucket(); onChanged(); 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) { + public Builder setBucketBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucket_ = value; onChanged(); return this; @@ -613,18 +659,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; @@ -633,20 +681,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 { @@ -654,61 +703,68 @@ 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) { + public Builder setRootPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootPath_ = value; onChanged(); return this; } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return This builder for chaining. */ public Builder clearRootPath() { - + rootPath_ = getDefaultInstance().getRootPath(); onChanged(); 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) { + public Builder setRootPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootPath_ = 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); } @@ -718,12 +774,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(); } @@ -732,16 +788,16 @@ 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 { - return new GcsProfile(input, extensionRegistry); - } - }; + 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 { + return new GcsProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +812,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java similarity index 57% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java index 6d170ffc..08fbfc7b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java index 229bd33c..6d715b24 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java @@ -1,40 +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.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; } + private GetConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ 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() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,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); + com.google.cloud.datastream.v1.GetConnectionProfileRequest result = + new com.google.cloud.datastream.v1.GetConnectionProfileRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.datastream.v1.GetConnectionProfileRequest 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.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; @@ -411,7 +449,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_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( 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; @@ -467,20 +511,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 { @@ -488,61 +535,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -552,12 +612,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(); } @@ -566,16 +626,16 @@ 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 { - return new GetConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new GetConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..56b92a1f --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java index 09606e94..f769ae06 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java @@ -1,40 +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.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; } + private GetPrivateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetPrivateConnectionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetPrivateConnectionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ 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() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,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); + com.google.cloud.datastream.v1.GetPrivateConnectionRequest result = + new com.google.cloud.datastream.v1.GetPrivateConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.datastream.v1.GetPrivateConnectionRequest 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.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; @@ -411,7 +449,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_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( 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; @@ -467,20 +511,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 { @@ -488,61 +535,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -552,12 +612,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(); } @@ -566,16 +626,16 @@ 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 { - return new GetPrivateConnectionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetPrivateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 00000000..713b409f --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java index f7026f02..cc4858f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java @@ -1,40 +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.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; } + private GetRouteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetRouteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetRouteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ 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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,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 @@ -362,7 +397,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); + com.google.cloud.datastream.v1.GetRouteRequest result = + new com.google.cloud.datastream.v1.GetRouteRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.datastream.v1.GetRouteRequest 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.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; @@ -447,18 +484,22 @@ public Builder mergeFrom( 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; @@ -467,20 +508,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 { @@ -488,61 +532,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -552,12 +609,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(); } @@ -566,16 +623,16 @@ 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 { - return new GetRouteRequest(input, extensionRegistry); - } - }; + 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 { + return new GetRouteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +647,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java new file mode 100644 index 00000000..f63f5593 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java index 2bb5ea6c..11a6aaeb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java @@ -1,40 +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.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; } + private GetStreamObjectRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetStreamObjectRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetStreamObjectRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ 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() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,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); + com.google.cloud.datastream.v1.GetStreamObjectRequest result = + new com.google.cloud.datastream.v1.GetStreamObjectRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.datastream.v1.GetStreamObjectRequest 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.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; @@ -411,7 +449,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_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.GetStreamObjectRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.GetStreamObjectRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( 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; @@ -467,20 +511,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 { @@ -488,61 +535,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -552,12 +612,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(); } @@ -566,16 +626,16 @@ 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 { - return new GetStreamObjectRequest(input, extensionRegistry); - } - }; + 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 { + return new GetStreamObjectRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java new file mode 100644 index 00000000..63588e71 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java index 1d353769..bbe25732 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java @@ -1,40 +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.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; } + private GetStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetStreamRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ 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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,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 @@ -362,7 +397,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); + com.google.cloud.datastream.v1.GetStreamRequest result = + new com.google.cloud.datastream.v1.GetStreamRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.datastream.v1.GetStreamRequest 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.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; @@ -411,7 +448,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_; onChanged(); @@ -447,18 +485,22 @@ public Builder mergeFrom( 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; @@ -467,20 +509,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 { @@ -488,61 +533,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -552,12 +610,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(); } @@ -566,16 +624,16 @@ 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 { - return new GetStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new GetStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +648,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java new file mode 100644 index 00000000..0c06df45 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java index f04271d2..91d0d2f9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java +++ b/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,16 +44,15 @@ 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; } + private JsonFileFormat( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private JsonFileFormat( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - schemaFileFormat_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + schemaFileFormat_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - compression_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + compression_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,41 @@ private JsonFileFormat( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -118,6 +142,8 @@ public enum SchemaFileFormat */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** + * + * *
      * Do not attach schema file.
      * 
@@ -126,6 +152,8 @@ public enum SchemaFileFormat */ NO_SCHEMA_FILE(1), /** + * + * *
      * Avro schema format.
      * 
@@ -137,6 +165,8 @@ public enum SchemaFileFormat ; /** + * + * *
      * Unspecified schema file format.
      * 
@@ -145,6 +175,8 @@ public enum SchemaFileFormat */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not attach schema file.
      * 
@@ -153,6 +185,8 @@ public enum SchemaFileFormat */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** + * + * *
      * Avro schema format.
      * 
@@ -161,7 +195,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( @@ -186,39 +219,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); } @@ -227,8 +263,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; @@ -246,15 +281,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.
      * 
@@ -263,6 +301,8 @@ public enum JsonCompression */ JSON_COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * Do not compress JSON file.
      * 
@@ -271,6 +311,8 @@ public enum JsonCompression */ NO_COMPRESSION(1), /** + * + * *
      * Gzip compression.
      * 
@@ -282,6 +324,8 @@ public enum JsonCompression ; /** + * + * *
      * Unspecified json file compression.
      * 
@@ -290,6 +334,8 @@ public enum JsonCompression */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not compress JSON file.
      * 
@@ -298,6 +344,8 @@ public enum JsonCompression */ public static final int NO_COMPRESSION_VALUE = 1; /** + * + * *
      * Gzip compression.
      * 
@@ -306,7 +354,6 @@ public enum JsonCompression */ public static final int GZIP_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -331,39 +378,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); } @@ -372,8 +422,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; @@ -393,58 +442,83 @@ private JsonCompression(int value) { public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER = 1; private int 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 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat getSchemaFileFormat() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.valueOf(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.valueOf(schemaFileFormat_); + return result == null + ? com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.UNRECOGNIZED + : result; } public static final int COMPRESSION_FIELD_NUMBER = 2; private int compression_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression getCompression() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.valueOf(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.valueOf(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; @@ -456,12 +530,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_); } unknownFields.writeTo(output); @@ -473,13 +552,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -489,12 +572,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; @@ -518,118 +602,127 @@ 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() @@ -637,16 +730,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -658,9 +750,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 @@ -679,7 +771,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); + com.google.cloud.datastream.v1.JsonFileFormat result = + new com.google.cloud.datastream.v1.JsonFileFormat(this); result.schemaFileFormat_ = schemaFileFormat_; result.compression_ = compression_; onBuilt(); @@ -690,38 +783,39 @@ public com.google.cloud.datastream.v1.JsonFileFormat 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.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; @@ -767,73 +861,98 @@ public Builder mergeFrom( 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. */ public Builder setSchemaFileFormatValue(int value) { - + schemaFileFormat_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat result = com.google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat.valueOf(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.valueOf(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(); } - + schemaFileFormat_ = value.getNumber(); onChanged(); 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() { - + schemaFileFormat_ = 0; onChanged(); return this; @@ -841,80 +960,100 @@ 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. */ public Builder setCompressionValue(int value) { - + compression_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.valueOf(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.valueOf(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(); } - + compression_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Compression of the loaded JSON file.
      * 
* * .google.cloud.datastream.v1.JsonFileFormat.JsonCompression compression = 2; + * * @return This builder for chaining. */ public Builder clearCompression() { - + compression_ = 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); } @@ -924,12 +1063,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(); } @@ -938,16 +1077,16 @@ 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 { - return new JsonFileFormat(input, extensionRegistry); - } - }; + 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 { + return new JsonFileFormat(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,6 +1101,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java index 494d2d98..ef4b8a8e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java index ad0a2a3c..174015e0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java +++ b/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,16 +46,15 @@ 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; } + private ListConnectionProfilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListConnectionProfilesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,41 @@ private ListConnectionProfilesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -135,29 +163,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 { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -175,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +218,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -193,6 +228,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -201,14 +237,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.
@@ -217,16 +254,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 { @@ -237,11 +273,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -250,29 +289,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 { @@ -283,11 +322,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -296,29 +338,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 { @@ -327,6 +369,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,8 +381,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_); } @@ -368,8 +410,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_); @@ -388,23 +429,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -432,117 +469,127 @@ 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() @@ -550,16 +597,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -577,13 +623,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(); } @@ -598,7 +645,8 @@ 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); + com.google.cloud.datastream.v1.ListConnectionProfilesRequest result = + new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -612,38 +660,39 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesRequest 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.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; @@ -651,7 +700,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_; onChanged(); @@ -690,7 +741,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -702,18 +754,22 @@ public Builder mergeFrom( 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; @@ -722,20 +778,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 { @@ -743,61 +802,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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.
@@ -805,6 +879,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -812,6 +887,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -819,16 +896,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -836,10 +916,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -847,6 +928,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -855,13 +938,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; @@ -870,6 +953,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -878,15 +963,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 { @@ -894,6 +978,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -902,20 +988,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -924,15 +1012,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -941,16 +1032,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -958,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; @@ -978,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 { @@ -999,54 +1093,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1054,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; @@ -1074,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 { @@ -1095,61 +1199,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1159,12 +1270,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(); } @@ -1173,16 +1285,16 @@ 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 { - return new ListConnectionProfilesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListConnectionProfilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,6 +1309,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java index 4981775b..f79b030e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java index 1239cda7..1cdcffe9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java +++ b/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,16 +46,15 @@ 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; } + private ListConnectionProfilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +74,43 @@ private ListConnectionProfilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + connectionProfiles_.add( + input.readMessage( + com.google.cloud.datastream.v1.ConnectionProfile.parser(), + extensionRegistry)); + break; } - connectionProfiles_.add( - input.readMessage(com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +118,7 @@ private ListConnectionProfilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -107,22 +130,27 @@ private ListConnectionProfilesResponse( makeExtensionsImmutable(); } } - 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; private java.util.List connectionProfiles_; /** + * + * *
    * List of connection profiles.
    * 
@@ -130,10 +158,13 @@ private ListConnectionProfilesResponse( * 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.
    * 
@@ -141,11 +172,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.
    * 
@@ -157,6 +190,8 @@ public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** + * + * *
    * List of connection profiles.
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in return connectionProfiles_.get(index); } /** + * + * *
    * List of connection profiles.
    * 
@@ -183,12 +220,15 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -197,30 +237,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 { @@ -231,34 +271,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -266,20 +314,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; @@ -291,8 +342,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)); } @@ -312,8 +362,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_); @@ -334,19 +384,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +422,127 @@ 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() @@ -492,17 +550,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConnectionProfilesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +578,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(); } @@ -541,7 +600,8 @@ 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); int from_bitField0_ = bitField0_; if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +626,39 @@ public com.google.cloud.datastream.v1.ListConnectionProfilesResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -605,7 +666,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()) { @@ -624,9 +687,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_); } @@ -665,7 +729,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,28 +740,38 @@ public Builder mergeFrom( } 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 { @@ -703,6 +779,8 @@ public java.util.List getConne } } /** + * + * *
      * List of connection profiles.
      * 
@@ -717,6 +795,8 @@ public int getConnectionProfilesCount() { } } /** + * + * *
      * List of connection profiles.
      * 
@@ -731,6 +811,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in } } /** + * + * *
      * List of connection profiles.
      * 
@@ -752,6 +834,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -770,6 +854,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -790,6 +876,8 @@ public Builder addConnectionProfiles(com.google.cloud.datastream.v1.ConnectionPr return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -811,6 +899,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -829,6 +919,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -847,6 +939,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -857,8 +951,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); @@ -866,6 +959,8 @@ public Builder addAllConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -883,6 +978,8 @@ public Builder clearConnectionProfiles() { return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -900,6 +997,8 @@ public Builder removeConnectionProfiles(int index) { return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -911,6 +1010,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfilesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connection profiles.
      * 
@@ -920,19 +1021,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 { @@ -940,6 +1044,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** + * + * *
      * List of connection profiles.
      * 
@@ -947,10 +1053,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.
      * 
@@ -959,26 +1067,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(), @@ -990,19 +1106,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; @@ -1011,21 +1129,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 { @@ -1033,98 +1152,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1132,80 +1268,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1215,28 +1361,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1246,12 +1394,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(); } @@ -1260,16 +1409,16 @@ 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 { - return new ListConnectionProfilesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListConnectionProfilesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,6 +1433,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java index e8c75079..13d60e16 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java index ea9bdf30..c526d1e8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java +++ b/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,16 +46,15 @@ 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; } + private ListPrivateConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListPrivateConnectionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,41 @@ private ListPrivateConnectionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -135,29 +163,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 { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -176,6 +208,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -186,6 +219,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -195,6 +230,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -203,14 +239,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.
@@ -220,16 +257,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 { @@ -240,11 +276,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -253,29 +292,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 { @@ -286,11 +325,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -299,29 +341,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 { @@ -330,6 +372,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +384,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_); } @@ -371,8 +413,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_); @@ -391,23 +432,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,117 +472,127 @@ 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() @@ -553,16 +600,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -580,13 +626,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(); } @@ -601,7 +648,8 @@ 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); + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result = + new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -615,38 +663,39 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest 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.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; @@ -654,7 +703,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_; onChanged(); @@ -693,7 +744,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,18 +757,22 @@ public Builder mergeFrom( 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; @@ -725,20 +781,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 { @@ -746,61 +805,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -809,6 +883,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -816,6 +891,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
@@ -824,16 +901,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -842,10 +922,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -853,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.
@@ -862,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; @@ -877,6 +960,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -886,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 { @@ -902,6 +986,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -911,20 +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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -934,15 +1022,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -952,16 +1043,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -969,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; @@ -989,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 { @@ -1010,54 +1104,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1065,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; @@ -1085,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 { @@ -1106,61 +1210,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1170,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(); } @@ -1184,16 +1296,16 @@ 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 { - return new ListPrivateConnectionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListPrivateConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,6 +1320,4 @@ public com.google.protobuf.Parser getParserForTyp public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java index 79d053a5..85a2b1a6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/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/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
@@ -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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java index 4d073a50..cc7b19f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java +++ b/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,16 +46,15 @@ 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; } + private ListPrivateConnectionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +74,43 @@ private ListPrivateConnectionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - privateConnections_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + privateConnections_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + privateConnections_.add( + input.readMessage( + com.google.cloud.datastream.v1.PrivateConnection.parser(), + extensionRegistry)); + break; } - privateConnections_.add( - input.readMessage(com.google.cloud.datastream.v1.PrivateConnection.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +118,7 @@ private ListPrivateConnectionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); @@ -107,22 +130,27 @@ private ListPrivateConnectionsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List privateConnections_; /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -130,10 +158,13 @@ private ListPrivateConnectionsResponse( * 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.
    * 
@@ -141,11 +172,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.
    * 
@@ -157,6 +190,8 @@ public int getPrivateConnectionsCount() { return privateConnections_.size(); } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -168,6 +203,8 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in return privateConnections_.get(index); } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -183,12 +220,15 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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 @@ -197,30 +237,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 { @@ -231,34 +271,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -266,20 +314,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; @@ -291,8 +342,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)); } @@ -312,8 +362,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_); @@ -334,19 +384,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +422,127 @@ 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() @@ -492,17 +550,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPrivateConnectionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +578,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(); } @@ -541,7 +600,8 @@ 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); int from_bitField0_ = bitField0_; if (privateConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +626,39 @@ public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -605,7 +666,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()) { @@ -624,9 +687,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_); } @@ -665,7 +729,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,28 +740,38 @@ public Builder mergeFrom( } 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 { @@ -703,6 +779,8 @@ public java.util.List getPriva } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -717,6 +795,8 @@ public int getPrivateConnectionsCount() { } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -731,6 +811,8 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -752,6 +834,8 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -770,6 +854,8 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -790,6 +876,8 @@ public Builder addPrivateConnections(com.google.cloud.datastream.v1.PrivateConne return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -811,6 +899,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -829,6 +919,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -847,6 +939,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -857,8 +951,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); @@ -866,6 +959,8 @@ public Builder addAllPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -883,6 +978,8 @@ public Builder clearPrivateConnections() { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -900,6 +997,8 @@ public Builder removePrivateConnections(int index) { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -911,6 +1010,8 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -920,19 +1021,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 { @@ -940,6 +1044,8 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -947,10 +1053,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.
      * 
@@ -959,26 +1067,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(), @@ -990,19 +1106,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; @@ -1011,21 +1129,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 { @@ -1033,98 +1152,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1132,80 +1268,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1215,28 +1361,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1246,12 +1394,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(); } @@ -1260,16 +1409,16 @@ 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 { - return new ListPrivateConnectionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListPrivateConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,6 +1433,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java index 8b26670c..5eefa715 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java index e99351d7..36c12d9d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java +++ b/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,16 +46,15 @@ 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; } + private ListRoutesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListRoutesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,41 @@ private ListRoutesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -135,29 +163,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 { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -176,6 +208,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -186,6 +219,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -195,6 +230,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -203,14 +239,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.
@@ -220,16 +257,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 { @@ -240,11 +276,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -253,29 +292,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 { @@ -286,11 +325,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -299,29 +341,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 { @@ -330,6 +372,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +384,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_); } @@ -371,8 +413,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_); @@ -391,23 +432,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -434,118 +471,127 @@ 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() @@ -553,16 +599,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +625,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 @@ -601,7 +646,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); + com.google.cloud.datastream.v1.ListRoutesRequest result = + new com.google.cloud.datastream.v1.ListRoutesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -615,38 +661,39 @@ public com.google.cloud.datastream.v1.ListRoutesRequest 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.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; @@ -654,7 +701,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_; onChanged(); @@ -705,18 +753,22 @@ public Builder mergeFrom( 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; @@ -725,20 +777,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 { @@ -746,61 +801,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -809,6 +879,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -816,6 +887,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
@@ -824,16 +897,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -842,10 +918,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -853,6 +930,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -862,13 +941,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; @@ -877,6 +956,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -886,15 +967,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 { @@ -902,6 +982,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -911,20 +993,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -934,15 +1018,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -952,16 +1039,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -969,18 +1056,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; @@ -989,20 +1078,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 { @@ -1010,54 +1100,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1065,18 +1162,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; @@ -1085,20 +1184,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 { @@ -1106,61 +1206,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1170,12 +1277,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(); } @@ -1184,16 +1291,16 @@ 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 { - return new ListRoutesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListRoutesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,6 +1315,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java index 00650598..9ea59a40 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java index cd7c8097..417ac3bd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java +++ b/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,16 +45,15 @@ 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; } + private ListRoutesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListRoutesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - routes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + routes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + routes_.add( + input.readMessage( + com.google.cloud.datastream.v1.Route.parser(), extensionRegistry)); + break; } - routes_.add( - input.readMessage(com.google.cloud.datastream.v1.Route.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListRoutesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -107,22 +127,27 @@ private ListRoutesResponse( makeExtensionsImmutable(); } } - 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; private java.util.List routes_; /** + * + * *
    * List of Routes.
    * 
@@ -134,6 +159,8 @@ public java.util.List getRoutesList() { return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -141,11 +168,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.
    * 
@@ -157,6 +186,8 @@ public int getRoutesCount() { return routes_.size(); } /** + * + * *
    * List of Routes.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { return routes_.get(index); } /** + * + * *
    * List of Routes.
    * 
@@ -175,20 +208,22 @@ 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; 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 @@ -197,30 +232,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 { @@ -231,34 +266,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -266,20 +309,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; @@ -291,8 +337,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)); } @@ -312,8 +357,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_); @@ -334,19 +378,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +416,126 @@ 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() @@ -492,17 +543,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRoutesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +571,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 @@ -541,7 +592,8 @@ 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); int from_bitField0_ = bitField0_; if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +618,39 @@ public com.google.cloud.datastream.v1.ListRoutesResponse 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.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; @@ -605,7 +658,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()) { @@ -624,9 +678,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_); } @@ -665,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListRoutesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListRoutesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,21 +730,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -703,6 +766,8 @@ public java.util.List getRoutesList() { } } /** + * + * *
      * List of Routes.
      * 
@@ -717,6 +782,8 @@ public int getRoutesCount() { } } /** + * + * *
      * List of Routes.
      * 
@@ -731,14 +798,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(); @@ -752,6 +820,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -770,6 +840,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -790,14 +862,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(); @@ -811,14 +884,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()); @@ -829,6 +903,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -847,6 +923,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -857,8 +935,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); @@ -866,6 +943,8 @@ public Builder addAllRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -883,6 +962,8 @@ public Builder clearRoutes() { return this; } /** + * + * *
      * List of Routes.
      * 
@@ -900,39 +981,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 { @@ -940,6 +1026,8 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( } } /** + * + * *
      * List of Routes.
      * 
@@ -947,42 +1035,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_; @@ -990,19 +1083,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; @@ -1011,21 +1106,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 { @@ -1033,98 +1129,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1132,80 +1245,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1215,28 +1338,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1246,12 +1371,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(); } @@ -1260,16 +1385,16 @@ 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 { - return new ListRoutesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListRoutesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,6 +1409,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java index 8910746c..78026ace 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java index c19d2e8a..f7009156 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java +++ b/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,16 +44,15 @@ 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; } + private ListStreamObjectsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListStreamObjectsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,41 @@ private ListStreamObjectsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -121,29 +147,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 { @@ -154,12 +182,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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 @@ -170,6 +201,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListStreamObjectsRequest` call.
    * Provide this to retrieve the subsequent page.
@@ -179,6 +212,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -187,14 +221,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.
@@ -204,16 +239,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 { @@ -222,6 +256,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -233,8 +268,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_); } @@ -257,8 +291,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_); @@ -271,19 +304,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,117 +338,127 @@ 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() @@ -425,16 +466,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -448,9 +488,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 @@ -469,7 +509,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); + com.google.cloud.datastream.v1.ListStreamObjectsRequest result = + new com.google.cloud.datastream.v1.ListStreamObjectsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -481,38 +522,39 @@ public com.google.cloud.datastream.v1.ListStreamObjectsRequest 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.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; @@ -520,7 +562,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_; onChanged(); @@ -551,7 +594,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListStreamObjectsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListStreamObjectsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,18 +607,22 @@ public Builder mergeFrom( 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; @@ -583,20 +631,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 { @@ -604,67 +655,83 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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 @@ -672,32 +739,38 @@ 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; 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() { - + pageSize_ = 0; onChanged(); return this; @@ -705,6 +778,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -714,13 +789,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; @@ -729,6 +804,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -738,15 +815,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 { @@ -754,6 +830,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -763,20 +841,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -786,15 +866,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -804,23 +887,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -830,12 +913,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(); } @@ -844,16 +927,16 @@ 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 { - return new ListStreamObjectsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListStreamObjectsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -868,6 +951,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java index aa381f59..32bd025d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java index 5251ff6e..12f10bec 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java +++ b/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,16 +44,15 @@ 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; } + private ListStreamObjectsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListStreamObjectsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - streamObjects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + streamObjects_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + streamObjects_.add( + input.readMessage( + com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry)); + break; } - streamObjects_.add( - input.readMessage(com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListStreamObjectsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { streamObjects_ = java.util.Collections.unmodifiableList(streamObjects_); @@ -94,22 +114,27 @@ private ListStreamObjectsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List streamObjects_; /** + * + * *
    * List of stream objects.
    * 
@@ -121,6 +146,8 @@ public java.util.List getStreamObje return streamObjects_; } /** + * + * *
    * List of stream objects.
    * 
@@ -128,11 +155,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.
    * 
@@ -144,6 +173,8 @@ public int getStreamObjectsCount() { return streamObjects_.size(); } /** + * + * *
    * List of stream objects.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { return streamObjects_.get(index); } /** + * + * *
    * List of stream objects.
    * 
@@ -162,19 +195,21 @@ 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; 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 @@ -183,29 +218,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 { @@ -214,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 < streamObjects_.size(); i++) { output.writeMessage(1, streamObjects_.get(i)); } @@ -243,8 +278,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_); @@ -257,17 +291,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +324,127 @@ 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() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStreamObjectsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,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 @@ -456,7 +499,8 @@ 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); int from_bitField0_ = bitField0_; if (streamObjectsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.datastream.v1.ListStreamObjectsResponse 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.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; @@ -515,7 +560,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()) { @@ -534,9 +580,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_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListStreamObjectsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListStreamObjectsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +622,29 @@ public Builder mergeFrom( } 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.
      * 
@@ -603,6 +659,8 @@ public java.util.List getStreamObje } } /** + * + * *
      * List of stream objects.
      * 
@@ -617,6 +675,8 @@ public int getStreamObjectsCount() { } } /** + * + * *
      * List of stream objects.
      * 
@@ -631,14 +691,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(); @@ -652,6 +713,8 @@ public Builder setStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -670,6 +733,8 @@ public Builder setStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -690,14 +755,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(); @@ -711,6 +777,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -729,6 +797,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -747,6 +817,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -757,8 +829,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); @@ -766,6 +837,8 @@ public Builder addAllStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -783,6 +856,8 @@ public Builder clearStreamObjects() { return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -800,17 +875,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.
      * 
@@ -820,19 +898,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 { @@ -840,6 +921,8 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBu } } /** + * + * *
      * List of stream objects.
      * 
@@ -847,38 +930,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(), @@ -890,18 +982,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; @@ -910,20 +1004,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 { @@ -931,61 +1026,68 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); 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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -995,12 +1097,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(); } @@ -1009,16 +1111,16 @@ 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 { - return new ListStreamObjectsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListStreamObjectsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1135,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java index 989af467..fe71d90b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java index b702fe76..4f948dd8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java +++ b/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,16 +46,15 @@ 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; } + private ListStreamsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListStreamsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,41 @@ private ListStreamsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -135,29 +163,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 { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -175,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +218,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -193,6 +228,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -201,14 +237,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.
@@ -217,16 +254,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 { @@ -237,11 +273,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -250,29 +289,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 { @@ -283,11 +322,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -296,29 +338,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 { @@ -327,6 +369,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -338,8 +381,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_); } @@ -368,8 +410,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_); @@ -388,23 +429,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -432,117 +469,126 @@ 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() @@ -550,16 +596,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -577,9 +622,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 @@ -598,7 +643,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); + com.google.cloud.datastream.v1.ListStreamsRequest result = + new com.google.cloud.datastream.v1.ListStreamsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -612,38 +658,39 @@ public com.google.cloud.datastream.v1.ListStreamsRequest 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.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; @@ -651,7 +698,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_; onChanged(); @@ -690,7 +738,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListStreamsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListStreamsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -702,18 +751,22 @@ public Builder mergeFrom( 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; @@ -722,20 +775,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 { @@ -743,61 +799,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -805,6 +876,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -812,6 +884,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -819,16 +893,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -836,10 +913,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -847,6 +925,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -855,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; @@ -870,6 +950,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -878,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 { @@ -894,6 +975,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -902,20 +985,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -924,15 +1009,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -941,16 +1029,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -958,18 +1046,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; @@ -978,20 +1068,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 { @@ -999,54 +1090,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1054,18 +1152,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; @@ -1074,20 +1174,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 { @@ -1095,61 +1196,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1159,12 +1267,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(); } @@ -1173,16 +1281,16 @@ 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 { - return new ListStreamsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListStreamsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,6 +1305,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java index 37f5d587..a28162e6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java index 41491c63..bd9e708b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java +++ b/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,16 +45,15 @@ 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; } + private ListStreamsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListStreamsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - streams_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + streams_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + streams_.add( + input.readMessage( + com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry)); + break; } - streams_.add( - input.readMessage(com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListStreamsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -107,22 +127,27 @@ private ListStreamsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List streams_; /** + * + * *
    * List of streams
    * 
@@ -134,6 +159,8 @@ public java.util.List getStreamsList() { return streams_; } /** + * + * *
    * List of streams
    * 
@@ -141,11 +168,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
    * 
@@ -157,6 +186,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * List of streams
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * List of streams
    * 
@@ -175,20 +208,22 @@ 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; 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 @@ -197,30 +232,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 { @@ -231,34 +266,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -266,20 +309,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; @@ -291,8 +337,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)); } @@ -312,8 +357,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_); @@ -334,19 +378,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +416,126 @@ 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() @@ -492,17 +543,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStreamsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +571,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 @@ -541,7 +592,8 @@ 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); int from_bitField0_ = bitField0_; if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +618,39 @@ public com.google.cloud.datastream.v1.ListStreamsResponse 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.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; @@ -605,7 +658,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()) { @@ -624,9 +678,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_); } @@ -665,7 +720,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.ListStreamsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.ListStreamsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,21 +730,28 @@ public Builder mergeFrom( } 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
      * 
@@ -703,6 +766,8 @@ public java.util.List getStreamsList() { } } /** + * + * *
      * List of streams
      * 
@@ -717,6 +782,8 @@ public int getStreamsCount() { } } /** + * + * *
      * List of streams
      * 
@@ -731,14 +798,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(); @@ -752,6 +820,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -770,6 +840,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -790,14 +862,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(); @@ -811,14 +884,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()); @@ -829,6 +903,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -847,6 +923,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -857,8 +935,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); @@ -866,6 +943,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -883,6 +962,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * List of streams
      * 
@@ -900,39 +981,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 { @@ -940,6 +1026,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( } } /** + * + * *
      * List of streams
      * 
@@ -947,42 +1035,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_; @@ -990,19 +1083,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; @@ -1011,21 +1106,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 { @@ -1033,98 +1129,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1132,80 +1245,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1215,28 +1338,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1246,12 +1371,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(); } @@ -1260,16 +1385,16 @@ 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 { - return new ListStreamsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListStreamsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,6 +1409,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java index 1ed1443c..81f14af8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java index c72902f2..9edc5362 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java +++ b/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,31 +28,31 @@
  *
  * 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;
   }
+
   private LookupStreamObjectRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,32 +71,37 @@ private LookupStreamObjectRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            parent_ = s;
-            break;
-          }
-          case 18: {
-            com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder subBuilder = null;
-            if (sourceObjectIdentifier_ != null) {
-              subBuilder = sourceObjectIdentifier_.toBuilder();
+              parent_ = s;
+              break;
             }
-            sourceObjectIdentifier_ = input.readMessage(com.google.cloud.datastream.v1.SourceObjectIdentifier.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(sourceObjectIdentifier_);
-              sourceObjectIdentifier_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder subBuilder = null;
+              if (sourceObjectIdentifier_ != null) {
+                subBuilder = sourceObjectIdentifier_.toBuilder();
+              }
+              sourceObjectIdentifier_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.SourceObjectIdentifier.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(sourceObjectIdentifier_);
+                sourceObjectIdentifier_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -87,34 +109,41 @@ private LookupStreamObjectRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -123,29 +152,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 { @@ -156,11 +187,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 @@ -168,30 +204,43 @@ 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() { + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder + getSourceObjectIdentifierOrBuilder() { return getSourceObjectIdentifier(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +252,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_); } @@ -224,8 +272,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -235,19 +283,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,96 +319,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.
@@ -369,21 +424,23 @@ 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()
@@ -391,16 +448,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -416,9 +472,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
@@ -437,7 +493,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);
+      com.google.cloud.datastream.v1.LookupStreamObjectRequest result =
+          new com.google.cloud.datastream.v1.LookupStreamObjectRequest(this);
       result.parent_ = parent_;
       if (sourceObjectIdentifierBuilder_ == null) {
         result.sourceObjectIdentifier_ = sourceObjectIdentifier_;
@@ -452,38 +509,39 @@ public com.google.cloud.datastream.v1.LookupStreamObjectRequest 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.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;
@@ -491,7 +549,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_;
         onChanged();
@@ -518,7 +577,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datastream.v1.LookupStreamObjectRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datastream.v1.LookupStreamObjectRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -530,18 +590,22 @@ public Builder mergeFrom(
 
     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; @@ -550,20 +614,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 { @@ -571,54 +638,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -626,41 +706,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 sourceObjectIdentifierBuilder_ != null || 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. */ 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(); @@ -674,11 +774,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) { @@ -692,17 +796,25 @@ 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 (sourceObjectIdentifier_ != null) { sourceObjectIdentifier_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder(sourceObjectIdentifier_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder( + sourceObjectIdentifier_) + .mergeFrom(value) + .buildPartial(); } else { sourceObjectIdentifier_ = value; } @@ -714,11 +826,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() { if (sourceObjectIdentifierBuilder_ == null) { @@ -732,55 +848,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() { + 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); } @@ -790,12 +924,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(); } @@ -804,16 +938,16 @@ 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 { - return new LookupStreamObjectRequest(input, extensionRegistry); - } - }; + 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 { + return new LookupStreamObjectRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -828,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java new file mode 100644 index 00000000..1727d277 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java index 361e8381..feae5848 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java +++ b/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,16 +45,15 @@ 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; } + private MysqlColumn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,51 +72,54 @@ private MysqlColumn( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - column_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - dataType_ = s; - break; - } - case 24: { - - length_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - collation_ = s; - break; - } - case 40: { - - primaryKey_ = input.readBool(); - break; - } - case 48: { + column_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nullable_ = input.readBool(); - break; - } - case 56: { + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - ordinalPosition_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + collation_ = s; + break; + } + case 40: + { + primaryKey_ = input.readBool(); + break; + } + case 48: + { + nullable_ = input.readBool(); + break; + } + case 56: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,34 +127,39 @@ private MysqlColumn( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object column_; /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ @java.lang.Override @@ -143,29 +168,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 { @@ -176,12 +201,15 @@ public java.lang.String getColumn() { public static final int DATA_TYPE_FIELD_NUMBER = 2; 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 @@ -190,30 +218,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 { @@ -224,11 +252,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -239,11 +270,14 @@ public int getLength() { public static final int COLLATION_FIELD_NUMBER = 4; private volatile java.lang.Object collation_; /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The collation. */ @java.lang.Override @@ -252,29 +286,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 { @@ -285,11 +319,14 @@ public java.lang.String getCollation() { public static final int PRIMARY_KEY_FIELD_NUMBER = 5; private boolean primaryKey_; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; + * * @return The primaryKey. */ @java.lang.Override @@ -300,11 +337,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 6; private boolean nullable_; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; + * * @return The nullable. */ @java.lang.Override @@ -315,11 +355,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 7; private int ordinalPosition_; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ @java.lang.Override @@ -328,6 +371,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +383,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_); } @@ -378,23 +421,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -404,27 +443,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -445,11 +478,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) + unknownFields.hashCode(); @@ -457,118 +488,127 @@ 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() @@ -576,16 +616,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -607,9 +646,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 @@ -628,7 +667,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); + com.google.cloud.datastream.v1.MysqlColumn result = + new com.google.cloud.datastream.v1.MysqlColumn(this); result.column_ = column_; result.dataType_ = dataType_; result.length_ = length_; @@ -644,38 +684,39 @@ public com.google.cloud.datastream.v1.MysqlColumn 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.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; @@ -739,18 +780,20 @@ public Builder mergeFrom( 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; @@ -759,20 +802,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 { @@ -780,54 +824,61 @@ 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) { + public Builder setColumn(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + column_ = value; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return This builder for chaining. */ public Builder clearColumn() { - + column_ = getDefaultInstance().getColumn(); onChanged(); 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) { + public Builder setColumnBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; onChanged(); return this; @@ -835,19 +886,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; @@ -856,21 +909,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 { @@ -878,69 +932,79 @@ 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) { + public Builder setDataType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataType_ = value; 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() { - + dataType_ = getDefaultInstance().getDataType(); 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; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; onChanged(); return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -948,30 +1012,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { - + length_ = 0; onChanged(); return this; @@ -979,18 +1049,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; @@ -999,20 +1071,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 { @@ -1020,66 +1093,76 @@ 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) { + public Builder setCollation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + collation_ = value; onChanged(); return this; } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return This builder for chaining. */ public Builder clearCollation() { - + collation_ = getDefaultInstance().getCollation(); onChanged(); 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) { + public Builder setCollationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = value; onChanged(); 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 @@ -1087,42 +1170,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { - + primaryKey_ = false; onChanged(); 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 @@ -1130,42 +1222,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); 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 @@ -1173,37 +1274,43 @@ 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; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { - + ordinalPosition_ = 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); } @@ -1213,12 +1320,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(); } @@ -1227,16 +1334,16 @@ 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 { - return new MysqlColumn(input, extensionRegistry); - } - }; + 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 { + return new MysqlColumn(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1251,6 +1358,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java index 56a7195e..e99731d1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java index 4d36b624..43b29990 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java +++ b/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,16 +44,15 @@ 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; } + private MysqlDatabase( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private MysqlDatabase( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mysqlTables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + database_ = s; + break; } - mysqlTables_.add( - input.readMessage(com.google.cloud.datastream.v1.MysqlTable.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlTables_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mysqlTables_.add( + input.readMessage( + com.google.cloud.datastream.v1.MysqlTable.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private MysqlDatabase( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mysqlTables_ = java.util.Collections.unmodifiableList(mysqlTables_); @@ -94,27 +113,33 @@ private MysqlDatabase( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object database_; /** + * + * *
    * Database name.
    * 
* * string database = 1; + * * @return The database. */ @java.lang.Override @@ -123,29 +148,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 { @@ -156,6 +181,8 @@ public java.lang.String getDatabase() { public static final int MYSQL_TABLES_FIELD_NUMBER = 2; private java.util.List mysqlTables_; /** + * + * *
    * Tables in the database.
    * 
@@ -167,6 +194,8 @@ public java.util.List getMysqlTablesL return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -174,11 +203,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.
    * 
@@ -190,6 +221,8 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** + * + * *
    * Tables in the database.
    * 
@@ -201,6 +234,8 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { return mysqlTables_.get(index); } /** + * + * *
    * Tables in the database.
    * 
@@ -208,12 +243,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; @@ -225,8 +260,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_); } @@ -246,8 +280,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,118 +322,127 @@ 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() @@ -409,17 +450,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMysqlTablesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +476,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 @@ -456,7 +497,8 @@ 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); int from_bitField0_ = bitField0_; result.database_ = database_; if (mysqlTablesBuilder_ == null) { @@ -476,38 +518,39 @@ public com.google.cloud.datastream.v1.MysqlDatabase 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.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; @@ -538,9 +581,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlDatabase other) { mysqlTablesBuilder_ = null; mysqlTables_ = other.mysqlTables_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlTablesFieldBuilder() : null; + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlTablesFieldBuilder() + : null; } else { mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); } @@ -574,22 +618,25 @@ public Builder mergeFrom( } 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; @@ -598,20 +645,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 { @@ -619,72 +667,86 @@ 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) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database = 1; + * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); 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) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; } private java.util.List mysqlTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlTablesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlTables_ = new java.util.ArrayList(mysqlTables_); + mysqlTables_ = + new java.util.ArrayList(mysqlTables_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -699,6 +761,8 @@ public java.util.List getMysqlTablesL } } /** + * + * *
      * Tables in the database.
      * 
@@ -713,6 +777,8 @@ public int getMysqlTablesCount() { } } /** + * + * *
      * Tables in the database.
      * 
@@ -727,14 +793,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(); @@ -748,6 +815,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -766,6 +835,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -786,14 +857,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(); @@ -807,6 +879,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -825,6 +899,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -843,6 +919,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -853,8 +931,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); @@ -862,6 +939,8 @@ public Builder addAllMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -879,6 +958,8 @@ public Builder clearMysqlTables() { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -896,39 +977,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 { @@ -936,6 +1022,8 @@ public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilde } } /** + * + * *
      * Tables in the database.
      * 
@@ -943,49 +1031,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -995,12 +1089,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(); } @@ -1009,16 +1103,16 @@ 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 { - return new MysqlDatabase(input, extensionRegistry); - } - }; + 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 { + return new MysqlDatabase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java index 95613a1a..ab3edfc2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java index 31bbb412..3c527bcb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java +++ b/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,16 +45,15 @@ 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; } + private MysqlProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,49 +72,55 @@ private MysqlProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - hostname_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 42: { - com.google.cloud.datastream.v1.MysqlSslConfig.Builder subBuilder = null; - if (sslConfig_ != null) { - subBuilder = sslConfig_.toBuilder(); + username_ = s; + break; } - sslConfig_ = input.readMessage(com.google.cloud.datastream.v1.MysqlSslConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sslConfig_); - sslConfig_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; } + case 42: + { + com.google.cloud.datastream.v1.MysqlSslConfig.Builder subBuilder = null; + if (sslConfig_ != null) { + subBuilder = sslConfig_.toBuilder(); + } + sslConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.MysqlSslConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sslConfig_); + sslConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +128,39 @@ private MysqlProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -141,29 +169,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 { @@ -174,11 +202,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -189,11 +220,14 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; 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 @@ -202,29 +236,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 { @@ -235,11 +269,16 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; 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 @@ -248,29 +287,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 { @@ -281,11 +322,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 @@ -293,18 +337,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.
    * 
@@ -317,6 +368,7 @@ public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +380,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_); } @@ -358,8 +409,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_); @@ -368,8 +418,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,25 +428,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -427,118 +472,127 @@ 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() @@ -546,16 +600,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -577,9 +630,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 @@ -598,7 +651,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); + com.google.cloud.datastream.v1.MysqlProfile result = + new com.google.cloud.datastream.v1.MysqlProfile(this); result.hostname_ = hostname_; result.port_ = port_; result.username_ = username_; @@ -616,38 +670,39 @@ public com.google.cloud.datastream.v1.MysqlProfile 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.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; @@ -705,18 +760,20 @@ public Builder mergeFrom( 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; @@ -725,20 +782,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 { @@ -746,66 +804,76 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); 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 @@ -813,30 +881,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -844,18 +918,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; @@ -864,20 +940,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 { @@ -885,54 +962,61 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -940,18 +1024,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; @@ -960,20 +1048,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 { @@ -981,54 +1072,67 @@ 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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; 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() { - + password_ = getDefaultInstance().getPassword(); 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]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -1036,34 +1140,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 sslConfigBuilder_ != null || sslConfig_ != null; } /** + * + * *
      * 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.
      * 
@@ -1084,6 +1201,8 @@ public Builder setSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1102,6 +1221,8 @@ public Builder setSslConfig( return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1112,7 +1233,9 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig valu if (sslConfigBuilder_ == null) { if (sslConfig_ != null) { sslConfig_ = - com.google.cloud.datastream.v1.MysqlSslConfig.newBuilder(sslConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.MysqlSslConfig.newBuilder(sslConfig_) + .mergeFrom(value) + .buildPartial(); } else { sslConfig_ = value; } @@ -1124,6 +1247,8 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig valu return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1142,6 +1267,8 @@ public Builder clearSslConfig() { return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1149,11 +1276,13 @@ public Builder clearSslConfig() { * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; */ public com.google.cloud.datastream.v1.MysqlSslConfig.Builder getSslConfigBuilder() { - + onChanged(); return getSslConfigFieldBuilder().getBuilder(); } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1164,11 +1293,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.
      * 
@@ -1176,21 +1308,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); } @@ -1200,12 +1335,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(); } @@ -1214,16 +1349,16 @@ 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 { - return new MysqlProfile(input, extensionRegistry); - } - }; + 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 { + return new MysqlProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,6 +1373,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java index 588bbd08..389974a2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java index ab41fe08..39c473f4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java @@ -1,40 +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; } + private MysqlRdbms( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,25 @@ private MysqlRdbms( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mysqlDatabases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlDatabases_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mysqlDatabases_.add( + input.readMessage( + com.google.cloud.datastream.v1.MysqlDatabase.parser(), extensionRegistry)); + break; } - mysqlDatabases_.add( - input.readMessage(com.google.cloud.datastream.v1.MysqlDatabase.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private MysqlRdbms( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mysqlDatabases_ = java.util.Collections.unmodifiableList(mysqlDatabases_); @@ -87,22 +106,27 @@ private MysqlRdbms( makeExtensionsImmutable(); } } - 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; private java.util.List mysqlDatabases_; /** + * + * *
    * Mysql databases on the server
    * 
@@ -114,6 +138,8 @@ public java.util.List getMysqlData return mysqlDatabases_; } /** + * + * *
    * Mysql databases on the server
    * 
@@ -121,11 +147,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
    * 
@@ -137,6 +165,8 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -148,6 +178,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) return mysqlDatabases_.get(index); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -161,6 +193,7 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +205,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)); } @@ -187,8 +219,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +229,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +258,127 @@ 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() @@ -346,17 +386,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMysqlDatabasesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +410,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 @@ -391,7 +431,8 @@ 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); int from_bitField0_ = bitField0_; if (mysqlDatabasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +451,39 @@ public com.google.cloud.datastream.v1.MysqlRdbms 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.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; @@ -468,9 +510,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_); } @@ -504,21 +547,29 @@ public Builder mergeFrom( } 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
      * 
@@ -533,6 +584,8 @@ public java.util.List getMysqlData } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -547,6 +600,8 @@ public int getMysqlDatabasesCount() { } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -561,6 +616,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -582,6 +639,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -600,6 +659,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -620,6 +681,8 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1.MysqlDatabase va return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -641,6 +704,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -659,6 +724,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -677,6 +744,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -687,8 +756,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); @@ -696,6 +764,8 @@ public Builder addAllMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -713,6 +783,8 @@ public Builder clearMysqlDatabases() { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -730,6 +802,8 @@ public Builder removeMysqlDatabases(int index) { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -741,6 +815,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBui return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -750,19 +826,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 { @@ -770,6 +849,8 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -777,10 +858,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
      * 
@@ -789,26 +872,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(), @@ -817,9 +908,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); } @@ -829,12 +920,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(); } @@ -843,16 +934,16 @@ 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 { - return new MysqlRdbms(input, extensionRegistry); - } - }; + 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 { + return new MysqlRdbms(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +958,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java index b9ba684b..3ede5e20 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java index 164d9daa..6a21038d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -1,39 +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; /** + * + * *
  * 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; } + private MysqlSourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,44 +68,50 @@ private MysqlSourceConfig( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; - if (includeObjects_ != null) { - subBuilder = includeObjects_.toBuilder(); - } - includeObjects_ = input.readMessage(com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(includeObjects_); - includeObjects_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; + if (includeObjects_ != null) { + subBuilder = includeObjects_.toBuilder(); + } + includeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(includeObjects_); + includeObjects_ = subBuilder.buildPartial(); + } + + break; } + case 18: + { + com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; + if (excludeObjects_ != null) { + subBuilder = excludeObjects_.toBuilder(); + } + excludeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(excludeObjects_); + excludeObjects_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; - if (excludeObjects_ != null) { - subBuilder = excludeObjects_.toBuilder(); + break; } - excludeObjects_ = input.readMessage(com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(excludeObjects_); - excludeObjects_ = subBuilder.buildPartial(); + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + break; } - - break; - } - case 24: { - - maxConcurrentCdcTasks_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,34 +119,39 @@ private MysqlSourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -132,18 +159,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.
    * 
@@ -158,11 +192,14 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBui 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 @@ -170,18 +207,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.
    * 
@@ -196,12 +240,15 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; 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 @@ -210,6 +257,7 @@ public int getMaxConcurrentCdcTasks() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,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 { if (includeObjects_ != null) { output.writeMessage(1, getIncludeObjects()); } @@ -242,16 +289,13 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,25 +305,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -306,118 +348,127 @@ 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() @@ -425,16 +476,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -456,9 +506,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 @@ -477,7 +527,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); + com.google.cloud.datastream.v1.MysqlSourceConfig result = + new com.google.cloud.datastream.v1.MysqlSourceConfig(this); if (includeObjectsBuilder_ == null) { result.includeObjects_ = includeObjects_; } else { @@ -497,38 +548,39 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig 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.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; @@ -536,7 +588,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()); } @@ -577,34 +630,47 @@ public Builder mergeFrom( 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 includeObjectsBuilder_ != null || includeObjects_ != null; } /** + * + * *
      * 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.
      * 
@@ -625,6 +691,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -643,6 +711,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -653,7 +723,9 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val if (includeObjectsBuilder_ == null) { if (includeObjects_ != null) { includeObjects_ = - com.google.cloud.datastream.v1.MysqlRdbms.newBuilder(includeObjects_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); } else { includeObjects_ = value; } @@ -665,6 +737,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -683,6 +757,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -690,11 +766,13 @@ public Builder clearIncludeObjects() { * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; */ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getIncludeObjectsBuilder() { - + onChanged(); return getIncludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -705,11 +783,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.
      * 
@@ -717,14 +798,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_; @@ -732,34 +816,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 excludeObjectsBuilder_ != null || excludeObjects_ != null; } /** + * + * *
      * 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.
      * 
@@ -780,6 +877,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -798,6 +897,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -808,7 +909,9 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val if (excludeObjectsBuilder_ == null) { if (excludeObjects_ != null) { excludeObjects_ = - com.google.cloud.datastream.v1.MysqlRdbms.newBuilder(excludeObjects_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludeObjects_ = value; } @@ -820,6 +923,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -838,6 +943,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -845,11 +952,13 @@ public Builder clearExcludeObjects() { * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; */ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getExcludeObjectsBuilder() { - + onChanged(); return getExcludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -860,11 +969,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.
      * 
@@ -872,27 +984,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 @@ -900,39 +1018,45 @@ 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; 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() { - + maxConcurrentCdcTasks_ = 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); } @@ -942,12 +1066,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(); } @@ -956,16 +1080,16 @@ 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 { - return new MysqlSourceConfig(input, extensionRegistry); - } - }; + 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 { + return new MysqlSourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,6 +1104,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java index cd867780..a547dbbf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java +++ b/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,12 +94,15 @@ 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(); diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java index 81675be7..7aafc122 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java +++ b/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,16 +45,15 @@ 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; } + private MysqlSslConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,49 @@ private MysqlSslConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - clientKey_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - clientKeySet_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - clientCertificate_ = s; - break; - } - case 32: { - - clientCertificateSet_ = input.readBool(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + clientKey_ = s; + break; + } + case 16: + { + clientKeySet_ = input.readBool(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificate_ = s; - break; - } - case 48: { + clientCertificate_ = s; + break; + } + case 32: + { + clientCertificateSet_ = input.readBool(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificateSet_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + caCertificate_ = s; + break; + } + case 48: + { + caCertificateSet_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,29 +122,33 @@ private MysqlSslConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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
@@ -132,6 +156,7 @@ private MysqlSslConfig(
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -140,14 +165,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
@@ -155,16 +181,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 { @@ -175,11 +200,14 @@ public java.lang.String getClientKey() { public static final int CLIENT_KEY_SET_FIELD_NUMBER = 2; 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 @@ -190,6 +218,8 @@ public boolean getClientKeySet() { public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 3; 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
@@ -197,6 +227,7 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -205,14 +236,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
@@ -220,16 +252,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 { @@ -240,11 +271,14 @@ public java.lang.String getClientCertificate() { public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 4; 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 @@ -255,12 +289,15 @@ public boolean getClientCertificateSet() { public static final int CA_CERTIFICATE_FIELD_NUMBER = 5; 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 @@ -269,30 +306,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 { @@ -303,11 +340,14 @@ public java.lang.String getCaCertificate() { public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 6; 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 @@ -316,6 +356,7 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +368,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_); } @@ -360,22 +400,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,25 +422,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -418,135 +450,141 @@ 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) + unknownFields.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() @@ -554,16 +592,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +620,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 @@ -604,7 +641,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); + com.google.cloud.datastream.v1.MysqlSslConfig result = + new com.google.cloud.datastream.v1.MysqlSslConfig(this); result.clientKey_ = clientKey_; result.clientKeySet_ = clientKeySet_; result.clientCertificate_ = clientCertificate_; @@ -619,38 +657,39 @@ public com.google.cloud.datastream.v1.MysqlSslConfig 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.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; @@ -711,6 +750,8 @@ public Builder mergeFrom( 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
@@ -718,13 +759,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; @@ -733,6 +774,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
@@ -740,15 +783,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 { @@ -756,6 +798,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
@@ -763,20 +807,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) { + public Builder setClientKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientKey_ = value; 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
@@ -784,15 +830,18 @@ public Builder setClientKey(
      * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKey() { - + clientKey_ = getDefaultInstance().getClientKey(); 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
@@ -800,28 +849,31 @@ 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) { + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientKey_ = value; onChanged(); 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 @@ -829,30 +881,36 @@ 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; 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() { - + clientKeySet_ = false; onChanged(); return this; @@ -860,6 +918,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
@@ -867,13 +927,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; @@ -882,6 +942,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
@@ -889,15 +951,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 { @@ -905,6 +966,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
@@ -912,20 +975,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) { + public Builder setClientCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientCertificate_ = value; 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
@@ -933,15 +998,18 @@ public Builder setClientCertificate(
      * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificate() { - + clientCertificate_ = getDefaultInstance().getClientCertificate(); 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
@@ -949,28 +1017,31 @@ 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) { + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientCertificate_ = value; onChanged(); 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 @@ -978,30 +1049,36 @@ 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; 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() { - + clientCertificateSet_ = false; onChanged(); return this; @@ -1009,19 +1086,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; @@ -1030,21 +1109,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 { @@ -1052,69 +1132,79 @@ 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) { + public Builder setCaCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificate_ = value; 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() { - + caCertificate_ = getDefaultInstance().getCaCertificate(); 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]; + * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificate_ = value; onChanged(); 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 @@ -1122,37 +1212,43 @@ 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; 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() { - + caCertificateSet_ = false; 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); } @@ -1162,12 +1258,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(); } @@ -1176,16 +1272,16 @@ 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 { - return new MysqlSslConfig(input, extensionRegistry); - } - }; + 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 { + return new MysqlSslConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1200,6 +1296,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java index 646eeb56..19562b09 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java index dcf914aa..5825182e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java +++ b/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,16 +44,15 @@ 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; } + private MysqlTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private MysqlTable( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - table_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mysqlColumns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + table_ = s; + break; } - mysqlColumns_.add( - input.readMessage(com.google.cloud.datastream.v1.MysqlColumn.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mysqlColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1.MysqlColumn.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private MysqlTable( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mysqlColumns_ = java.util.Collections.unmodifiableList(mysqlColumns_); @@ -94,27 +114,33 @@ private MysqlTable( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object table_; /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ @java.lang.Override @@ -123,29 +149,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 { @@ -156,6 +182,8 @@ public java.lang.String getTable() { public static final int MYSQL_COLUMNS_FIELD_NUMBER = 2; private java.util.List mysqlColumns_; /** + * + * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -169,6 +197,8 @@ public java.util.List getMysqlColumn
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -178,11 +208,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
@@ -196,6 +228,8 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -209,6 +243,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
@@ -218,12 +254,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;
@@ -235,8 +271,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_);
     }
@@ -256,8 +291,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -267,17 +301,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -300,118 +333,127 @@ 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() @@ -419,17 +461,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMysqlColumnsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +487,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 @@ -466,7 +508,8 @@ 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); int from_bitField0_ = bitField0_; result.table_ = table_; if (mysqlColumnsBuilder_ == null) { @@ -486,38 +529,39 @@ public com.google.cloud.datastream.v1.MysqlTable 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.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; @@ -548,9 +592,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlTable other) { mysqlColumnsBuilder_ = null; mysqlColumns_ = other.mysqlColumns_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlColumnsFieldBuilder() : null; + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlColumnsFieldBuilder() + : null; } else { mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); } @@ -584,22 +629,25 @@ public Builder mergeFrom( } 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; @@ -608,20 +656,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 { @@ -629,72 +678,86 @@ 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) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); 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) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } private java.util.List mysqlColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlColumnsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlColumns_ = new java.util.ArrayList(mysqlColumns_); + mysqlColumns_ = + new java.util.ArrayList(mysqlColumns_); bitField0_ |= 0x00000001; - } + } } 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
@@ -711,6 +774,8 @@ public java.util.List getMysqlColumn
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -727,6 +792,8 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -743,6 +810,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
@@ -751,8 +820,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();
@@ -766,6 +834,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -786,6 +856,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -808,6 +880,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
@@ -816,8 +890,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();
@@ -831,6 +904,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -851,6 +926,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -871,6 +948,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -883,8 +962,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);
@@ -892,6 +970,8 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -911,6 +991,8 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -930,6 +1012,8 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -938,11 +1022,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
@@ -951,14 +1036,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
@@ -967,8 +1054,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 {
@@ -976,6 +1063,8 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -985,10 +1074,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
@@ -997,12 +1088,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
@@ -1011,27 +1103,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_ & 0x00000001) != 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_ & 0x00000001) != 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);
     }
 
@@ -1041,12 +1136,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();
   }
@@ -1055,16 +1150,16 @@ 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 {
-      return new MysqlTable(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new MysqlTable(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1079,6 +1174,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
index 7933dfca..06dcb4c2 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java
+++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
index 09feb745..5b510e35 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java
+++ b/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,16 +46,15 @@ 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; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,92 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + target_ = s; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: { - - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: { - com.google.cloud.datastream.v1.ValidationResult.Builder subBuilder = null; - if (validationResult_ != null) { - subBuilder = validationResult_.toBuilder(); + statusMessage_ = s; + break; } - validationResult_ = input.readMessage(com.google.cloud.datastream.v1.ValidationResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validationResult_); - validationResult_ = subBuilder.buildPartial(); + case 48: + { + requestedCancellation_ = input.readBool(); + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + case 66: + { + com.google.cloud.datastream.v1.ValidationResult.Builder subBuilder = null; + if (validationResult_ != null) { + subBuilder = validationResult_.toBuilder(); + } + validationResult_ = + input.readMessage( + com.google.cloud.datastream.v1.ValidationResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validationResult_); + validationResult_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,34 +166,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -173,11 +207,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 @@ -185,11 +223,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() { @@ -199,11 +240,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 @@ -211,11 +256,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 @@ -223,11 +272,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() { @@ -237,11 +289,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; 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 @@ -250,29 +305,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 { @@ -283,11 +338,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; 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 @@ -296,29 +354,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 { @@ -329,11 +387,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; 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 @@ -342,29 +403,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 { @@ -375,6 +436,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -383,6 +446,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -393,11 +457,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; 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 @@ -406,29 +473,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 { @@ -439,11 +506,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 @@ -451,23 +523,34 @@ 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() { @@ -475,6 +558,7 @@ public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationRes } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -486,8 +570,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()); } @@ -522,12 +605,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_); @@ -539,15 +620,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -557,37 +636,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -615,8 +687,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()) { @@ -628,118 +699,127 @@ 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() @@ -747,16 +827,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -792,9 +871,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 @@ -813,7 +892,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); + com.google.cloud.datastream.v1.OperationMetadata result = + new com.google.cloud.datastream.v1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -842,38 +922,39 @@ public com.google.cloud.datastream.v1.OperationMetadata 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.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; @@ -881,7 +962,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()); } @@ -941,39 +1023,58 @@ public Builder mergeFrom( 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 createTimeBuilder_ != null || 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. */ 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) { @@ -989,14 +1090,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(); onChanged(); @@ -1007,17 +1111,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1029,11 +1137,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() { if (createTimeBuilder_ == null) { @@ -1047,48 +1159,64 @@ 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() { - + onChanged(); 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_; @@ -1096,24 +1224,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 endTimeBuilder_ != null || 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. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1124,11 +1263,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) { @@ -1144,14 +1286,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(); onChanged(); @@ -1162,17 +1306,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1184,11 +1331,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() { if (endTimeBuilder_ == null) { @@ -1202,48 +1352,59 @@ 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() { - + onChanged(); 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_; @@ -1251,18 +1412,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; @@ -1271,20 +1434,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 { @@ -1292,54 +1456,61 @@ 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) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; 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() { - + target_ = getDefaultInstance().getTarget(); onChanged(); 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) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1347,18 +1518,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; @@ -1367,20 +1540,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 { @@ -1388,54 +1562,61 @@ 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) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; 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() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); 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) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1443,18 +1624,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; @@ -1463,20 +1646,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 { @@ -1484,61 +1668,70 @@ 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) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; 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() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); 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) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); 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
@@ -1547,6 +1740,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1554,6 +1748,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1562,16 +1758,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1580,10 +1779,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1591,18 +1791,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; @@ -1611,20 +1813,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 { @@ -1632,54 +1835,61 @@ 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) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; 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() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); 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) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1687,39 +1897,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 validationResultBuilder_ != null || 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. */ 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) { @@ -1735,11 +1964,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) { @@ -1753,17 +1986,23 @@ 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 (validationResult_ != null) { validationResult_ = - com.google.cloud.datastream.v1.ValidationResult.newBuilder(validationResult_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.ValidationResult.newBuilder(validationResult_) + .mergeFrom(value) + .buildPartial(); } else { validationResult_ = value; } @@ -1775,11 +2014,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() { if (validationResultBuilder_ == null) { @@ -1793,55 +2036,71 @@ 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() { - + onChanged(); 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); } @@ -1851,12 +2110,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(); } @@ -1865,16 +2124,16 @@ 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 { - return new OperationMetadata(input, extensionRegistry); - } - }; + 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 { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1889,6 +2148,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java index 1ea49f22..fd0a674f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java +++ b/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
@@ -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.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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java index b14e3843..28c40ad2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java +++ b/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,16 +45,15 @@ 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; } + private OracleColumn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,61 +72,64 @@ private OracleColumn( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - column_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - dataType_ = s; - break; - } - case 24: { - - length_ = input.readInt32(); - break; - } - case 32: { - - precision_ = input.readInt32(); - break; - } - case 40: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - scale_ = input.readInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - encoding_ = s; - break; - } - case 56: { - - primaryKey_ = input.readBool(); - break; - } - case 64: { + column_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nullable_ = input.readBool(); - break; - } - case 72: { + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 32: + { + precision_ = input.readInt32(); + break; + } + case 40: + { + scale_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - ordinalPosition_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + encoding_ = s; + break; + } + case 56: + { + primaryKey_ = input.readBool(); + break; + } + case 64: + { + nullable_ = input.readBool(); + break; + } + case 72: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,34 +137,39 @@ private OracleColumn( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object column_; /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ @java.lang.Override @@ -153,29 +178,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 { @@ -186,11 +211,14 @@ public java.lang.String getColumn() { public static final int DATA_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object dataType_; /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -199,29 +227,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 { @@ -232,11 +260,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -247,11 +278,14 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_; /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -262,11 +296,14 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_; /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -277,11 +314,14 @@ public int getScale() { public static final int ENCODING_FIELD_NUMBER = 6; private volatile java.lang.Object encoding_; /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The encoding. */ @java.lang.Override @@ -290,29 +330,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 { @@ -323,11 +363,14 @@ public java.lang.String getEncoding() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -338,11 +381,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -353,11 +399,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -366,6 +415,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,8 +427,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_); } @@ -422,31 +471,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -456,31 +499,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -505,11 +540,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) + unknownFields.hashCode(); @@ -517,118 +550,127 @@ 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() @@ -636,16 +678,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -671,9 +712,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 @@ -692,7 +733,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); + com.google.cloud.datastream.v1.OracleColumn result = + new com.google.cloud.datastream.v1.OracleColumn(this); result.column_ = column_; result.dataType_ = dataType_; result.length_ = length_; @@ -710,38 +752,39 @@ public com.google.cloud.datastream.v1.OracleColumn 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.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; @@ -811,18 +854,20 @@ public Builder mergeFrom( 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; @@ -831,20 +876,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 { @@ -852,54 +898,61 @@ 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) { + public Builder setColumn(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + column_ = value; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return This builder for chaining. */ public Builder clearColumn() { - + column_ = getDefaultInstance().getColumn(); onChanged(); 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) { + public Builder setColumnBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; onChanged(); return this; @@ -907,18 +960,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; @@ -927,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 { @@ -948,66 +1004,76 @@ 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) { + public Builder setDataType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataType_ = value; onChanged(); return this; } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = getDefaultInstance().getDataType(); onChanged(); 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) { + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; onChanged(); return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -1015,42 +1081,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { - + length_ = 0; onChanged(); return this; } - private int precision_ ; + private int precision_; /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -1058,42 +1133,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0; onChanged(); return this; } - private int scale_ ; + private int scale_; /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -1101,30 +1185,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return This builder for chaining. */ public Builder clearScale() { - + scale_ = 0; onChanged(); return this; @@ -1132,18 +1222,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; @@ -1152,20 +1244,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 { @@ -1173,66 +1266,76 @@ 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) { + public Builder setEncoding(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = getDefaultInstance().getEncoding(); onChanged(); 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) { + public Builder setEncodingBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encoding_ = value; onChanged(); 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 @@ -1240,42 +1343,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { - + primaryKey_ = false; onChanged(); 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 @@ -1283,42 +1395,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); 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 @@ -1326,37 +1447,43 @@ 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; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { - + ordinalPosition_ = 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); } @@ -1366,12 +1493,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(); } @@ -1380,16 +1507,16 @@ 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 { - return new OracleColumn(input, extensionRegistry); - } - }; + 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 { + return new OracleColumn(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1404,6 +1531,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java index 6e4f0635..ca779761 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java index 5710b1d8..5131482f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java +++ b/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,16 +46,15 @@ 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; } + private OracleProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,55 +74,64 @@ private OracleProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hostname_ = s; - break; - } - case 16: { - - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - databaseService_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionAttributes_ = com.google.protobuf.MapField.newMapField( - ConnectionAttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + databaseService_ = s; + break; } - com.google.protobuf.MapEntry - connectionAttributes__ = input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - connectionAttributes_.getMutableMap().put( - connectionAttributes__.getKey(), connectionAttributes__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionAttributes_ = + com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + connectionAttributes__ = + input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + connectionAttributes_ + .getMutableMap() + .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,46 +139,50 @@ private OracleProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -161,29 +191,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 { @@ -194,11 +224,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -209,11 +242,14 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; 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 @@ -222,29 +258,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 { @@ -255,11 +291,14 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; 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 @@ -268,29 +307,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 { @@ -301,11 +340,14 @@ public java.lang.String getPassword() { public static final int DATABASE_SERVICE_FIELD_NUMBER = 5; 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 @@ -314,29 +356,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 { @@ -345,21 +387,22 @@ 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, + ""); } - 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); @@ -371,28 +414,30 @@ public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
    * Connection string attributes
    * 
* * 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
    * 
@@ -400,11 +445,12 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.util.Map getConnectionAttributesMap() { return internalGetConnectionAttributes().getMap(); } /** + * + * *
    * Connection string attributes
    * 
@@ -412,16 +458,18 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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
    * 
@@ -429,10 +477,10 @@ public 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)) { @@ -442,6 +490,7 @@ public java.lang.String getConnectionAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -453,8 +502,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_); } @@ -470,8 +518,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, @@ -489,8 +536,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_); @@ -501,15 +547,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -519,25 +565,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -568,140 +610,147 @@ 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() @@ -709,16 +758,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -737,9 +785,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 @@ -758,7 +806,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); + com.google.cloud.datastream.v1.OracleProfile result = + new com.google.cloud.datastream.v1.OracleProfile(this); int from_bitField0_ = bitField0_; result.hostname_ = hostname_; result.port_ = port_; @@ -775,38 +824,39 @@ public com.google.cloud.datastream.v1.OracleProfile 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.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; @@ -834,8 +884,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleProfile other) { databaseService_ = other.databaseService_; onChanged(); } - internalGetMutableConnectionAttributes().mergeFrom( - other.internalGetConnectionAttributes()); + internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -864,22 +913,25 @@ public Builder mergeFrom( } 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; @@ -888,20 +940,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 { @@ -909,66 +962,76 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); 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 @@ -976,30 +1039,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -1007,18 +1076,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; @@ -1027,20 +1098,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 { @@ -1048,54 +1120,61 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1103,18 +1182,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; @@ -1123,20 +1204,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 { @@ -1144,54 +1226,61 @@ 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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; 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() { - + password_ = getDefaultInstance().getPassword(); onChanged(); 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) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -1199,18 +1288,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; @@ -1219,20 +1310,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 { @@ -1240,75 +1332,85 @@ 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) { + public Builder setDatabaseService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + databaseService_ = value; 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() { - + databaseService_ = getDefaultInstance().getDatabaseService(); onChanged(); 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) { + public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseService_ = value; onChanged(); 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() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } + private com.google.protobuf.MapField - internalGetMutableConnectionAttributes() { - onChanged();; + internalGetMutableConnectionAttributes() { + onChanged(); + ; 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(); @@ -1320,28 +1422,30 @@ public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
      * Connection string attributes
      * 
* * 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
      * 
@@ -1349,11 +1453,12 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.util.Map getConnectionAttributesMap() { return internalGetConnectionAttributes().getMap(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1361,16 +1466,18 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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
      * 
@@ -1378,10 +1485,10 @@ public 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)) { @@ -1391,69 +1498,67 @@ public java.lang.String getConnectionAttributesOrThrow( } public Builder clearConnectionAttributes() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableConnectionAttributes().getMutableMap() - .put(key, value); + internalGetMutableConnectionAttributes().getMutableMap().put(key, value); return this; } /** + * + * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder putAllConnectionAttributes( java.util.Map values) { - internalGetMutableConnectionAttributes().getMutableMap() - .putAll(values); + internalGetMutableConnectionAttributes().getMutableMap().putAll(values); 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); } @@ -1463,12 +1568,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(); } @@ -1477,16 +1582,16 @@ 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 { - return new OracleProfile(input, extensionRegistry); - } - }; + 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 { + return new OracleProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1501,6 +1606,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java index 582d1c17..fdd1a702 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java +++ b/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
    * 
@@ -138,18 +180,18 @@ boolean containsConnectionAttributes( */ /* 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java index 804e5399..b3925e8d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java @@ -1,40 +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; } + private OracleRdbms( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,25 @@ private OracleRdbms( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleSchemas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleSchemas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oracleSchemas_.add( + input.readMessage( + com.google.cloud.datastream.v1.OracleSchema.parser(), extensionRegistry)); + break; } - oracleSchemas_.add( - input.readMessage(com.google.cloud.datastream.v1.OracleSchema.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private OracleRdbms( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { oracleSchemas_ = java.util.Collections.unmodifiableList(oracleSchemas_); @@ -87,22 +106,27 @@ private OracleRdbms( makeExtensionsImmutable(); } } - 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; private java.util.List oracleSchemas_; /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -114,6 +138,8 @@ public java.util.List getOracleSche return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -121,11 +147,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.
    * 
@@ -137,6 +165,8 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -148,6 +178,8 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { return oracleSchemas_.get(index); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -155,12 +187,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; @@ -172,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 { for (int i = 0; i < oracleSchemas_.size(); i++) { output.writeMessage(1, oracleSchemas_.get(i)); } @@ -187,8 +218,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +228,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +257,127 @@ 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() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOracleSchemasFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,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 @@ -391,7 +430,8 @@ 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); int from_bitField0_ = bitField0_; if (oracleSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.datastream.v1.OracleRdbms 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.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; @@ -468,9 +509,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_); } @@ -504,21 +546,29 @@ public Builder mergeFrom( } 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.
      * 
@@ -533,6 +583,8 @@ public java.util.List getOracleSche } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -547,6 +599,8 @@ public int getOracleSchemasCount() { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -561,14 +615,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(); @@ -582,6 +637,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -600,6 +657,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -620,14 +679,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(); @@ -641,6 +701,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -659,6 +721,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -677,6 +741,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -687,8 +753,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); @@ -696,6 +761,8 @@ public Builder addAllOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -713,6 +780,8 @@ public Builder clearOracleSchemas() { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -730,17 +799,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.
      * 
@@ -750,19 +822,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 { @@ -770,6 +845,8 @@ public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBu } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -777,38 +854,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(), @@ -817,9 +903,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); } @@ -829,12 +915,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(); } @@ -843,16 +929,16 @@ 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 { - return new OracleRdbms(input, extensionRegistry); - } - }; + 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 { + return new OracleRdbms(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +953,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java index edefd8e8..d5a46d0e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java index 7466d811..7256ff56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java +++ b/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,16 +44,15 @@ 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; } + private OracleSchema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private OracleSchema( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleTables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + schema_ = s; + break; } - oracleTables_.add( - input.readMessage(com.google.cloud.datastream.v1.OracleTable.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleTables_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oracleTables_.add( + input.readMessage( + com.google.cloud.datastream.v1.OracleTable.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private OracleSchema( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { oracleTables_ = java.util.Collections.unmodifiableList(oracleTables_); @@ -94,27 +114,33 @@ private OracleSchema( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object schema_; /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -123,29 +149,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 { @@ -156,6 +182,8 @@ public java.lang.String getSchema() { public static final int ORACLE_TABLES_FIELD_NUMBER = 2; private java.util.List oracleTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -167,6 +195,8 @@ public java.util.List getOracleTable return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -174,11 +204,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.
    * 
@@ -190,6 +222,8 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -201,6 +235,8 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { return oracleTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -208,12 +244,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; @@ -225,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -246,8 +281,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +291,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,118 +323,127 @@ 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() @@ -409,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOracleTablesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +477,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 @@ -456,7 +498,8 @@ 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); int from_bitField0_ = bitField0_; result.schema_ = schema_; if (oracleTablesBuilder_ == null) { @@ -476,38 +519,39 @@ public com.google.cloud.datastream.v1.OracleSchema 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.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; @@ -538,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSchema other) { oracleTablesBuilder_ = null; oracleTables_ = other.oracleTables_; bitField0_ = (bitField0_ & ~0x00000001); - oracleTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleTablesFieldBuilder() : null; + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleTablesFieldBuilder() + : null; } else { oracleTablesBuilder_.addAllMessages(other.oracleTables_); } @@ -574,22 +619,25 @@ public Builder mergeFrom( } 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; @@ -598,20 +646,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 { @@ -619,72 +668,86 @@ 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) { + public Builder setSchema(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); 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) { + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; } private java.util.List oracleTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleTablesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleTables_ = new java.util.ArrayList(oracleTables_); + oracleTables_ = + new java.util.ArrayList(oracleTables_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -699,6 +762,8 @@ public java.util.List getOracleTable } } /** + * + * *
      * Tables in the schema.
      * 
@@ -713,6 +778,8 @@ public int getOracleTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -727,14 +794,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(); @@ -748,6 +816,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -766,6 +836,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -786,14 +858,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(); @@ -807,6 +880,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -825,6 +900,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -843,6 +920,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -853,8 +932,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); @@ -862,6 +940,8 @@ public Builder addAllOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -879,6 +959,8 @@ public Builder clearOracleTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -896,39 +978,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 { @@ -936,6 +1023,8 @@ public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuil } } /** + * + * *
      * Tables in the schema.
      * 
@@ -943,49 +1032,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -995,12 +1090,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(); } @@ -1009,16 +1104,16 @@ 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 { - return new OracleSchema(input, extensionRegistry); - } - }; + 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 { + return new OracleSchema(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java index 4518baf5..955e55b4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java index 8f702c2f..a7554aab 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -1,39 +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; /** + * + * *
  * 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; } + private OracleSourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,72 +68,96 @@ private OracleSourceConfig( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; - if (includeObjects_ != null) { - subBuilder = includeObjects_.toBuilder(); - } - includeObjects_ = input.readMessage(com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(includeObjects_); - includeObjects_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; + if (includeObjects_ != null) { + subBuilder = includeObjects_.toBuilder(); + } + includeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(includeObjects_); + includeObjects_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; - if (excludeObjects_ != null) { - subBuilder = excludeObjects_.toBuilder(); - } - excludeObjects_ = input.readMessage(com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(excludeObjects_); - excludeObjects_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; + if (excludeObjects_ != null) { + subBuilder = excludeObjects_.toBuilder(); + } + excludeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(excludeObjects_); + excludeObjects_ = subBuilder.buildPartial(); + } - break; - } - case 24: { - - maxConcurrentCdcTasks_ = input.readInt32(); - break; - } - case 802: { - com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder subBuilder = null; - if (largeObjectsHandlingCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_).toBuilder(); + break; } - largeObjectsHandling_ = - input.readMessage(com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) largeObjectsHandling_); - largeObjectsHandling_ = subBuilder.buildPartial(); + case 24: + { + maxConcurrentCdcTasks_ = input.readInt32(); + break; } - largeObjectsHandlingCase_ = 100; - break; - } - case 818: { - com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder subBuilder = null; - if (largeObjectsHandlingCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_).toBuilder(); + case 802: + { + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.Builder + subBuilder = null; + if (largeObjectsHandlingCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_) + .toBuilder(); + } + largeObjectsHandling_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + largeObjectsHandling_); + largeObjectsHandling_ = subBuilder.buildPartial(); + } + largeObjectsHandlingCase_ = 100; + break; } - largeObjectsHandling_ = - input.readMessage(com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) largeObjectsHandling_); - largeObjectsHandling_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.Builder + subBuilder = null; + if (largeObjectsHandlingCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_) + .toBuilder(); + } + largeObjectsHandling_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + largeObjectsHandling_); + largeObjectsHandling_ = subBuilder.buildPartial(); + } + largeObjectsHandlingCase_ = 102; + break; } - largeObjectsHandlingCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,61 +165,64 @@ private OracleSourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } + private DropLargeObjects( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -198,13 +241,13 @@ private DropLargeObjects( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -212,27 +255,30 @@ private DropLargeObjects( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -244,8 +290,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 { unknownFields.writeTo(output); } @@ -263,12 +308,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -287,87 +333,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 @@ -377,44 +431,49 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,14 +481,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 @@ -443,7 +504,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; } @@ -452,46 +514,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.unknownFields); onChanged(); return this; @@ -511,7 +580,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig.DropLargeObjects) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -520,6 +591,7 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -532,30 +604,32 @@ 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 { - return new DropLargeObjects(input, extensionRegistry); - } - }; + 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 { + return new DropLargeObjects(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -567,47 +641,48 @@ 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; } + private StreamLargeObjects( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -626,13 +701,13 @@ private StreamLargeObjects( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -640,27 +715,30 @@ private StreamLargeObjects( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -672,8 +750,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 { unknownFields.writeTo(output); } @@ -691,12 +768,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -715,87 +793,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 @@ -805,44 +891,49 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -850,19 +941,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); } @@ -871,7 +965,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; } @@ -880,46 +975,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.unknownFields); onChanged(); return this; @@ -939,7 +1041,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig.StreamLargeObjects) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -948,6 +1052,7 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -960,30 +1065,32 @@ 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 { - return new StreamLargeObjects(input, extensionRegistry); - } - }; + 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 { + return new StreamLargeObjects(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,21 +1102,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; } @@ -1025,31 +1135,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 @@ -1057,18 +1173,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.
    * 
@@ -1083,11 +1206,14 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBu 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 @@ -1095,18 +1221,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.
    * 
@@ -1121,12 +1254,15 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu public static final int MAX_CONCURRENT_CDC_TASKS_FIELD_NUMBER = 3; 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 @@ -1136,11 +1272,15 @@ public int getMaxConcurrentCdcTasks() { 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 @@ -1148,42 +1288,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.
    * 
* - * .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 @@ -1191,36 +1346,52 @@ public boolean hasStreamLargeObjects() { return largeObjectsHandlingCase_ == 102; } /** + * + * *
    * Stream large object values.
    * 
* - * .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.
    * 
* - * .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; @@ -1232,8 +1403,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()); } @@ -1244,10 +1414,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt32(3, maxConcurrentCdcTasks_); } 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_); } unknownFields.writeTo(output); } @@ -1259,24 +1435,27 @@ 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 (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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1286,34 +1465,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.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 (!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: @@ -1357,117 +1532,126 @@ 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() @@ -1475,16 +1659,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1508,9 +1691,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 @@ -1529,7 +1712,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); + com.google.cloud.datastream.v1.OracleSourceConfig result = + new com.google.cloud.datastream.v1.OracleSourceConfig(this); if (includeObjectsBuilder_ == null) { result.includeObjects_ = includeObjects_; } else { @@ -1564,38 +1748,39 @@ public com.google.cloud.datastream.v1.OracleSourceConfig 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.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; @@ -1603,7 +1788,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()); } @@ -1614,17 +1800,20 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other setMaxConcurrentCdcTasks(other.getMaxConcurrentCdcTasks()); } 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.unknownFields); onChanged(); @@ -1645,7 +1834,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1654,12 +1844,12 @@ public Builder mergeFrom( } 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() { @@ -1669,37 +1859,49 @@ public Builder clearLargeObjectsHandling() { return this; } - 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 includeObjectsBuilder_ != null || includeObjects_ != null; } /** + * + * *
      * 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.
      * 
@@ -1720,6 +1922,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1738,6 +1942,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1748,7 +1954,9 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms va if (includeObjectsBuilder_ == null) { if (includeObjects_ != null) { includeObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); } else { includeObjects_ = value; } @@ -1760,6 +1968,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1778,6 +1988,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1785,11 +1997,13 @@ public Builder clearIncludeObjects() { * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; */ public com.google.cloud.datastream.v1.OracleRdbms.Builder getIncludeObjectsBuilder() { - + onChanged(); return getIncludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -1800,11 +2014,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.
      * 
@@ -1812,14 +2029,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_; @@ -1827,34 +2047,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 excludeObjectsBuilder_ != null || excludeObjects_ != null; } /** + * + * *
      * 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.
      * 
@@ -1875,6 +2108,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1893,6 +2128,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1903,7 +2140,9 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms va if (excludeObjectsBuilder_ == null) { if (excludeObjects_ != null) { excludeObjects_ = - com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludeObjects_ = value; } @@ -1915,6 +2154,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1933,6 +2174,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1940,11 +2183,13 @@ public Builder clearExcludeObjects() { * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; */ public com.google.cloud.datastream.v1.OracleRdbms.Builder getExcludeObjectsBuilder() { - + onChanged(); return getExcludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -1955,11 +2200,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.
      * 
@@ -1967,27 +2215,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 will be used.
      * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ @java.lang.Override @@ -1995,45 +2249,59 @@ 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; 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() { - + maxConcurrentCdcTasks_ = 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_; + 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 @@ -2041,35 +2309,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(); @@ -2083,14 +2365,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(); @@ -2101,18 +2388,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; } @@ -2128,11 +2426,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) { @@ -2151,67 +2453,100 @@ 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; } largeObjectsHandlingCase_ = 100; - onChanged();; + onChanged(); + ; return dropLargeObjectsBuilder_; } 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.
      * 
* - * .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 @@ -2219,35 +2554,49 @@ public boolean hasStreamLargeObjects() { return largeObjectsHandlingCase_ == 102; } /** + * + * *
      * Stream large object values.
      * 
* - * .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.
      * 
* - * .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(); @@ -2261,14 +2610,19 @@ public Builder setStreamLargeObjects(com.google.cloud.datastream.v1.OracleSource return this; } /** + * + * *
      * Stream large object values.
      * 
* - * .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(); @@ -2279,18 +2633,29 @@ public Builder setStreamLargeObjects( return this; } /** + * + * *
      * Stream large object values.
      * 
* - * .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; } @@ -2306,11 +2671,15 @@ public Builder mergeStreamLargeObjects(com.google.cloud.datastream.v1.OracleSour return this; } /** + * + * *
      * Stream large object values.
      * 
* - * .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) { @@ -2329,61 +2698,86 @@ public Builder clearStreamLargeObjects() { return this; } /** + * + * *
      * Stream large object values.
      * 
* - * .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.
      * 
* - * .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.
      * 
* - * .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; } largeObjectsHandlingCase_ = 102; - onChanged();; + 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); } @@ -2393,12 +2787,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(); } @@ -2407,16 +2801,16 @@ 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 { - return new OracleSourceConfig(input, extensionRegistry); - } - }; + 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 { + return new OracleSourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2431,6 +2825,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java index 52c3ff0f..f21df17f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java +++ b/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,69 +94,100 @@ 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 will be used.
    * 
* * int32 max_concurrent_cdc_tasks = 3; + * * @return The maxConcurrentCdcTasks. */ int getMaxConcurrentCdcTasks(); /** + * + * *
    * 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.
    * 
* - * .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.
    * 
* - * .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.
    * 
* - * .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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java index e0fa7d25..52ba6600 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java +++ b/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,16 +44,15 @@ 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; } + private OracleTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private OracleTable( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - table_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleColumns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + table_ = s; + break; } - oracleColumns_.add( - input.readMessage(com.google.cloud.datastream.v1.OracleColumn.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oracleColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1.OracleColumn.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private OracleTable( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { oracleColumns_ = java.util.Collections.unmodifiableList(oracleColumns_); @@ -94,27 +114,33 @@ private OracleTable( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object table_; /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ @java.lang.Override @@ -123,29 +149,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 { @@ -156,6 +182,8 @@ public java.lang.String getTable() { public static final int ORACLE_COLUMNS_FIELD_NUMBER = 2; private java.util.List oracleColumns_; /** + * + * *
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -169,6 +197,8 @@ public java.util.List getOracleColu
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -178,11 +208,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
@@ -196,6 +228,8 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of include/exclude objects, includes/excludes
@@ -209,6 +243,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
@@ -218,12 +254,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;
@@ -235,8 +271,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_);
     }
@@ -256,8 +291,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -267,17 +301,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -300,118 +333,127 @@ 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() @@ -419,17 +461,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOracleColumnsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +487,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 @@ -466,7 +508,8 @@ 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); int from_bitField0_ = bitField0_; result.table_ = table_; if (oracleColumnsBuilder_ == null) { @@ -486,38 +529,39 @@ public com.google.cloud.datastream.v1.OracleTable 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.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; @@ -548,9 +592,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.OracleTable other) { oracleColumnsBuilder_ = null; oracleColumns_ = other.oracleColumns_; bitField0_ = (bitField0_ & ~0x00000001); - oracleColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleColumnsFieldBuilder() : null; + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleColumnsFieldBuilder() + : null; } else { oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); } @@ -584,22 +629,25 @@ public Builder mergeFrom( } 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; @@ -608,20 +656,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 { @@ -629,72 +678,86 @@ 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) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); 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) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } private java.util.List oracleColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleColumnsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleColumns_ = new java.util.ArrayList(oracleColumns_); + oracleColumns_ = + new java.util.ArrayList(oracleColumns_); bitField0_ |= 0x00000001; - } + } } 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
@@ -711,6 +774,8 @@ public java.util.List getOracleColu
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -727,6 +792,8 @@ public int getOracleColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -743,6 +810,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
@@ -751,8 +820,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();
@@ -766,6 +834,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -786,6 +856,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -808,6 +880,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
@@ -816,8 +890,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();
@@ -831,6 +904,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -851,6 +926,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -871,6 +948,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -883,8 +962,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);
@@ -892,6 +970,8 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -911,6 +991,8 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -930,6 +1012,8 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -938,11 +1022,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
@@ -954,11 +1039,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
@@ -967,8 +1055,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 {
@@ -976,6 +1064,8 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of include/exclude objects, includes/excludes
@@ -985,10 +1075,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
@@ -997,12 +1089,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
@@ -1011,16 +1104,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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1029,9 +1128,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);
     }
 
@@ -1041,12 +1140,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();
   }
@@ -1055,16 +1154,16 @@ 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 {
-      return new OracleTable(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new OracleTable(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1079,6 +1178,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
index 902a499e..5f9bce08 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java
+++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
similarity index 73%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
index a54d19c7..e25f9f00 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumn.java
+++ b/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,16 +44,15 @@ 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; } + private PostgresqlColumn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,55 +71,57 @@ private PostgresqlColumn( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - column_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - dataType_ = s; - break; - } - case 24: { - - length_ = input.readInt32(); - break; - } - case 32: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - precision_ = input.readInt32(); - break; - } - case 40: { - - scale_ = input.readInt32(); - break; - } - case 56: { - - primaryKey_ = input.readBool(); - break; - } - case 64: { - - nullable_ = input.readBool(); - break; - } - case 72: { + column_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - ordinalPosition_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 32: + { + precision_ = input.readInt32(); + break; + } + case 40: + { + scale_ = input.readInt32(); + break; + } + case 56: + { + primaryKey_ = input.readBool(); + break; + } + case 64: + { + nullable_ = input.readBool(); + break; + } + case 72: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,34 +129,39 @@ private PostgresqlColumn( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object column_; /** + * + * *
    * Column name.
    * 
* * string column = 1; + * * @return The column. */ @java.lang.Override @@ -146,29 +170,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 { @@ -179,11 +203,14 @@ public java.lang.String getColumn() { public static final int DATA_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object dataType_; /** + * + * *
    * The PostgreSQL data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -192,29 +219,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 { @@ -225,11 +252,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -240,11 +270,14 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_; /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -255,11 +288,14 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_; /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -270,11 +306,14 @@ public int getScale() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -285,11 +324,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -300,11 +342,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -313,6 +358,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +370,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_); } @@ -366,28 +411,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -397,29 +436,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -442,11 +474,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) + unknownFields.hashCode(); @@ -454,118 +484,127 @@ 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() @@ -573,16 +612,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -606,9 +644,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 @@ -627,7 +665,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); + com.google.cloud.datastream.v1.PostgresqlColumn result = + new com.google.cloud.datastream.v1.PostgresqlColumn(this); result.column_ = column_; result.dataType_ = dataType_; result.length_ = length_; @@ -644,38 +683,39 @@ public com.google.cloud.datastream.v1.PostgresqlColumn 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.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; @@ -683,7 +723,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_; onChanged(); @@ -741,18 +782,20 @@ public Builder mergeFrom( 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; @@ -761,20 +804,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 { @@ -782,54 +826,61 @@ 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) { + public Builder setColumn(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + column_ = value; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return This builder for chaining. */ public Builder clearColumn() { - + column_ = getDefaultInstance().getColumn(); onChanged(); 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) { + public Builder setColumnBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + column_ = value; onChanged(); return this; @@ -837,18 +888,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; @@ -857,20 +910,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 { @@ -878,66 +932,76 @@ 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) { + public Builder setDataType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataType_ = value; onChanged(); return this; } /** + * + * *
      * The PostgreSQL data type.
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = getDefaultInstance().getDataType(); onChanged(); 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) { + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; onChanged(); return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -945,42 +1009,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { - + length_ = 0; onChanged(); return this; } - private int precision_ ; + private int precision_; /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -988,42 +1061,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0; onChanged(); return this; } - private int scale_ ; + private int scale_; /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -1031,42 +1113,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return This builder for chaining. */ public Builder clearScale() { - + scale_ = 0; onChanged(); 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 @@ -1074,42 +1165,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { - + primaryKey_ = false; onChanged(); 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 @@ -1117,42 +1217,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); 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 @@ -1160,37 +1269,43 @@ 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; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { - + ordinalPosition_ = 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); } @@ -1200,12 +1315,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(); } @@ -1214,16 +1329,16 @@ 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 { - return new PostgresqlColumn(input, extensionRegistry); - } - }; + 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 { + return new PostgresqlColumn(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,6 +1353,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java index d5efd0d7..2bceb724 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlColumnOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java index 21d36853..40450c03 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfile.java +++ b/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,16 +46,15 @@ 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; } + private PostgresqlProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private PostgresqlProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - hostname_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + database_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,39 @@ private PostgresqlProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -135,29 +161,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 { @@ -168,11 +194,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Port for the PostgreSQL connection, default value is 5432.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -183,11 +212,14 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; 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 @@ -196,29 +228,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 { @@ -229,11 +261,14 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; 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 @@ -242,29 +277,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 { @@ -275,11 +310,14 @@ public java.lang.String getPassword() { public static final int DATABASE_FIELD_NUMBER = 5; 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 @@ -288,29 +326,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 { @@ -319,6 +357,7 @@ public java.lang.String getDatabase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -330,8 +369,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_); } @@ -360,8 +398,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_); @@ -380,23 +417,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -423,118 +456,127 @@ 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() @@ -542,16 +584,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +610,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 @@ -590,7 +631,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); + com.google.cloud.datastream.v1.PostgresqlProfile result = + new com.google.cloud.datastream.v1.PostgresqlProfile(this); result.hostname_ = hostname_; result.port_ = port_; result.username_ = username_; @@ -604,38 +646,39 @@ public com.google.cloud.datastream.v1.PostgresqlProfile 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.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; @@ -643,7 +686,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_; onChanged(); @@ -694,18 +738,20 @@ public Builder mergeFrom( 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; @@ -714,20 +760,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 { @@ -735,66 +782,76 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); 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 @@ -802,30 +859,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the PostgreSQL connection, default value is 5432.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -833,18 +896,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; @@ -853,20 +918,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 { @@ -874,54 +940,61 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -929,18 +1002,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; @@ -949,20 +1024,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 { @@ -970,54 +1046,61 @@ 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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; 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() { - + password_ = getDefaultInstance().getPassword(); onChanged(); 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) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -1025,18 +1108,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; @@ -1045,20 +1130,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 { @@ -1066,61 +1152,68 @@ 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) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; 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() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); 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) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = 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); } @@ -1130,12 +1223,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(); } @@ -1144,16 +1237,16 @@ 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 { - return new PostgresqlProfile(input, extensionRegistry); - } - }; + 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 { + return new PostgresqlProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1168,6 +1261,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java index 523c79a8..0c8dbafd 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlProfileOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java index 60744f88..8a5705a0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbms.java @@ -1,40 +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; } + private PostgresqlRdbms( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,25 @@ private PostgresqlRdbms( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - postgresqlSchemas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlSchemas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlSchemas_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSchema.parser(), extensionRegistry)); + break; } - postgresqlSchemas_.add( - input.readMessage(com.google.cloud.datastream.v1.PostgresqlSchema.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private PostgresqlRdbms( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { postgresqlSchemas_ = java.util.Collections.unmodifiableList(postgresqlSchemas_); @@ -87,22 +106,27 @@ private PostgresqlRdbms( makeExtensionsImmutable(); } } - 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; private java.util.List postgresqlSchemas_; /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -110,10 +134,13 @@ private PostgresqlRdbms( * 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.
    * 
@@ -121,11 +148,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.
    * 
@@ -137,6 +166,8 @@ public int getPostgresqlSchemasCount() { return postgresqlSchemas_.size(); } /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -148,6 +179,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int return postgresqlSchemas_.get(index); } /** + * + * *
    * PostgreSQL schemas in the database server.
    * 
@@ -161,6 +194,7 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,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)); } @@ -187,8 +220,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +231,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +260,127 @@ 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() @@ -346,17 +388,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPostgresqlSchemasFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,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_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 @@ -391,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (postgresqlSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +453,39 @@ public com.google.cloud.datastream.v1.PostgresqlRdbms 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.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; @@ -468,9 +512,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_); } @@ -504,28 +549,38 @@ public Builder mergeFrom( } 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 { @@ -533,6 +588,8 @@ public java.util.List getPostgr } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -547,6 +604,8 @@ public int getPostgresqlSchemasCount() { } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -561,6 +620,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchema getPostgresqlSchemas(int } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -582,6 +643,8 @@ public Builder setPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -600,6 +663,8 @@ public Builder setPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -620,6 +685,8 @@ public Builder addPostgresqlSchemas(com.google.cloud.datastream.v1.PostgresqlSch return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -641,6 +708,8 @@ public Builder addPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -659,6 +728,8 @@ public Builder addPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -677,6 +748,8 @@ public Builder addPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -687,8 +760,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); @@ -696,6 +768,8 @@ public Builder addAllPostgresqlSchemas( return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -713,6 +787,8 @@ public Builder clearPostgresqlSchemas() { return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -730,6 +806,8 @@ public Builder removePostgresqlSchemas(int index) { return this; } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -741,6 +819,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchema.Builder getPostgresqlSche return getPostgresqlSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -750,19 +830,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 { @@ -770,6 +853,8 @@ public com.google.cloud.datastream.v1.PostgresqlSchemaOrBuilder getPostgresqlSch } } /** + * + * *
      * PostgreSQL schemas in the database server.
      * 
@@ -777,10 +862,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.
      * 
@@ -789,26 +876,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(), @@ -817,9 +912,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); } @@ -829,12 +924,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(); } @@ -843,16 +938,16 @@ 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 { - return new PostgresqlRdbms(input, extensionRegistry); - } - }; + 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 { + return new PostgresqlRdbms(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +962,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java index 96f0141c..2f2a3d1c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlRdbmsOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java index 0debe175..01e16374 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchema.java +++ b/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,16 +44,15 @@ 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; } + private PostgresqlSchema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private PostgresqlSchema( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - postgresqlTables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + schema_ = s; + break; } - postgresqlTables_.add( - input.readMessage(com.google.cloud.datastream.v1.PostgresqlTable.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlTables_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlTables_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlTable.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private PostgresqlSchema( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { postgresqlTables_ = java.util.Collections.unmodifiableList(postgresqlTables_); @@ -94,27 +114,33 @@ private PostgresqlSchema( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object schema_; /** + * + * *
    * Schema name.
    * 
* * string schema = 1; + * * @return The schema. */ @java.lang.Override @@ -123,29 +149,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 { @@ -156,6 +182,8 @@ public java.lang.String getSchema() { public static final int POSTGRESQL_TABLES_FIELD_NUMBER = 2; private java.util.List postgresqlTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -167,6 +195,8 @@ public java.util.List getPostgre return postgresqlTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -174,11 +204,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.
    * 
@@ -190,6 +222,8 @@ public int getPostgresqlTablesCount() { return postgresqlTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -201,6 +235,8 @@ public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int in return postgresqlTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -214,6 +250,7 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schema_); } @@ -246,8 +282,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +292,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -290,118 +324,127 @@ 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() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPostgresqlTablesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,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 @@ -456,7 +499,8 @@ 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); int from_bitField0_ = bitField0_; result.schema_ = schema_; if (postgresqlTablesBuilder_ == null) { @@ -476,38 +520,39 @@ public com.google.cloud.datastream.v1.PostgresqlSchema 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.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; @@ -515,7 +560,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_; onChanged(); @@ -538,9 +584,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlSchema other) postgresqlTablesBuilder_ = null; postgresqlTables_ = other.postgresqlTables_; bitField0_ = (bitField0_ & ~0x00000001); - postgresqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPostgresqlTablesFieldBuilder() : null; + postgresqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlTablesFieldBuilder() + : null; } else { postgresqlTablesBuilder_.addAllMessages(other.postgresqlTables_); } @@ -574,22 +621,25 @@ public Builder mergeFrom( } 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; @@ -598,20 +648,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 { @@ -619,79 +670,95 @@ 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) { + public Builder setSchema(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** + * + * *
      * Schema name.
      * 
* * string schema = 1; + * * @return This builder for chaining. */ public Builder clearSchema() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); 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) { + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; } private java.util.List postgresqlTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePostgresqlTablesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - postgresqlTables_ = new java.util.ArrayList(postgresqlTables_); + postgresqlTables_ = + new java.util.ArrayList( + postgresqlTables_); bitField0_ |= 0x00000001; - } + } } 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 { @@ -699,6 +766,8 @@ public java.util.List getPostgre } } /** + * + * *
      * Tables in the schema.
      * 
@@ -713,6 +782,8 @@ public int getPostgresqlTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -727,6 +798,8 @@ public com.google.cloud.datastream.v1.PostgresqlTable getPostgresqlTables(int in } } /** + * + * *
      * Tables in the schema.
      * 
@@ -748,6 +821,8 @@ public Builder setPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -766,6 +841,8 @@ public Builder setPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -786,6 +863,8 @@ public Builder addPostgresqlTables(com.google.cloud.datastream.v1.PostgresqlTabl return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -807,6 +886,8 @@ public Builder addPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -825,6 +906,8 @@ public Builder addPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -843,6 +926,8 @@ public Builder addPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -853,8 +938,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); @@ -862,6 +946,8 @@ public Builder addAllPostgresqlTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -879,6 +965,8 @@ public Builder clearPostgresqlTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -896,6 +984,8 @@ public Builder removePostgresqlTables(int index) { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -907,6 +997,8 @@ public com.google.cloud.datastream.v1.PostgresqlTable.Builder getPostgresqlTable return getPostgresqlTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the schema.
      * 
@@ -916,19 +1008,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 { @@ -936,6 +1031,8 @@ public com.google.cloud.datastream.v1.PostgresqlTableOrBuilder getPostgresqlTabl } } /** + * + * *
      * Tables in the schema.
      * 
@@ -943,10 +1040,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.
      * 
@@ -955,26 +1054,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_ & 0x00000001) != 0), getParentForChildren(), @@ -983,9 +1090,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); } @@ -995,12 +1102,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(); } @@ -1009,16 +1116,16 @@ 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 { - return new PostgresqlSchema(input, extensionRegistry); - } - }; + 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 { + return new PostgresqlSchema(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1140,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java index 379d1256..3730f8a0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSchemaOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java index 8d3bfdc3..356fc67a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfig.java +++ b/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,16 +44,15 @@ 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; } + private PostgresqlSourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,51 +71,59 @@ private PostgresqlSourceConfig( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; - if (includeObjects_ != null) { - subBuilder = includeObjects_.toBuilder(); - } - includeObjects_ = input.readMessage(com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(includeObjects_); - includeObjects_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (includeObjects_ != null) { + subBuilder = includeObjects_.toBuilder(); + } + includeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(includeObjects_); + includeObjects_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; - if (excludeObjects_ != null) { - subBuilder = excludeObjects_.toBuilder(); - } - excludeObjects_ = input.readMessage(com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(excludeObjects_); - excludeObjects_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null; + if (excludeObjects_ != null) { + subBuilder = excludeObjects_.toBuilder(); + } + excludeObjects_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(excludeObjects_); + excludeObjects_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - replicationSlot_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + replicationSlot_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - publication_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + publication_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,34 +131,39 @@ private PostgresqlSourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -141,18 +171,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.
    * 
@@ -167,11 +204,14 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getIncludeObjects 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 @@ -179,18 +219,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.
    * 
@@ -205,12 +252,15 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjects public static final int REPLICATION_SLOT_FIELD_NUMBER = 3; private volatile java.lang.Object replicationSlot_; /** + * + * *
    * Required. The name of the logical replication slot that's configured with the
    * pgoutput plugin.
    * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The replicationSlot. */ @java.lang.Override @@ -219,30 +269,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.
    * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -253,12 +303,15 @@ public java.lang.String getReplicationSlot() { public static final int PUBLICATION_FIELD_NUMBER = 4; 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 @@ -267,30 +320,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 { @@ -299,6 +352,7 @@ public java.lang.String getPublication() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -310,8 +364,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()); } @@ -334,12 +387,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_); @@ -355,27 +406,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.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 (!getExcludeObjects().equals(other.getExcludeObjects())) return false; } - if (!getReplicationSlot() - .equals(other.getReplicationSlot())) return false; - if (!getPublication() - .equals(other.getPublication())) return false; + if (!getReplicationSlot().equals(other.getReplicationSlot())) return false; + if (!getPublication().equals(other.getPublication())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -405,117 +453,127 @@ 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() @@ -523,16 +581,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -556,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_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 @@ -577,7 +634,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); + com.google.cloud.datastream.v1.PostgresqlSourceConfig result = + new com.google.cloud.datastream.v1.PostgresqlSourceConfig(this); if (includeObjectsBuilder_ == null) { result.includeObjects_ = includeObjects_; } else { @@ -598,38 +656,39 @@ public com.google.cloud.datastream.v1.PostgresqlSourceConfig 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.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; @@ -637,7 +696,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()); } @@ -671,7 +731,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.PostgresqlSourceConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -683,34 +744,47 @@ public Builder mergeFrom( 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 includeObjectsBuilder_ != null || includeObjects_ != null; } /** + * + * *
      * 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.
      * 
@@ -731,6 +805,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -749,6 +825,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -759,7 +837,9 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm if (includeObjectsBuilder_ == null) { if (includeObjects_ != null) { includeObjects_ = - com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(includeObjects_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(includeObjects_) + .mergeFrom(value) + .buildPartial(); } else { includeObjects_ = value; } @@ -771,6 +851,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -789,6 +871,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -796,11 +880,13 @@ public Builder clearIncludeObjects() { * .google.cloud.datastream.v1.PostgresqlRdbms include_objects = 1; */ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getIncludeObjectsBuilder() { - + onChanged(); return getIncludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL objects to include in the stream.
      * 
@@ -811,11 +897,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.
      * 
@@ -823,14 +912,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_; @@ -838,34 +930,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 excludeObjectsBuilder_ != null || excludeObjects_ != null; } /** + * + * *
      * 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.
      * 
@@ -886,6 +991,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbms return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -904,6 +1011,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -914,7 +1023,9 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm if (excludeObjectsBuilder_ == null) { if (excludeObjects_ != null) { excludeObjects_ = - com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(excludeObjects_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.PostgresqlRdbms.newBuilder(excludeObjects_) + .mergeFrom(value) + .buildPartial(); } else { excludeObjects_ = value; } @@ -926,6 +1037,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.PostgresqlRdbm return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -944,6 +1057,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -951,11 +1066,13 @@ public Builder clearExcludeObjects() { * .google.cloud.datastream.v1.PostgresqlRdbms exclude_objects = 2; */ public com.google.cloud.datastream.v1.PostgresqlRdbms.Builder getExcludeObjectsBuilder() { - + onChanged(); return getExcludeObjectsFieldBuilder().getBuilder(); } /** + * + * *
      * PostgreSQL objects to exclude from the stream.
      * 
@@ -966,11 +1083,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.
      * 
@@ -978,14 +1098,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_; @@ -993,19 +1116,21 @@ 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.
      * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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; @@ -1014,21 +1139,22 @@ public java.lang.String getReplicationSlot() { } } /** + * + * *
      * Required. The name of the logical replication slot that's configured with the
      * pgoutput plugin.
      * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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 { @@ -1036,57 +1162,64 @@ public java.lang.String getReplicationSlot() { } } /** + * + * *
      * Required. The name of the logical replication slot that's configured with the
      * pgoutput plugin.
      * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The replicationSlot to set. * @return This builder for chaining. */ - public Builder setReplicationSlot( - java.lang.String value) { + public Builder setReplicationSlot(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replicationSlot_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the logical replication slot that's configured with the
      * pgoutput plugin.
      * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearReplicationSlot() { - + replicationSlot_ = getDefaultInstance().getReplicationSlot(); onChanged(); return this; } /** + * + * *
      * Required. The name of the logical replication slot that's configured with the
      * pgoutput plugin.
      * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for replicationSlot to set. * @return This builder for chaining. */ - public Builder setReplicationSlotBytes( - com.google.protobuf.ByteString value) { + public Builder setReplicationSlotBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replicationSlot_ = value; onChanged(); return this; @@ -1094,19 +1227,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; @@ -1115,21 +1250,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 { @@ -1137,64 +1273,71 @@ 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) { + public Builder setPublication(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + publication_ = value; 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() { - + publication_ = getDefaultInstance().getPublication(); 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]; + * * @param value The bytes for publication to set. * @return This builder for chaining. */ - public Builder setPublicationBytes( - com.google.protobuf.ByteString value) { + public Builder setPublicationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + publication_ = 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 +1347,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(); } @@ -1218,16 +1361,16 @@ 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 { - return new PostgresqlSourceConfig(input, extensionRegistry); - } - }; + 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 { + return new PostgresqlSourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1242,6 +1385,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PostgresqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java index e719d476..392de3dc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlSourceConfigOrBuilder.java +++ b/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,46 +94,56 @@ public interface PostgresqlSourceConfigOrBuilder extends com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); /** + * + * *
    * Required. The name of the logical replication slot that's configured with the
    * pgoutput plugin.
    * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The replicationSlot. */ java.lang.String getReplicationSlot(); /** + * + * *
    * Required. The name of the logical replication slot that's configured with the
    * pgoutput plugin.
    * 
* * string replication_slot = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @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(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java index 6b64b3c2..8369e697 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTable.java +++ b/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,16 +44,15 @@ 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; } + private PostgresqlTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private PostgresqlTable( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - table_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - postgresqlColumns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + table_ = s; + break; } - postgresqlColumns_.add( - input.readMessage(com.google.cloud.datastream.v1.PostgresqlColumn.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + postgresqlColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + postgresqlColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlColumn.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private PostgresqlTable( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { postgresqlColumns_ = java.util.Collections.unmodifiableList(postgresqlColumns_); @@ -94,27 +114,33 @@ private PostgresqlTable( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object table_; /** + * + * *
    * Table name.
    * 
* * string table = 1; + * * @return The table. */ @java.lang.Override @@ -123,29 +149,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 { @@ -156,6 +182,8 @@ public java.lang.String getTable() { public static final int POSTGRESQL_COLUMNS_FIELD_NUMBER = 2; private java.util.List postgresqlColumns_; /** + * + * *
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -165,10 +193,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,
@@ -178,11 +209,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,
@@ -196,6 +229,8 @@ public int getPostgresqlColumnsCount() {
     return postgresqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * PostgreSQL columns in the schema.
    * When unspecified as part of include/exclude objects,
@@ -209,6 +244,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,
@@ -224,6 +261,7 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -235,8 +273,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_);
     }
@@ -256,8 +293,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -267,17 +304,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -300,118 +336,127 @@ 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() @@ -419,17 +464,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPostgresqlColumnsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +490,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 @@ -466,7 +511,8 @@ 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); int from_bitField0_ = bitField0_; result.table_ = table_; if (postgresqlColumnsBuilder_ == null) { @@ -486,38 +532,39 @@ public com.google.cloud.datastream.v1.PostgresqlTable 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.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; @@ -548,9 +595,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.PostgresqlTable other) { postgresqlColumnsBuilder_ = null; postgresqlColumns_ = other.postgresqlColumns_; bitField0_ = (bitField0_ & ~0x00000001); - postgresqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPostgresqlColumnsFieldBuilder() : null; + postgresqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPostgresqlColumnsFieldBuilder() + : null; } else { postgresqlColumnsBuilder_.addAllMessages(other.postgresqlColumns_); } @@ -584,22 +632,25 @@ public Builder mergeFrom( } 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; @@ -608,20 +659,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 { @@ -629,72 +681,87 @@ 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) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table = 1; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); 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) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } private java.util.List postgresqlColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePostgresqlColumnsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - postgresqlColumns_ = new java.util.ArrayList(postgresqlColumns_); + postgresqlColumns_ = + new java.util.ArrayList( + postgresqlColumns_); bitField0_ |= 0x00000001; - } + } } 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,
@@ -703,7 +770,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 {
@@ -711,6 +779,8 @@ public java.util.List getPostgr
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -727,6 +797,8 @@ public int getPostgresqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -743,6 +815,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumn getPostgresqlColumns(int
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -766,6 +840,8 @@ public Builder setPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -786,6 +862,8 @@ public Builder setPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -808,6 +886,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,
@@ -831,6 +911,8 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -851,6 +933,8 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -871,6 +955,8 @@ public Builder addPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -883,8 +969,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);
@@ -892,6 +977,8 @@ public Builder addAllPostgresqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -911,6 +998,8 @@ public Builder clearPostgresqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -930,6 +1019,8 @@ public Builder removePostgresqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -943,6 +1034,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,
@@ -954,11 +1047,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,
@@ -967,8 +1063,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 {
@@ -976,6 +1072,8 @@ public com.google.cloud.datastream.v1.PostgresqlColumnOrBuilder getPostgresqlCol
       }
     }
     /**
+     *
+     *
      * 
      * PostgreSQL columns in the schema.
      * When unspecified as part of include/exclude objects,
@@ -985,10 +1083,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,
@@ -999,10 +1099,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,
@@ -1011,16 +1113,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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1029,9 +1137,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);
     }
 
@@ -1041,12 +1149,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();
   }
@@ -1055,16 +1163,16 @@ 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 {
-      return new PostgresqlTable(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new PostgresqlTable(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1079,6 +1187,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.PostgresqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
index 6511bf82..fb3ec068 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PostgresqlTableOrBuilder.java
+++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
similarity index 64%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
index bb3b577a..7e17beb0 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java
+++ b/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,16 +46,15 @@ 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;
   }
+
   private PrivateConnection(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,96 +74,109 @@ private PrivateConnection(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 58: {
-            com.google.cloud.datastream.v1.Error.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
-            }
-            error_ = input.readMessage(com.google.cloud.datastream.v1.Error.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+              state_ = rawValue;
+              break;
             }
-
-            break;
-          }
-          case 802: {
-            com.google.cloud.datastream.v1.VpcPeeringConfig.Builder subBuilder = null;
-            if (vpcPeeringConfig_ != null) {
-              subBuilder = vpcPeeringConfig_.toBuilder();
+          case 58:
+            {
+              com.google.cloud.datastream.v1.Error.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.Error.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            vpcPeeringConfig_ = input.readMessage(com.google.cloud.datastream.v1.VpcPeeringConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vpcPeeringConfig_);
-              vpcPeeringConfig_ = subBuilder.buildPartial();
+          case 802:
+            {
+              com.google.cloud.datastream.v1.VpcPeeringConfig.Builder subBuilder = null;
+              if (vpcPeeringConfig_ != null) {
+                subBuilder = vpcPeeringConfig_.toBuilder();
+              }
+              vpcPeeringConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1.VpcPeeringConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vpcPeeringConfig_);
+                vpcPeeringConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -154,48 +184,52 @@ private PrivateConnection(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -204,6 +238,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -212,6 +248,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The private connection has been created with all of its resources.
      * 
@@ -220,6 +258,8 @@ public enum State */ CREATED(2), /** + * + * *
      * The private connection creation has failed.
      * 
@@ -228,6 +268,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The private connection is being deleted.
      * 
@@ -236,6 +278,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -247,6 +291,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -255,6 +301,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -263,6 +311,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The private connection has been created with all of its resources.
      * 
@@ -271,6 +321,8 @@ public enum State */ public static final int CREATED_VALUE = 2; /** + * + * *
      * The private connection creation has failed.
      * 
@@ -279,6 +331,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The private connection is being deleted.
      * 
@@ -287,6 +341,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -295,7 +351,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( @@ -320,52 +375,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; @@ -385,11 +443,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; 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 @@ -398,29 +459,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 { @@ -431,11 +492,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 @@ -443,11 +508,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 @@ -455,11 +524,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() { @@ -469,11 +541,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 @@ -481,11 +557,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 @@ -493,11 +573,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() { @@ -505,24 +588,23 @@ 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, + ""); } - 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_; } @@ -531,28 +613,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -560,11 +644,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -572,16 +657,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -589,12 +674,11 @@ public 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(); } @@ -604,11 +688,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -617,29 +704,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 { @@ -650,38 +737,57 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 6; private int 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 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnection.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.PrivateConnection.State result = com.google.cloud.datastream.v1.PrivateConnection.State.valueOf(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.valueOf(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 @@ -689,11 +795,15 @@ 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 @@ -701,11 +811,14 @@ 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() { @@ -715,11 +828,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 @@ -727,18 +843,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.
    * 
@@ -751,6 +874,7 @@ public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringCon } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -762,8 +886,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_); } @@ -773,16 +896,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) { @@ -804,37 +924,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -844,39 +960,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -920,97 +1030,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.
@@ -1018,43 +1135,43 @@ 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()
@@ -1062,16 +1179,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1110,9 +1226,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
@@ -1131,7 +1247,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);
+      com.google.cloud.datastream.v1.PrivateConnection result =
+          new com.google.cloud.datastream.v1.PrivateConnection(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -1166,38 +1283,39 @@ public com.google.cloud.datastream.v1.PrivateConnection 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.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;
@@ -1205,7 +1323,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_;
         onChanged();
@@ -1216,8 +1335,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());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -1259,22 +1377,25 @@ public Builder mergeFrom(
       }
       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; @@ -1283,20 +1404,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 { @@ -1304,54 +1426,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1359,39 +1488,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1407,14 +1555,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(); onChanged(); @@ -1425,17 +1576,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1447,11 +1602,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() { if (createTimeBuilder_ == null) { @@ -1465,48 +1624,64 @@ 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() { - + onChanged(); 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_; @@ -1514,39 +1689,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1562,14 +1756,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(); onChanged(); @@ -1580,17 +1777,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1602,11 +1803,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() { if (updateTimeBuilder_ == null) { @@ -1620,69 +1825,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1694,28 +1914,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -1723,11 +1945,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1735,16 +1958,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -1752,12 +1976,11 @@ public 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(); } @@ -1765,81 +1988,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -1848,20 +2070,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 { @@ -1869,54 +2092,61 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1924,51 +2154,75 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.PrivateConnection.State result = com.google.cloud.datastream.v1.PrivateConnection.State.valueOf(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.valueOf(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. */ @@ -1976,21 +2230,26 @@ public Builder setState(com.google.cloud.datastream.v1.PrivateConnection.State v if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); return this; @@ -1998,24 +2257,37 @@ 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 errorBuilder_ != null || 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. */ public com.google.cloud.datastream.v1.Error getError() { @@ -2026,11 +2298,15 @@ 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) { @@ -2046,14 +2322,17 @@ 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(); onChanged(); @@ -2064,17 +2343,23 @@ 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 (error_ != null) { error_ = - com.google.cloud.datastream.v1.Error.newBuilder(error_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.Error.newBuilder(error_) + .mergeFrom(value) + .buildPartial(); } else { error_ = value; } @@ -2086,11 +2371,15 @@ 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() { if (errorBuilder_ == null) { @@ -2104,48 +2393,62 @@ 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() { - + onChanged(); 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_; @@ -2153,34 +2456,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 vpcPeeringConfigBuilder_ != null || vpcPeeringConfig_ != null; } /** + * + * *
      * 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.
      * 
@@ -2201,6 +2517,8 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConf return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2219,6 +2537,8 @@ public Builder setVpcPeeringConfig( return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2229,7 +2549,9 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringCo if (vpcPeeringConfigBuilder_ == null) { if (vpcPeeringConfig_ != null) { vpcPeeringConfig_ = - com.google.cloud.datastream.v1.VpcPeeringConfig.newBuilder(vpcPeeringConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.VpcPeeringConfig.newBuilder(vpcPeeringConfig_) + .mergeFrom(value) + .buildPartial(); } else { vpcPeeringConfig_ = value; } @@ -2241,6 +2563,8 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringCo return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2259,6 +2583,8 @@ public Builder clearVpcPeeringConfig() { return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2266,11 +2592,13 @@ public Builder clearVpcPeeringConfig() { * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; */ public com.google.cloud.datastream.v1.VpcPeeringConfig.Builder getVpcPeeringConfigBuilder() { - + onChanged(); return getVpcPeeringConfigFieldBuilder().getBuilder(); } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2281,11 +2609,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.
      * 
@@ -2293,21 +2624,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); } @@ -2317,12 +2651,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(); } @@ -2331,16 +2665,16 @@ 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 { - return new PrivateConnection(input, extensionRegistry); - } - }; + 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 { + return new PrivateConnection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2355,6 +2689,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java index 8f90fa3b..b65f666f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java +++ b/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.
    * 
@@ -122,106 +168,140 @@ boolean containsLabels( */ /* 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java index 32eef56e..e3933f4e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java @@ -1,40 +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; /** + * + * *
  * 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; } + private PrivateConnectivity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private PrivateConnectivity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - privateConnection_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + privateConnection_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private PrivateConnectivity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -110,30 +135,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 { @@ -142,6 +169,7 @@ public java.lang.String getPrivateConnection() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ 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() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,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 @@ -364,7 +399,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); + com.google.cloud.datastream.v1.PrivateConnectivity result = + new com.google.cloud.datastream.v1.PrivateConnectivity(this); result.privateConnection_ = privateConnection_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.datastream.v1.PrivateConnectivity 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.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; @@ -413,7 +450,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_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.PrivateConnectivity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.PrivateConnectivity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( 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; @@ -470,21 +513,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 { @@ -492,64 +538,77 @@ 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) { + public Builder setPrivateConnection(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateConnection_ = value; 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() { - + privateConnection_ = getDefaultInstance().getPrivateConnection(); 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) = { ... } + * + * * @param value The bytes for privateConnection to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionBytes( - com.google.protobuf.ByteString value) { + public Builder setPrivateConnectionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnection_ = 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); } @@ -559,12 +618,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(); } @@ -573,16 +632,16 @@ 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 { - return new PrivateConnectivity(input, extensionRegistry); - } - }; + 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 { + return new PrivateConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java new file mode 100644 index 00000000..b94918ad --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java index 00760adc..927aca7a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java +++ b/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,16 +46,15 @@ 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;
   }
+
   private Route(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,75 +74,82 @@ private Route(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            destinationAddress_ = s;
-            break;
-          }
-          case 56: {
-
-            destinationPort_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              destinationAddress_ = s;
+              break;
+            }
+          case 56:
+            {
+              destinationPort_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -133,46 +157,50 @@ private Route(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -181,29 +209,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 { @@ -214,11 +242,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 @@ -226,11 +258,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 @@ -238,11 +274,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() { @@ -252,11 +291,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 @@ -264,11 +307,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 @@ -276,11 +323,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() { @@ -288,24 +338,23 @@ 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, + ""); } - 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_; } @@ -314,28 +363,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -343,11 +394,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -355,16 +407,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -372,12 +424,11 @@ public 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(); } @@ -387,11 +438,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -400,29 +454,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 { @@ -433,11 +487,14 @@ public java.lang.String getDisplayName() { public static final int DESTINATION_ADDRESS_FIELD_NUMBER = 6; 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 @@ -446,29 +503,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 { @@ -479,11 +536,14 @@ public java.lang.String getDestinationAddress() { public static final int DESTINATION_PORT_FIELD_NUMBER = 7; private int destinationPort_; /** + * + * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -492,6 +552,7 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -503,8 +564,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_); } @@ -514,12 +574,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_); } @@ -542,22 +598,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_); @@ -566,8 +620,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -577,33 +630,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -640,97 +686,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.
@@ -738,43 +790,43 @@ 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()
@@ -782,16 +834,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -820,9 +871,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
@@ -867,38 +918,39 @@ public com.google.cloud.datastream.v1.Route 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.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;
@@ -917,8 +969,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());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -958,22 +1009,25 @@ public Builder mergeFrom(
       }
       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; @@ -982,20 +1036,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 { @@ -1003,54 +1058,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1058,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 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 createTimeBuilder_ != null || 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. */ 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) { @@ -1106,14 +1187,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(); onChanged(); @@ -1124,17 +1208,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1146,11 +1234,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() { if (createTimeBuilder_ == null) { @@ -1164,48 +1256,64 @@ 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() { - + onChanged(); 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_; @@ -1213,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 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1261,14 +1388,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(); onChanged(); @@ -1279,17 +1409,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1301,11 +1435,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() { if (updateTimeBuilder_ == null) { @@ -1319,69 +1457,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1393,28 +1546,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -1422,11 +1577,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1434,16 +1590,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -1451,12 +1608,11 @@ public 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(); } @@ -1464,81 +1620,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -1547,20 +1702,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 { @@ -1568,54 +1724,61 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1623,18 +1786,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; @@ -1643,20 +1808,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 { @@ -1664,66 +1830,76 @@ 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) { + public Builder setDestinationAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationAddress_ = value; 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() { - + destinationAddress_ = getDefaultInstance().getDestinationAddress(); onChanged(); 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) { + public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationAddress_ = value; onChanged(); return this; } - private int destinationPort_ ; + private int destinationPort_; /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -1731,37 +1907,43 @@ 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; onChanged(); return this; } /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return This builder for chaining. */ public Builder clearDestinationPort() { - + destinationPort_ = 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); } @@ -1771,12 +1953,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(); } @@ -1785,16 +1967,16 @@ 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 { - return new Route(input, extensionRegistry); - } - }; + 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 { + return new Route(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1809,6 +1991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java index 1ebc96d7..6e554c6a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java +++ b/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.
    * 
@@ -122,67 +168,80 @@ boolean containsLabels( */ /* 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java index 16d4eee9..e99650c1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -1,40 +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; /** + * + * *
  * 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; } + private SourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,61 +70,79 @@ private SourceConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceConnectionProfile_ = s; - break; - } - case 802: { - com.google.cloud.datastream.v1.OracleSourceConfig.Builder subBuilder = null; - if (sourceStreamConfigCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_).toBuilder(); - } - sourceStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1.OracleSourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); - sourceStreamConfig_ = subBuilder.buildPartial(); - } - sourceStreamConfigCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1.MysqlSourceConfig.Builder subBuilder = null; - if (sourceStreamConfigCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_).toBuilder(); + sourceConnectionProfile_ = s; + break; } - sourceStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1.MysqlSourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); - sourceStreamConfig_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1.OracleSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.OracleSourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 100; + break; } - sourceStreamConfigCase_ = 101; - break; - } - case 818: { - com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder subBuilder = null; - if (sourceStreamConfigCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.MysqlSourceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 101; + break; } - sourceStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1.PostgresqlSourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); - sourceStreamConfig_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.datastream.v1.PostgresqlSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.PostgresqlSourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.PostgresqlSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 102; + break; } - sourceStreamConfigCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,36 +150,41 @@ private SourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -160,33 +200,42 @@ 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; 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 @@ -195,30 +244,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 { @@ -228,11 +279,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 @@ -240,21 +294,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.
    * 
@@ -262,20 +321,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 @@ -283,21 +346,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.
    * 
@@ -307,18 +375,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 @@ -326,21 +397,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.
    * 
@@ -348,14 +424,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; @@ -367,19 +445,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_); } unknownFields.writeTo(output); } @@ -394,16 +474,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,28 +496,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: @@ -473,118 +553,127 @@ 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() @@ -592,16 +681,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -613,9 +701,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 @@ -634,7 +722,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); + com.google.cloud.datastream.v1.SourceConfig result = + new com.google.cloud.datastream.v1.SourceConfig(this); result.sourceConnectionProfile_ = sourceConnectionProfile_; if (sourceStreamConfigCase_ == 100) { if (oracleSourceConfigBuilder_ == null) { @@ -666,38 +755,39 @@ public com.google.cloud.datastream.v1.SourceConfig 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.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; @@ -711,21 +801,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.unknownFields); onChanged(); @@ -755,12 +849,12 @@ public Builder mergeFrom( } 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() { @@ -770,22 +864,25 @@ public Builder clearSourceStreamConfig() { return this; } - 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; @@ -794,21 +891,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 { @@ -816,70 +916,89 @@ 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) { + public Builder setSourceConnectionProfile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceConnectionProfile_ = value; 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() { - + sourceConnectionProfile_ = getDefaultInstance().getSourceConnectionProfile(); 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) = { ... } + * + * * @param value The bytes for sourceConnectionProfile to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceConnectionProfileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceConnectionProfile_ = value; onChanged(); return this; } 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 @@ -887,11 +1006,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 @@ -909,6 +1031,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() } } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -929,6 +1053,8 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSource return this; } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -947,18 +1073,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; } @@ -974,6 +1107,8 @@ public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1.OracleSour return this; } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -997,16 +1132,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.
      * 
@@ -1014,7 +1154,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 { @@ -1025,6 +1166,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourc } } /** + * + * *
      * Oracle data source configuration.
      * 
@@ -1032,32 +1175,45 @@ 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()); sourceStreamConfig_ = null; } sourceStreamConfigCase_ = 100; - onChanged();; + onChanged(); + ; return oracleSourceConfigBuilder_; } 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 @@ -1065,11 +1221,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 @@ -1087,6 +1246,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { } } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1107,6 +1268,8 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceCo return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1125,6 +1288,8 @@ public Builder setMysqlSourceConfig( return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1133,10 +1298,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; } @@ -1152,6 +1321,8 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSource return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1175,6 +1346,8 @@ public Builder clearMysqlSourceConfig() { return this; } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1185,6 +1358,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1192,7 +1367,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 { @@ -1203,6 +1379,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC } } /** + * + * *
      * MySQL data source configuration.
      * 
@@ -1210,32 +1388,46 @@ 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()); sourceStreamConfig_ = null; } sourceStreamConfigCase_ = 101; - onChanged();; + onChanged(); + ; return mysqlSourceConfigBuilder_; } 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 @@ -1243,11 +1435,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 @@ -1265,13 +1461,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(); @@ -1285,11 +1485,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) { @@ -1303,18 +1506,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; } @@ -1330,11 +1541,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) { @@ -1353,24 +1567,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 { @@ -1381,33 +1603,43 @@ 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()); sourceStreamConfig_ = null; } sourceStreamConfigCase_ = 102; - onChanged();; + 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); } @@ -1417,12 +1649,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(); } @@ -1431,16 +1663,16 @@ 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 { - return new SourceConfig(input, extensionRegistry); - } - }; + 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 { + return new SourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1455,6 +1687,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java index 23688e59..bf914fd2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java index dc3de29a..9a84e9e3 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -1,39 +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; /** + * + * *
  * 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; } + private SourceObjectIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,55 +68,88 @@ private SourceObjectIdentifier( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder subBuilder = null; - if (sourceIdentifierCase_ == 1) { - subBuilder = ((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_).toBuilder(); - } - sourceIdentifier_ = - input.readMessage(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) sourceIdentifier_); - sourceIdentifier_ = subBuilder.buildPartial(); - } - sourceIdentifierCase_ = 1; - break; - } - case 18: { - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder subBuilder = null; - if (sourceIdentifierCase_ == 2) { - subBuilder = ((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_).toBuilder(); - } - sourceIdentifier_ = - input.readMessage(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); - sourceIdentifier_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder + subBuilder = null; + if (sourceIdentifierCase_ == 1) { + subBuilder = + ((com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_) + .toBuilder(); + } + sourceIdentifier_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + sourceIdentifier_); + sourceIdentifier_ = subBuilder.buildPartial(); + } + sourceIdentifierCase_ = 1; + break; } - sourceIdentifierCase_ = 2; - break; - } - case 26: { - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.Builder subBuilder = null; - if (sourceIdentifierCase_ == 3) { - subBuilder = ((com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_).toBuilder(); + case 18: + { + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder + subBuilder = null; + if (sourceIdentifierCase_ == 2) { + subBuilder = + ((com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_) + .toBuilder(); + } + sourceIdentifier_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + sourceIdentifier_); + sourceIdentifier_ = subBuilder.buildPartial(); + } + sourceIdentifierCase_ = 2; + break; } - sourceIdentifier_ = - input.readMessage(com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) sourceIdentifier_); - sourceIdentifier_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + .Builder + subBuilder = null; + if (sourceIdentifierCase_ == 3) { + subBuilder = + ((com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_) + .toBuilder(); + } + sourceIdentifier_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.SourceObjectIdentifier + .PostgresqlObjectIdentifier) + sourceIdentifier_); + sourceIdentifier_ = subBuilder.buildPartial(); + } + sourceIdentifierCase_ = 3; + break; } - sourceIdentifierCase_ = 3; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -108,86 +157,102 @@ private SourceObjectIdentifier( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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_ = ""; @@ -195,16 +260,15 @@ 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; } + private OracleObjectIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -223,25 +287,27 @@ private OracleObjectIdentifier( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + schema_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - table_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + table_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -249,34 +315,40 @@ private OracleObjectIdentifier( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object schema_; /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -285,29 +357,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 { @@ -318,11 +390,14 @@ public java.lang.String getSchema() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -331,29 +406,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 { @@ -362,6 +437,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,8 +449,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_); } @@ -404,17 +479,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,88 +511,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 @@ -526,44 +615,51 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -575,19 +671,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); } @@ -595,8 +694,10 @@ 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); + 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); result.schema_ = schema_; result.table_ = table_; onBuilt(); @@ -607,46 +708,55 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentif public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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_; onChanged(); @@ -670,11 +780,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parsedMessage = null; + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -686,18 +799,20 @@ public Builder mergeFrom( 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; @@ -706,20 +821,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 { @@ -727,54 +843,61 @@ 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) { + public Builder setSchema(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSchema() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); 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) { + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; @@ -782,18 +905,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; @@ -802,20 +927,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 { @@ -823,58 +949,66 @@ 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) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); 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) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -887,30 +1021,34 @@ 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 { - return new OracleObjectIdentifier(input, extensionRegistry); - } - }; + 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 { + return new OracleObjectIdentifier(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -922,72 +1060,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_ = ""; @@ -995,16 +1149,15 @@ 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; } + private PostgresqlObjectIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1023,25 +1176,27 @@ private PostgresqlObjectIdentifier( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - schema_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + schema_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - table_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + table_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1049,34 +1204,41 @@ private PostgresqlObjectIdentifier( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object schema_; /** + * + * *
      * Required. The schema name.
      * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The schema. */ @java.lang.Override @@ -1085,29 +1247,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 { @@ -1118,11 +1280,14 @@ public java.lang.String getSchema() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -1131,29 +1296,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 { @@ -1162,6 +1327,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1173,8 +1339,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_); } @@ -1204,17 +1369,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1235,88 +1401,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 @@ -1326,44 +1506,52 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1375,19 +1563,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); } @@ -1395,8 +1587,11 @@ 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); + 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); result.schema_ = schema_; result.table_ = table_; onBuilt(); @@ -1407,46 +1602,56 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIde public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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_; onChanged(); @@ -1470,11 +1675,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier parsedMessage = null; + com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.PostgresqlObjectIdentifier) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1486,18 +1694,20 @@ public Builder mergeFrom( 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; @@ -1506,20 +1716,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 { @@ -1527,54 +1738,61 @@ 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) { + public Builder setSchema(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schema_ = value; onChanged(); return this; } /** + * + * *
        * Required. The schema name.
        * 
* * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSchema() { - + schema_ = getDefaultInstance().getSchema(); onChanged(); 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) { + public Builder setSchemaBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schema_ = value; onChanged(); return this; @@ -1582,18 +1800,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; @@ -1602,20 +1822,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 { @@ -1623,58 +1844,66 @@ 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) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); 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) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1687,30 +1916,34 @@ 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 { - return new PostgresqlObjectIdentifier(input, extensionRegistry); - } - }; + 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 { + return new PostgresqlObjectIdentifier(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1722,72 +1955,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_ = ""; @@ -1795,16 +2042,15 @@ 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; } + private MysqlObjectIdentifier( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1823,25 +2069,27 @@ private MysqlObjectIdentifier( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - database_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + database_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - table_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + table_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1849,34 +2097,40 @@ private MysqlObjectIdentifier( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object database_; /** + * + * *
      * Required. The database name.
      * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The database. */ @java.lang.Override @@ -1885,29 +2139,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 { @@ -1918,11 +2172,14 @@ public java.lang.String getDatabase() { public static final int TABLE_FIELD_NUMBER = 2; private volatile java.lang.Object table_; /** + * + * *
      * Required. The table name.
      * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The table. */ @java.lang.Override @@ -1931,29 +2188,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 { @@ -1962,6 +2219,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1973,8 +2231,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_); } @@ -2004,17 +2261,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2035,88 +2292,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) 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 @@ -2126,44 +2396,50 @@ 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() + // Construct using + // com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2175,19 +2451,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); } @@ -2195,8 +2474,10 @@ 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); + 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); result.database_ = database_; result.table_ = table_; onBuilt(); @@ -2207,46 +2488,55 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifi public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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_; onChanged(); @@ -2270,11 +2560,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parsedMessage = null; + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2286,18 +2579,20 @@ public Builder mergeFrom( 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; @@ -2306,20 +2601,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 { @@ -2327,54 +2623,61 @@ 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) { + public Builder setDatabase(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + database_ = value; onChanged(); return this; } /** + * + * *
        * Required. The database name.
        * 
* * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDatabase() { - + database_ = getDefaultInstance().getDatabase(); onChanged(); 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) { + public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + database_ = value; onChanged(); return this; @@ -2382,18 +2685,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; @@ -2402,20 +2707,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 { @@ -2423,58 +2729,66 @@ 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) { + public Builder setTable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + table_ = value; onChanged(); return this; } /** + * + * *
        * Required. The table name.
        * 
* * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearTable() { - + table_ = getDefaultInstance().getTable(); onChanged(); 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) { + public Builder setTableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + table_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2487,30 +2801,33 @@ 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 { - return new MysqlObjectIdentifier(input, extensionRegistry); - } - }; + 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 { + return new MysqlObjectIdentifier(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2522,22 +2839,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; } @@ -2553,31 +2873,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 @@ -2585,42 +2914,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 @@ -2628,42 +2977,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 @@ -2671,36 +3040,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; @@ -2712,16 +3097,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_); } unknownFields.writeTo(output); } @@ -2733,16 +3126,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2752,26 +3154,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: @@ -2809,117 +3209,127 @@ 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() @@ -2927,16 +3337,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2946,9 +3355,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 @@ -2967,7 +3376,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); + com.google.cloud.datastream.v1.SourceObjectIdentifier result = + new com.google.cloud.datastream.v1.SourceObjectIdentifier(this); if (sourceIdentifierCase_ == 1) { if (oracleIdentifierBuilder_ == null) { result.sourceIdentifier_ = sourceIdentifier_; @@ -2998,38 +3408,39 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifier 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.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; @@ -3037,23 +3448,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.unknownFields); onChanged(); @@ -3074,7 +3490,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.SourceObjectIdentifier) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -3083,12 +3500,12 @@ public Builder mergeFrom( } 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() { @@ -3098,15 +3515,22 @@ public Builder clearSourceIdentifier() { return this; } - 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 @@ -3114,35 +3538,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(); @@ -3156,14 +3594,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(); @@ -3174,18 +3617,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; } @@ -3201,11 +3656,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) { @@ -3224,67 +3683,102 @@ 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; } sourceIdentifierCase_ = 1; - onChanged();; + onChanged(); + ; return oracleIdentifierBuilder_; } 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 @@ -3292,35 +3786,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(); @@ -3334,14 +3842,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(); @@ -3352,18 +3865,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; } @@ -3379,11 +3904,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) { @@ -3402,67 +3931,103 @@ 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; } sourceIdentifierCase_ = 2; - onChanged();; + onChanged(); + ; return mysqlIdentifierBuilder_; } 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 @@ -3470,35 +4035,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(); @@ -3512,14 +4091,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(); @@ -3530,18 +4114,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; } @@ -3557,11 +4154,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) { @@ -3580,61 +4181,90 @@ 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; } sourceIdentifierCase_ = 3; - onChanged();; + 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); } @@ -3644,12 +4274,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(); } @@ -3658,16 +4288,16 @@ 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 { - return new SourceObjectIdentifier(input, extensionRegistry); - } - }; + 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 { + return new SourceObjectIdentifier(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3682,6 +4312,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java new file mode 100644 index 00000000..886a6d21 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java index 9cb95351..05dfbae1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java @@ -1,40 +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.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; } + private StartBackfillJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StartBackfillJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - object_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + object_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private StartBackfillJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,31 @@ 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 { @@ -140,6 +167,7 @@ public java.lang.String getObject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,127 @@ 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() @@ -322,16 +359,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +377,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 @@ -362,7 +398,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); + com.google.cloud.datastream.v1.StartBackfillJobRequest result = + new com.google.cloud.datastream.v1.StartBackfillJobRequest(this); result.object_ = object_; onBuilt(); return result; @@ -372,38 +409,39 @@ public com.google.cloud.datastream.v1.StartBackfillJobRequest 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.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; @@ -411,7 +449,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_; onChanged(); @@ -435,7 +474,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.StartBackfillJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.StartBackfillJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,22 @@ public Builder mergeFrom( 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; @@ -467,20 +511,23 @@ 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 { @@ -488,61 +535,74 @@ 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) { + public Builder setObject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; 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() { - + object_ = getDefaultInstance().getObject(); 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) = { ... } + * + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { + public Builder setObjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = 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); } @@ -552,12 +612,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(); } @@ -566,16 +626,16 @@ 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 { - return new StartBackfillJobRequest(input, extensionRegistry); - } - }; + 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 { + return new StartBackfillJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java new file mode 100644 index 00000000..b4adbe22 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.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 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java index 194f3da1..44d03ace 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java @@ -1,39 +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; /** + * + * *
  * 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; } + private StartBackfillJobResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private StartBackfillJobResponse( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.StreamObject.Builder subBuilder = null; - if (object_ != null) { - subBuilder = object_.toBuilder(); + case 10: + { + com.google.cloud.datastream.v1.StreamObject.Builder subBuilder = null; + if (object_ != null) { + subBuilder = object_.toBuilder(); + } + object_ = + input.readMessage( + com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(object_); + object_ = subBuilder.buildPartial(); + } + + break; } - object_ = input.readMessage(com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(object_); - object_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private StartBackfillJobResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -114,18 +138,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.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,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()); } @@ -164,8 +195,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,127 @@ 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() @@ -326,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +388,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 @@ -370,7 +409,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); + com.google.cloud.datastream.v1.StartBackfillJobResponse result = + new com.google.cloud.datastream.v1.StartBackfillJobResponse(this); if (objectBuilder_ == null) { result.object_ = object_; } else { @@ -384,38 +424,39 @@ public com.google.cloud.datastream.v1.StartBackfillJobResponse 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.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; @@ -423,7 +464,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()); } @@ -446,7 +488,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.StartBackfillJobResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.StartBackfillJobResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +501,47 @@ public Builder mergeFrom( 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 objectBuilder_ != null || object_ != null; } /** + * + * *
      * 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.
      * 
@@ -506,14 +562,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(); onChanged(); @@ -524,6 +581,8 @@ public Builder setObject( return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -534,7 +593,9 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { if (objectBuilder_ == null) { if (object_ != null) { object_ = - com.google.cloud.datastream.v1.StreamObject.newBuilder(object_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.StreamObject.newBuilder(object_) + .mergeFrom(value) + .buildPartial(); } else { object_ = value; } @@ -546,6 +607,8 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -564,6 +627,8 @@ public Builder clearObject() { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -571,11 +636,13 @@ public Builder clearObject() { * .google.cloud.datastream.v1.StreamObject object = 1; */ public com.google.cloud.datastream.v1.StreamObject.Builder getObjectBuilder() { - + onChanged(); return getObjectFieldBuilder().getBuilder(); } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -586,11 +653,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.
      * 
@@ -598,21 +668,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); } @@ -622,12 +695,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(); } @@ -636,16 +709,16 @@ 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 { - return new StartBackfillJobResponse(input, extensionRegistry); - } - }; + 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 { + return new StartBackfillJobResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +733,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StartBackfillJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java index b9f25bec..6b0fb3fe 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java index c4cc15e7..269b7d61 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java @@ -1,39 +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.
  * 
* * 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; } + private StaticServiceIpConnectivity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StaticServiceIpConnectivity( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private StaticServiceIpConnectivity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ 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.
    * 
* * 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() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,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 @@ -297,7 +325,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; } @@ -306,38 +335,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; @@ -345,7 +375,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.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +418,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(); } @@ -400,16 +432,16 @@ 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 { - return new StaticServiceIpConnectivity(input, extensionRegistry); - } - }; + 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 { + return new StaticServiceIpConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java new file mode 100644 index 00000000..5ba444a6 --- /dev/null +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java index 1133c22e..bfaf0d3f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java +++ b/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,31 +28,31 @@
  *
  * 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;
   }
+
   private StopBackfillJobRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private StopBackfillJobRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            object_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              object_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,34 +92,41 @@ private StopBackfillJobRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -110,29 +135,31 @@ 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 { @@ -141,6 +168,7 @@ public java.lang.String getObject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +180,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_); } @@ -177,15 +204,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,96 +232,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.
@@ -302,21 +337,23 @@ 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()
@@ -324,16 +361,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -343,9 +379,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
@@ -364,7 +400,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);
+      com.google.cloud.datastream.v1.StopBackfillJobRequest result =
+          new com.google.cloud.datastream.v1.StopBackfillJobRequest(this);
       result.object_ = object_;
       onBuilt();
       return result;
@@ -374,38 +411,39 @@ public com.google.cloud.datastream.v1.StopBackfillJobRequest 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.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;
@@ -413,7 +451,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_;
         onChanged();
@@ -437,7 +476,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datastream.v1.StopBackfillJobRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datastream.v1.StopBackfillJobRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +489,22 @@ public Builder mergeFrom(
 
     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; @@ -469,20 +513,23 @@ 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 { @@ -490,61 +537,74 @@ 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) { + public Builder setObject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + object_ = value; 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() { - + object_ = getDefaultInstance().getObject(); 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) = { ... } + * + * * @param value The bytes for object to set. * @return This builder for chaining. */ - public Builder setObjectBytes( - com.google.protobuf.ByteString value) { + public Builder setObjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + object_ = 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); } @@ -554,12 +614,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(); } @@ -568,16 +628,16 @@ 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 { - return new StopBackfillJobRequest(input, extensionRegistry); - } - }; + 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 { + return new StopBackfillJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +652,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java new file mode 100644 index 00000000..28521774 --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.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 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java index e3fbb3ab..833bac5e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java @@ -1,39 +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; /** + * + * *
  * 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; } + private StopBackfillJobResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private StopBackfillJobResponse( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1.StreamObject.Builder subBuilder = null; - if (object_ != null) { - subBuilder = object_.toBuilder(); + case 10: + { + com.google.cloud.datastream.v1.StreamObject.Builder subBuilder = null; + if (object_ != null) { + subBuilder = object_.toBuilder(); + } + object_ = + input.readMessage( + com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(object_); + object_ = subBuilder.buildPartial(); + } + + break; } - object_ = input.readMessage(com.google.cloud.datastream.v1.StreamObject.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(object_); - object_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,39 @@ private StopBackfillJobResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -114,18 +138,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.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,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()); } @@ -164,8 +195,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,127 @@ 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() @@ -326,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +388,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 @@ -370,7 +409,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); + com.google.cloud.datastream.v1.StopBackfillJobResponse result = + new com.google.cloud.datastream.v1.StopBackfillJobResponse(this); if (objectBuilder_ == null) { result.object_ = object_; } else { @@ -384,38 +424,39 @@ public com.google.cloud.datastream.v1.StopBackfillJobResponse 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.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; @@ -423,7 +464,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()); } @@ -446,7 +488,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.StopBackfillJobResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.StopBackfillJobResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +501,47 @@ public Builder mergeFrom( 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 objectBuilder_ != null || object_ != null; } /** + * + * *
      * 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.
      * 
@@ -506,14 +562,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(); onChanged(); @@ -524,6 +581,8 @@ public Builder setObject( return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -534,7 +593,9 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { if (objectBuilder_ == null) { if (object_ != null) { object_ = - com.google.cloud.datastream.v1.StreamObject.newBuilder(object_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.StreamObject.newBuilder(object_) + .mergeFrom(value) + .buildPartial(); } else { object_ = value; } @@ -546,6 +607,8 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -564,6 +627,8 @@ public Builder clearObject() { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -571,11 +636,13 @@ public Builder clearObject() { * .google.cloud.datastream.v1.StreamObject object = 1; */ public com.google.cloud.datastream.v1.StreamObject.Builder getObjectBuilder() { - + onChanged(); return getObjectFieldBuilder().getBuilder(); } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -586,11 +653,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.
      * 
@@ -598,21 +668,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); } @@ -622,12 +695,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(); } @@ -636,16 +709,16 @@ 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 { - return new StopBackfillJobResponse(input, extensionRegistry); - } - }; + 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 { + return new StopBackfillJobResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +733,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java index abb22f8b..896434af 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java index 170b58f2..f3a46f86 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java +++ b/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,16 +47,15 @@ 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; } + private Stream( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,139 +75,167 @@ private Stream( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + com.google.cloud.datastream.v1.SourceConfig.Builder subBuilder = null; + if (sourceConfig_ != null) { + subBuilder = sourceConfig_.toBuilder(); + } + sourceConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceConfig_); + sourceConfig_ = subBuilder.buildPartial(); + } - displayName_ = s; - break; - } - case 50: { - com.google.cloud.datastream.v1.SourceConfig.Builder subBuilder = null; - if (sourceConfig_ != null) { - subBuilder = sourceConfig_.toBuilder(); - } - sourceConfig_ = input.readMessage(com.google.cloud.datastream.v1.SourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceConfig_); - sourceConfig_ = subBuilder.buildPartial(); + break; } + case 58: + { + com.google.cloud.datastream.v1.DestinationConfig.Builder subBuilder = null; + if (destinationConfig_ != null) { + subBuilder = destinationConfig_.toBuilder(); + } + destinationConfig_ = + input.readMessage( + com.google.cloud.datastream.v1.DestinationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destinationConfig_); + destinationConfig_ = subBuilder.buildPartial(); + } - break; - } - case 58: { - com.google.cloud.datastream.v1.DestinationConfig.Builder subBuilder = null; - if (destinationConfig_ != null) { - subBuilder = destinationConfig_.toBuilder(); - } - destinationConfig_ = input.readMessage(com.google.cloud.datastream.v1.DestinationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(destinationConfig_); - destinationConfig_ = subBuilder.buildPartial(); + break; } + case 64: + { + int rawValue = input.readEnum(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + state_ = rawValue; + break; } - errors_.add( - input.readMessage(com.google.cloud.datastream.v1.Error.parser(), extensionRegistry)); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - customerManagedEncryptionKey_ = s; - break; - } - case 810: { - com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder subBuilder = null; - if (backfillStrategyCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_).toBuilder(); + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + errors_.add( + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), extensionRegistry)); + break; } - backfillStrategy_ = - input.readMessage(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); - backfillStrategy_ = subBuilder.buildPartial(); + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + customerManagedEncryptionKey_ = s; + break; } - backfillStrategyCase_ = 101; - break; - } - case 818: { - com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder subBuilder = null; - if (backfillStrategyCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder subBuilder = null; + if (backfillStrategyCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_) + .toBuilder(); + } + backfillStrategy_ = + input.readMessage( + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_); + backfillStrategy_ = subBuilder.buildPartial(); + } + backfillStrategyCase_ = 101; + break; } - backfillStrategy_ = - input.readMessage(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); - backfillStrategy_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder subBuilder = null; + if (backfillStrategyCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_) + .toBuilder(); + } + backfillStrategy_ = + input.readMessage( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); + backfillStrategy_ = subBuilder.buildPartial(); + } + backfillStrategyCase_ = 102; + break; } - backfillStrategyCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -198,8 +243,7 @@ private Stream( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -208,41 +252,46 @@ private Stream( makeExtensionsImmutable(); } } - 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.
      * 
@@ -251,6 +300,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -259,6 +310,8 @@ public enum State */ NOT_STARTED(1), /** + * + * *
      * The stream is running.
      * 
@@ -267,6 +320,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The stream is paused.
      * 
@@ -275,6 +330,8 @@ public enum State */ PAUSED(3), /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -284,6 +341,8 @@ public enum State
      */
     MAINTENANCE(4),
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -293,6 +352,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -301,6 +362,8 @@ public enum State */ FAILED_PERMANENTLY(6), /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -309,6 +372,8 @@ public enum State */ STARTING(7), /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -321,6 +386,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified stream state.
      * 
@@ -329,6 +396,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -337,6 +406,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 1; /** + * + * *
      * The stream is running.
      * 
@@ -345,6 +416,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The stream is paused.
      * 
@@ -353,6 +426,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.
@@ -362,6 +437,8 @@ public enum State
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -371,6 +448,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -379,6 +458,8 @@ public enum State */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -387,6 +468,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.
@@ -396,7 +479,6 @@ public enum State
      */
     public static final int DRAINING_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -421,55 +503,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;
@@ -486,29 +574,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.
      * 
@@ -518,24 +615,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.
      * 
@@ -545,24 +650,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.
      * 
@@ -571,9 +684,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.
@@ -581,30 +697,29 @@ 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;
     }
+
     private BackfillAllStrategy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -623,55 +738,68 @@ private BackfillAllStrategy(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null;
-              if (excludedObjectsCase_ == 1) {
-                subBuilder = ((com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_).toBuilder();
-              }
-              excludedObjects_ =
-                  input.readMessage(com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_);
-                excludedObjects_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null;
+                if (excludedObjectsCase_ == 1) {
+                  subBuilder =
+                      ((com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_).toBuilder();
+                }
+                excludedObjects_ =
+                    input.readMessage(
+                        com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_);
+                  excludedObjects_ = subBuilder.buildPartial();
+                }
+                excludedObjectsCase_ = 1;
+                break;
               }
-              excludedObjectsCase_ = 1;
-              break;
-            }
-            case 18: {
-              com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null;
-              if (excludedObjectsCase_ == 2) {
-                subBuilder = ((com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_).toBuilder();
+            case 18:
+              {
+                com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null;
+                if (excludedObjectsCase_ == 2) {
+                  subBuilder =
+                      ((com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_).toBuilder();
+                }
+                excludedObjects_ =
+                    input.readMessage(
+                        com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_);
+                  excludedObjects_ = subBuilder.buildPartial();
+                }
+                excludedObjectsCase_ = 2;
+                break;
               }
-              excludedObjects_ =
-                  input.readMessage(com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_);
-                excludedObjects_ = subBuilder.buildPartial();
+            case 26:
+              {
+                com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null;
+                if (excludedObjectsCase_ == 3) {
+                  subBuilder =
+                      ((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_)
+                          .toBuilder();
+                }
+                excludedObjects_ =
+                    input.readMessage(
+                        com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_);
+                  excludedObjects_ = subBuilder.buildPartial();
+                }
+                excludedObjectsCase_ = 3;
+                break;
               }
-              excludedObjectsCase_ = 2;
-              break;
-            }
-            case 26: {
-              com.google.cloud.datastream.v1.PostgresqlRdbms.Builder subBuilder = null;
-              if (excludedObjectsCase_ == 3) {
-                subBuilder = ((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_).toBuilder();
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              excludedObjects_ =
-                  input.readMessage(com.google.cloud.datastream.v1.PostgresqlRdbms.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datastream.v1.PostgresqlRdbms) excludedObjects_);
-                excludedObjects_ = subBuilder.buildPartial();
-              }
-              excludedObjectsCase_ = 3;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -679,36 +807,41 @@ private BackfillAllStrategy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    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;
       }
@@ -724,31 +857,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 @@ -756,21 +896,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.
      * 
@@ -780,18 +925,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 @@ -799,21 +947,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.
      * 
@@ -823,18 +976,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 @@ -842,21 +998,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.
      * 
@@ -864,14 +1025,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; @@ -883,8 +1046,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_); } @@ -904,16 +1066,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -923,26 +1088,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: @@ -980,87 +1144,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 @@ -1070,6 +1241,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -1077,21 +1250,24 @@ 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()
@@ -1099,16 +1275,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1118,9 +1293,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
@@ -1139,7 +1314,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);
+        com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result =
+            new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this);
         if (excludedObjectsCase_ == 1) {
           if (oracleExcludedObjectsBuilder_ == null) {
             result.excludedObjects_ = excludedObjects_;
@@ -1170,38 +1346,41 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy 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.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;
@@ -1209,23 +1388,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.unknownFields);
         onChanged();
@@ -1246,7 +1430,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1255,12 +1440,12 @@ public Builder mergeFrom(
         }
         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() {
@@ -1270,15 +1455,20 @@ public Builder clearExcludedObjects() {
         return this;
       }
 
-
       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 @@ -1286,11 +1476,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 @@ -1308,6 +1501,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1328,6 +1523,8 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdb return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1346,6 +1543,8 @@ public Builder setOracleExcludedObjects( return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1354,10 +1553,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; } @@ -1373,6 +1576,8 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleR return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1396,6 +1601,8 @@ public Builder clearOracleExcludedObjects() { return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1406,6 +1613,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1413,7 +1622,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 { @@ -1424,6 +1634,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObje } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1431,32 +1643,44 @@ 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()); excludedObjects_ = null; } excludedObjectsCase_ = 1; - onChanged();; + onChanged(); + ; return oracleExcludedObjectsBuilder_; } 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 @@ -1464,11 +1688,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 @@ -1486,6 +1713,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1506,6 +1735,8 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1524,6 +1755,8 @@ public Builder setMysqlExcludedObjects( return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1532,10 +1765,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; } @@ -1551,6 +1788,8 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdb return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1574,6 +1813,8 @@ public Builder clearMysqlExcludedObjects() { return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1584,6 +1825,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlExcludedObjects return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1602,6 +1845,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1609,32 +1854,44 @@ 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()); excludedObjects_ = null; } excludedObjectsCase_ = 2; - onChanged();; + onChanged(); + ; return mysqlExcludedObjectsBuilder_; } 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 @@ -1642,11 +1899,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 @@ -1664,13 +1924,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(); @@ -1684,6 +1947,8 @@ public Builder setPostgresqlExcludedObjects(com.google.cloud.datastream.v1.Postg return this; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1702,18 +1967,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; } @@ -1729,6 +2001,8 @@ public Builder mergePostgresqlExcludedObjects(com.google.cloud.datastream.v1.Pos return this; } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1752,16 +2026,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.
        * 
@@ -1769,7 +2048,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 { @@ -1780,6 +2060,8 @@ public com.google.cloud.datastream.v1.PostgresqlRdbmsOrBuilder getPostgresqlExcl } } /** + * + * *
        * PostgreSQL data source objects to avoid backfilling.
        * 
@@ -1787,23 +2069,30 @@ 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()); excludedObjects_ = null; } excludedObjectsCase_ = 3; - onChanged();; + onChanged(); + ; return postgresqlExcludedObjectsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1816,12 +2105,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(); } @@ -1830,16 +2119,16 @@ 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 { - return new BackfillAllStrategy(input, extensionRegistry); - } - }; + 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 { + return new BackfillAllStrategy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1854,44 +2143,44 @@ 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; } + private BackfillNoneStrategy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1910,13 +2199,13 @@ private BackfillNoneStrategy( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1924,27 +2213,30 @@ private BackfillNoneStrategy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -1956,8 +2248,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 { unknownFields.writeTo(output); } @@ -1975,12 +2266,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1999,87 +2291,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 @@ -2089,27 +2388,32 @@ 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() @@ -2117,16 +2421,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -2134,13 +2437,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(); } @@ -2155,7 +2459,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; } @@ -2164,38 +2469,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; @@ -2203,7 +2511,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.unknownFields); onChanged(); return this; @@ -2223,7 +2533,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2232,6 +2543,7 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2244,12 +2556,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(); } @@ -2258,16 +2571,16 @@ 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 { - return new BackfillNoneStrategy(input, extensionRegistry); - } - }; + 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 { + return new BackfillNoneStrategy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2282,19 +2595,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; } @@ -2310,31 +2625,37 @@ 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; 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 @@ -2343,29 +2664,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 { @@ -2376,11 +2697,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 @@ -2388,11 +2713,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 @@ -2400,11 +2729,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() { @@ -2414,11 +2746,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 @@ -2426,11 +2762,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 @@ -2438,11 +2778,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() { @@ -2450,24 +2793,23 @@ 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, + ""); } - 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_; } @@ -2476,28 +2818,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -2505,11 +2849,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -2517,16 +2862,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -2534,12 +2879,11 @@ public 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(); } @@ -2549,11 +2893,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -2562,29 +2909,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 { @@ -2595,11 +2942,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 @@ -2607,23 +2959,34 @@ 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() { @@ -2633,11 +2996,16 @@ public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBui 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 @@ -2645,23 +3013,34 @@ 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() { @@ -2671,38 +3050,50 @@ public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationC public static final int STATE_FIELD_NUMBER = 8; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.Stream.State result = com.google.cloud.datastream.v1.Stream.State.valueOf(state_); + com.google.cloud.datastream.v1.Stream.State result = + com.google.cloud.datastream.v1.Stream.State.valueOf(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 @@ -2710,22 +3101,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.
@@ -2734,20 +3130,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 @@ -2755,21 +3155,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.
    * 
@@ -2777,9 +3182,10 @@ 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(); } @@ -2787,66 +3193,87 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBa public static final int ERRORS_FIELD_NUMBER = 9; 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; private volatile java.lang.Object customerManagedEncryptionKey_; /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -2854,7 +3281,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 @@ -2862,6 +3292,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.
@@ -2869,7 +3301,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 @@ -2878,14 +3313,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.
@@ -2893,17 +3329,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 { @@ -2912,6 +3349,7 @@ public java.lang.String getCustomerManagedEncryptionKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2923,8 +3361,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_); } @@ -2934,12 +3371,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_); } @@ -2959,10 +3392,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_); } unknownFields.writeTo(output); } @@ -2977,52 +3412,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3032,56 +3465,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: @@ -3148,140 +3571,146 @@ 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() @@ -3289,17 +3718,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -3348,9 +3777,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 @@ -3369,7 +3798,8 @@ 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); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; result.name_ = name_; @@ -3434,38 +3864,39 @@ public com.google.cloud.datastream.v1.Stream 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.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; @@ -3484,8 +3915,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()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -3517,9 +3947,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getErrorsFieldBuilder() : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getErrorsFieldBuilder() + : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -3531,17 +3962,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.unknownFields); onChanged(); @@ -3571,12 +4005,12 @@ public Builder mergeFrom( } 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() { @@ -3590,18 +4024,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; @@ -3610,20 +4046,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 { @@ -3631,54 +4068,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3686,39 +4130,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 createTimeBuilder_ != null || 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. */ 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) { @@ -3734,14 +4197,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(); onChanged(); @@ -3752,17 +4218,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3774,11 +4244,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() { if (createTimeBuilder_ == null) { @@ -3792,48 +4266,64 @@ 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() { - + onChanged(); 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_; @@ -3841,39 +4331,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3889,14 +4398,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(); onChanged(); @@ -3907,17 +4419,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3929,11 +4445,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() { if (updateTimeBuilder_ == null) { @@ -3947,69 +4467,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -4021,28 +4556,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -4050,11 +4587,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -4062,16 +4600,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -4079,12 +4618,11 @@ public 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(); } @@ -4092,81 +4630,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -4175,20 +4712,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 { @@ -4196,54 +4734,61 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -4251,39 +4796,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 sourceConfigBuilder_ != null || 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. */ 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) { @@ -4299,11 +4863,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) { @@ -4317,17 +4885,23 @@ 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 (sourceConfig_ != null) { sourceConfig_ = - com.google.cloud.datastream.v1.SourceConfig.newBuilder(sourceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.SourceConfig.newBuilder(sourceConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceConfig_ = value; } @@ -4339,11 +4913,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() { if (sourceConfigBuilder_ == null) { @@ -4357,48 +4935,64 @@ 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() { - + onChanged(); 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_; @@ -4406,39 +5000,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 destinationConfigBuilder_ != null || 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. */ 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) { @@ -4454,11 +5067,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) { @@ -4472,17 +5089,23 @@ 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 (destinationConfig_ != null) { destinationConfig_ = - com.google.cloud.datastream.v1.DestinationConfig.newBuilder(destinationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.DestinationConfig.newBuilder(destinationConfig_) + .mergeFrom(value) + .buildPartial(); } else { destinationConfig_ = value; } @@ -4494,11 +5117,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() { if (destinationConfigBuilder_ == null) { @@ -4512,48 +5139,65 @@ 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() { - + onChanged(); 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_; @@ -4561,51 +5205,65 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.Stream.State result = com.google.cloud.datastream.v1.Stream.State.valueOf(state_); + com.google.cloud.datastream.v1.Stream.State result = + com.google.cloud.datastream.v1.Stream.State.valueOf(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. */ @@ -4613,35 +5271,44 @@ public Builder setState(com.google.cloud.datastream.v1.Stream.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } 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 @@ -4649,12 +5316,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 @@ -4672,6 +5342,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll( } } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4693,6 +5365,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.
@@ -4712,6 +5386,8 @@ public Builder setBackfillAll(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4719,12 +5395,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;
         }
@@ -4740,6 +5421,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.
@@ -4764,6 +5447,8 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4771,10 +5456,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.
@@ -4783,7 +5471,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 {
@@ -4794,6 +5483,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBac
       }
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4802,32 +5493,45 @@ 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());
         backfillStrategy_ = null;
       }
       backfillStrategyCase_ = 101;
-      onChanged();;
+      onChanged();
+      ;
       return backfillAllBuilder_;
     }
 
     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 @@ -4835,11 +5539,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 @@ -4857,13 +5564,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(); @@ -4877,6 +5587,8 @@ public Builder setBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNon return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4895,18 +5607,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; } @@ -4922,6 +5643,8 @@ public Builder mergeBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillN return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4945,16 +5668,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.
      * 
@@ -4962,7 +5690,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 { @@ -4973,6 +5702,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBa } } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4980,42 +5711,57 @@ 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()); backfillStrategy_ = null; } backfillStrategyCase_ = 102; - onChanged();; + onChanged(); + ; return backfillNoneBuilder_; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000002; - } + } } 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) { @@ -5025,11 +5771,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) { @@ -5039,11 +5789,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) { @@ -5053,14 +5807,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(); @@ -5074,11 +5831,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) { @@ -5092,11 +5853,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) { @@ -5112,14 +5877,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(); @@ -5133,14 +5901,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()); @@ -5151,11 +5922,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) { @@ -5169,18 +5944,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); @@ -5188,11 +5966,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) { @@ -5205,11 +5987,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) { @@ -5222,39 +6008,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 { @@ -5262,49 +6059,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; @@ -5312,6 +6122,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.
@@ -5319,13 +6131,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_ & 0x00000004) != 0); } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5333,14 +6150,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; @@ -5349,6 +6168,8 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5356,16 +6177,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 { @@ -5373,6 +6195,8 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5380,21 +6204,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) { + public Builder setCustomerManagedEncryptionKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; customerManagedEncryptionKey_ = value; onChanged(); return this; } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5402,7 +6230,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() { @@ -5412,6 +6243,8 @@ public Builder clearCustomerManagedEncryptionKey() { return this; } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5419,24 +6252,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) { + public Builder setCustomerManagedEncryptionKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); bitField0_ |= 0x00000004; customerManagedEncryptionKey_ = 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); } @@ -5446,12 +6281,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(); } @@ -5460,16 +6295,16 @@ 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 { - return new Stream(input, extensionRegistry); - } - }; + 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 { + return new Stream(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5484,6 +6319,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java index b001795d..a7c69521 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java +++ b/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,16 +45,15 @@ 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; } + private StreamObject( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,86 +73,101 @@ private StreamObject( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - errors_.add( - input.readMessage(com.google.cloud.datastream.v1.Error.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.cloud.datastream.v1.BackfillJob.Builder subBuilder = null; - if (backfillJob_ != null) { - subBuilder = backfillJob_.toBuilder(); - } - backfillJob_ = input.readMessage(com.google.cloud.datastream.v1.BackfillJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(backfillJob_); - backfillJob_ = subBuilder.buildPartial(); + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.datastream.v1.Error.parser(), extensionRegistry)); + break; } - - break; - } - case 66: { - com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder subBuilder = null; - if (sourceObject_ != null) { - subBuilder = sourceObject_.toBuilder(); + case 58: + { + com.google.cloud.datastream.v1.BackfillJob.Builder subBuilder = null; + if (backfillJob_ != null) { + subBuilder = backfillJob_.toBuilder(); + } + backfillJob_ = + input.readMessage( + com.google.cloud.datastream.v1.BackfillJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(backfillJob_); + backfillJob_ = subBuilder.buildPartial(); + } + + break; } - sourceObject_ = input.readMessage(com.google.cloud.datastream.v1.SourceObjectIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceObject_); - sourceObject_ = subBuilder.buildPartial(); + case 66: + { + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder subBuilder = null; + if (sourceObject_ != null) { + subBuilder = sourceObject_.toBuilder(); + } + sourceObject_ = + input.readMessage( + com.google.cloud.datastream.v1.SourceObjectIdentifier.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceObject_); + sourceObject_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -143,8 +175,7 @@ private StreamObject( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -153,27 +184,33 @@ private StreamObject( makeExtensionsImmutable(); } } - 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; 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 @@ -182,29 +219,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 { @@ -215,11 +252,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 @@ -227,11 +268,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 @@ -239,11 +284,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() { @@ -253,11 +301,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 @@ -265,11 +317,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 @@ -277,11 +333,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() { @@ -291,11 +350,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -304,29 +366,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 { @@ -337,71 +399,93 @@ public java.lang.String getDisplayName() { public static final int ERRORS_FIELD_NUMBER = 6; 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 @@ -409,18 +493,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.
    * 
@@ -435,11 +526,14 @@ public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuild 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 @@ -447,18 +541,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.
    * 
@@ -471,6 +572,7 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -482,8 +584,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_); } @@ -518,27 +619,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -548,38 +644,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -621,118 +711,127 @@ 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() @@ -740,17 +839,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -792,9 +891,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 @@ -813,7 +912,8 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -854,38 +954,39 @@ public com.google.cloud.datastream.v1.StreamObject 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.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; @@ -926,9 +1027,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.StreamObject other) { 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_); } @@ -968,22 +1070,25 @@ public Builder mergeFrom( } 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; @@ -992,20 +1097,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 { @@ -1013,54 +1119,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1068,39 +1181,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1116,14 +1248,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(); onChanged(); @@ -1134,17 +1269,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1156,11 +1295,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() { if (createTimeBuilder_ == null) { @@ -1174,48 +1317,64 @@ 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() { - + onChanged(); 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_; @@ -1223,39 +1382,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1271,14 +1449,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(); onChanged(); @@ -1289,17 +1470,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1311,11 +1496,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() { if (updateTimeBuilder_ == null) { @@ -1329,48 +1518,64 @@ 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() { - + onChanged(); 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_; @@ -1378,18 +1583,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; @@ -1398,20 +1605,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 { @@ -1419,77 +1627,92 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } 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.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) { @@ -1499,11 +1722,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) { @@ -1513,11 +1740,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) { @@ -1527,14 +1758,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(); @@ -1548,11 +1782,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) { @@ -1566,11 +1804,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) { @@ -1586,14 +1828,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(); @@ -1607,14 +1852,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()); @@ -1625,11 +1873,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) { @@ -1643,18 +1895,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); @@ -1662,11 +1917,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) { @@ -1679,11 +1938,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) { @@ -1696,39 +1959,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 { @@ -1736,49 +2010,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_ & 0x00000001) != 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); errors_ = null; } return errorsBuilder_; @@ -1786,34 +2073,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 backfillJobBuilder_ != null || backfillJob_ != null; } /** + * + * *
      * 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.
      * 
@@ -1834,6 +2134,8 @@ public Builder setBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1852,6 +2154,8 @@ public Builder setBackfillJob( return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1862,7 +2166,9 @@ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value if (backfillJobBuilder_ == null) { if (backfillJob_ != null) { backfillJob_ = - com.google.cloud.datastream.v1.BackfillJob.newBuilder(backfillJob_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.BackfillJob.newBuilder(backfillJob_) + .mergeFrom(value) + .buildPartial(); } else { backfillJob_ = value; } @@ -1874,6 +2180,8 @@ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1892,6 +2200,8 @@ public Builder clearBackfillJob() { return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1899,11 +2209,13 @@ public Builder clearBackfillJob() { * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; */ public com.google.cloud.datastream.v1.BackfillJob.Builder getBackfillJobBuilder() { - + onChanged(); return getBackfillJobFieldBuilder().getBuilder(); } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1914,11 +2226,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.
      * 
@@ -1926,14 +2241,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_; @@ -1941,34 +2259,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 sourceObjectBuilder_ != null || sourceObject_ != null; } /** + * + * *
      * 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.
      * 
@@ -1989,6 +2320,8 @@ public Builder setSourceObject(com.google.cloud.datastream.v1.SourceObjectIdenti return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2007,6 +2340,8 @@ public Builder setSourceObject( return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2017,7 +2352,9 @@ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIden if (sourceObjectBuilder_ == null) { if (sourceObject_ != null) { sourceObject_ = - com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder(sourceObject_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder(sourceObject_) + .mergeFrom(value) + .buildPartial(); } else { sourceObject_ = value; } @@ -2029,6 +2366,8 @@ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIden return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2047,6 +2386,8 @@ public Builder clearSourceObject() { return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2054,26 +2395,32 @@ public Builder clearSourceObject() { * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; */ public com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder getSourceObjectBuilder() { - + onChanged(); 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.
      * 
@@ -2081,21 +2428,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); } @@ -2105,12 +2455,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(); } @@ -2119,16 +2469,16 @@ 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 { - return new StreamObject(input, extensionRegistry); - } - }; + 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 { + return new StreamObject(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2143,6 +2493,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.StreamObject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java index 1551449c..b99264eb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java index 7a4ed6ea..0224be64 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java +++ b/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.
    * 
@@ -122,135 +168,182 @@ boolean containsLabels( */ /* 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.
@@ -261,24 +354,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.
    * 
@@ -288,50 +389,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.
@@ -339,11 +459,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.
@@ -351,11 +476,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.
@@ -363,11 +493,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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java index 2df6502c..fba22a37 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java @@ -1,40 +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/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; } + private UpdateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,55 +71,61 @@ private UpdateConnectionProfileRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); + requestId_ = s; + break; } - connectionProfile_ = input.readMessage(com.google.cloud.datastream.v1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + case 32: + { + validateOnly_ = input.readBool(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 32: { - - validateOnly_ = input.readBool(); - break; - } - case 40: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,29 +133,33 @@ private UpdateConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
@@ -140,7 +168,9 @@ private UpdateConnectionProfileRequest(
    * 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 @@ -148,6 +178,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.
@@ -156,7 +188,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 @@ -164,6 +198,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.
@@ -172,7 +208,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() { @@ -182,11 +219,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 @@ -194,23 +236,34 @@ 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() { @@ -220,6 +273,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr public static final int REQUEST_ID_FIELD_NUMBER = 3; 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
@@ -235,6 +290,7 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -243,14 +299,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
@@ -266,16 +323,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 { @@ -286,12 +342,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; 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 @@ -302,11 +361,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; 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 @@ -315,6 +377,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +389,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()); } @@ -353,23 +415,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,29 +437,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,128 +478,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) + unknownFields.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() @@ -553,16 +615,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -588,13 +649,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(); } @@ -609,7 +671,8 @@ 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); + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = + new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -631,38 +694,39 @@ public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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; @@ -670,7 +734,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()); } @@ -706,7 +772,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -718,8 +786,13 @@ public Builder mergeFrom( 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.
@@ -728,13 +801,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -743,17 +820,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.
@@ -762,7 +845,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) { @@ -778,6 +862,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.
@@ -786,10 +872,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(); onChanged(); @@ -800,6 +886,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.
@@ -808,13 +896,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -826,6 +915,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.
@@ -834,7 +925,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() { if (updateMaskBuilder_ == null) { @@ -848,6 +940,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.
@@ -856,14 +950,17 @@ 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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -872,17 +969,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.
@@ -891,17 +992,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_; @@ -909,39 +1014,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 connectionProfileBuilder_ != null || 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. */ 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) { @@ -957,11 +1081,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) { @@ -975,17 +1103,23 @@ 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 (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.datastream.v1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.ConnectionProfile.newBuilder(connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -997,11 +1131,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() { if (connectionProfileBuilder_ == null) { @@ -1015,48 +1153,65 @@ 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() { - + onChanged(); 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_; @@ -1064,6 +1219,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
@@ -1079,13 +1236,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; @@ -1094,6 +1251,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
@@ -1109,15 +1268,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 { @@ -1125,6 +1283,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
@@ -1140,20 +1300,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1169,15 +1331,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1193,29 +1358,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -1223,44 +1391,53 @@ 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; 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() { - + validateOnly_ = false; onChanged(); 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 @@ -1268,37 +1445,43 @@ 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; 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() { - + force_ = false; 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 +1491,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(); } @@ -1322,16 +1506,16 @@ 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 { - return new UpdateConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1346,6 +1530,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java index 585f35c1..cdd17316 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java index a7fc35f7..bf1bf6f2 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java @@ -1,40 +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.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; } + private UpdateStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,55 +70,61 @@ private UpdateStreamRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datastream.v1.Stream.Builder subBuilder = null; + if (stream_ != null) { + subBuilder = stream_.toBuilder(); + } + stream_ = + input.readMessage( + com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stream_); + stream_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.datastream.v1.Stream.Builder subBuilder = null; - if (stream_ != null) { - subBuilder = stream_.toBuilder(); + requestId_ = s; + break; } - stream_ = input.readMessage(com.google.cloud.datastream.v1.Stream.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stream_); - stream_ = subBuilder.buildPartial(); + case 32: + { + validateOnly_ = input.readBool(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 32: { - - validateOnly_ = input.readBool(); - break; - } - case 40: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,29 +132,33 @@ private UpdateStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
@@ -140,7 +167,9 @@ private UpdateStreamRequest(
    * 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 @@ -148,6 +177,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.
@@ -156,7 +187,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 @@ -164,6 +197,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.
@@ -172,7 +207,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() { @@ -182,11 +218,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 @@ -194,11 +234,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 @@ -206,11 +250,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() { @@ -220,6 +267,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 3; 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
@@ -235,6 +284,7 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -243,14 +293,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
@@ -266,16 +317,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 { @@ -286,12 +336,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; 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 @@ -302,11 +355,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_; /** + * + * *
    * Optional. Update the stream without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -315,6 +371,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +383,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()); } @@ -353,23 +409,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,29 +431,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,128 +472,135 @@ 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) + unknownFields.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() @@ -553,16 +608,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -588,9 +642,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 @@ -609,7 +663,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); + com.google.cloud.datastream.v1.UpdateStreamRequest result = + new com.google.cloud.datastream.v1.UpdateStreamRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -631,38 +686,39 @@ public com.google.cloud.datastream.v1.UpdateStreamRequest 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.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; @@ -670,7 +726,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()); } @@ -706,7 +763,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1.UpdateStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1.UpdateStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -718,8 +776,13 @@ public Builder mergeFrom( 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.
@@ -728,13 +791,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -743,17 +810,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.
@@ -762,7 +835,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) { @@ -778,6 +852,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.
@@ -786,10 +862,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(); onChanged(); @@ -800,6 +876,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.
@@ -808,13 +886,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -826,6 +905,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.
@@ -834,7 +915,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() { if (updateMaskBuilder_ == null) { @@ -848,6 +930,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.
@@ -856,14 +940,17 @@ 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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -872,17 +959,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.
@@ -891,17 +982,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_; @@ -909,39 +1004,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 streamBuilder_ != null || 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. */ 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) { @@ -957,14 +1071,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(); onChanged(); @@ -975,17 +1092,23 @@ 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 (stream_ != null) { stream_ = - com.google.cloud.datastream.v1.Stream.newBuilder(stream_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1.Stream.newBuilder(stream_) + .mergeFrom(value) + .buildPartial(); } else { stream_ = value; } @@ -997,11 +1120,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() { if (streamBuilder_ == null) { @@ -1015,48 +1142,64 @@ 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() { - + onChanged(); 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_; @@ -1064,6 +1207,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
@@ -1079,13 +1224,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; @@ -1094,6 +1239,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
@@ -1109,15 +1256,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 { @@ -1125,6 +1271,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
@@ -1140,20 +1288,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1169,15 +1319,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1193,29 +1346,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -1223,44 +1379,53 @@ 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; 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() { - + validateOnly_ = false; onChanged(); 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 @@ -1268,37 +1433,43 @@ 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; 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() { - + force_ = false; 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 +1479,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(); } @@ -1322,16 +1493,16 @@ 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 { - return new UpdateStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1346,6 +1517,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java index b808f835..3daa8f06 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java index d3392f07..59956e64 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java +++ b/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,16 +46,15 @@ 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; } + private Validation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,40 +74,47 @@ private Validation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + description_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - state_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - message_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + state_ = rawValue; + break; } - message_.add( - input.readMessage(com.google.cloud.datastream.v1.ValidationMessage.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + message_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + message_.add( + input.readMessage( + com.google.cloud.datastream.v1.ValidationMessage.parser(), + extensionRegistry)); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,8 +122,7 @@ private Validation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { message_ = java.util.Collections.unmodifiableList(message_); @@ -108,29 +131,35 @@ private Validation( makeExtensionsImmutable(); } } - 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.
      * 
@@ -139,6 +168,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Validation did not execute.
      * 
@@ -147,6 +178,8 @@ public enum State */ NOT_EXECUTED(1), /** + * + * *
      * Validation failed.
      * 
@@ -155,6 +188,8 @@ public enum State */ FAILED(2), /** + * + * *
      * Validation passed.
      * 
@@ -166,6 +201,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -174,6 +211,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Validation did not execute.
      * 
@@ -182,6 +221,8 @@ public enum State */ public static final int NOT_EXECUTED_VALUE = 1; /** + * + * *
      * Validation failed.
      * 
@@ -190,6 +231,8 @@ public enum State */ public static final int FAILED_VALUE = 2; /** + * + * *
      * Validation passed.
      * 
@@ -198,7 +241,6 @@ public enum State */ public static final int PASSED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -223,50 +265,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; @@ -286,11 +329,14 @@ private State(int value) { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -299,29 +345,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 { @@ -332,33 +378,44 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.Validation.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.Validation.State result = com.google.cloud.datastream.v1.Validation.State.valueOf(state_); + com.google.cloud.datastream.v1.Validation.State result = + com.google.cloud.datastream.v1.Validation.State.valueOf(state_); return result == null ? com.google.cloud.datastream.v1.Validation.State.UNRECOGNIZED : result; } public static final int MESSAGE_FIELD_NUMBER = 3; private java.util.List message_; /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -370,6 +427,8 @@ public java.util.List getMessa return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -377,11 +436,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.
    * 
@@ -393,6 +454,8 @@ public int getMessageCount() { return message_.size(); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -404,6 +467,8 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { return message_.get(index); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -411,19 +476,21 @@ 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; private volatile java.lang.Object code_; /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -432,29 +499,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 { @@ -463,6 +530,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,8 +542,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_); } @@ -501,12 +568,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_); @@ -519,20 +584,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -559,118 +622,127 @@ 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() @@ -678,17 +750,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMessageFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -708,9 +780,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 @@ -729,7 +801,8 @@ 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); int from_bitField0_ = bitField0_; result.description_ = description_; result.state_ = state_; @@ -751,38 +824,39 @@ public com.google.cloud.datastream.v1.Validation 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.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; @@ -816,9 +890,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1.Validation other) { messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000001); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessageFieldBuilder() : null; + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageFieldBuilder() + : null; } else { messageBuilder_.addAllMessages(other.message_); } @@ -856,22 +931,25 @@ public Builder mergeFrom( } 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; @@ -880,20 +958,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 { @@ -901,54 +980,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -956,51 +1042,65 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.Validation.State result = com.google.cloud.datastream.v1.Validation.State.valueOf(state_); + com.google.cloud.datastream.v1.Validation.State result = + com.google.cloud.datastream.v1.Validation.State.valueOf(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. */ @@ -1008,39 +1108,49 @@ public Builder setState(com.google.cloud.datastream.v1.Validation.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1.Validation.State state = 2; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } private java.util.List message_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - message_ = new java.util.ArrayList(message_); + message_ = + new java.util.ArrayList(message_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -1055,6 +1165,8 @@ public java.util.List getMessa } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1069,6 +1181,8 @@ public int getMessageCount() { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1083,14 +1197,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(); @@ -1104,6 +1219,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1122,6 +1239,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1142,14 +1261,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(); @@ -1163,6 +1283,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1181,6 +1303,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1199,6 +1323,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1209,8 +1335,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); @@ -1218,6 +1343,8 @@ public Builder addAllMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1235,6 +1362,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1252,17 +1381,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.
      * 
@@ -1272,19 +1404,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 { @@ -1292,6 +1427,8 @@ public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBui } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1299,42 +1436,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_ & 0x00000001) != 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; @@ -1342,18 +1485,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; @@ -1362,20 +1507,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 { @@ -1383,61 +1529,68 @@ 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) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); 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) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = 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); } @@ -1447,12 +1600,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(); } @@ -1461,16 +1614,16 @@ 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 { - return new Validation(input, extensionRegistry); - } - }; + 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 { + return new Validation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1485,6 +1638,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java index 7d113f21..95a4c676 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java +++ b/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,16 +45,15 @@ 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; } + private ValidationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +73,49 @@ private ValidationMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - level_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + level_ = rawValue; + break; } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,48 +123,52 @@ private ValidationMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -151,6 +177,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -159,6 +187,8 @@ public enum Level */ WARNING(1), /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -170,6 +200,8 @@ public enum Level ; /** + * + * *
      * Unspecified level.
      * 
@@ -178,6 +210,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -186,6 +220,8 @@ public enum Level */ public static final int WARNING_VALUE = 1; /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -194,7 +230,6 @@ public enum Level */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,49 +254,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; @@ -281,11 +316,14 @@ private Level(int value) { public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The message. */ @java.lang.Override @@ -294,29 +332,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 { @@ -327,49 +365,59 @@ public java.lang.String getMessage() { public static final int LEVEL_FIELD_NUMBER = 2; private int level_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationMessage.Level getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.ValidationMessage.Level result = com.google.cloud.datastream.v1.ValidationMessage.Level.valueOf(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.valueOf(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, + ""); } - 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_; } @@ -378,28 +426,30 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Additional metadata related to the result.
    * 
* * 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.
    * 
@@ -407,11 +457,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -419,16 +470,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, 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.
    * 
@@ -436,12 +488,11 @@ public 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(); } @@ -451,11 +502,14 @@ public java.lang.String getMetadataOrThrow( public static final int CODE_FIELD_NUMBER = 4; private volatile java.lang.Object code_; /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -464,29 +518,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 { @@ -495,6 +549,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -506,20 +561,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_); } @@ -535,19 +586,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_); @@ -560,20 +611,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -600,140 +649,147 @@ 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() @@ -741,16 +797,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -765,9 +820,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 @@ -786,7 +841,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); + com.google.cloud.datastream.v1.ValidationMessage result = + new com.google.cloud.datastream.v1.ValidationMessage(this); int from_bitField0_ = bitField0_; result.message_ = message_; result.level_ = level_; @@ -801,38 +857,39 @@ public com.google.cloud.datastream.v1.ValidationMessage 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.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; @@ -840,7 +897,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_; onChanged(); @@ -848,8 +906,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()); if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -882,22 +939,25 @@ public Builder mergeFrom( } 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; @@ -906,20 +966,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 { @@ -927,54 +988,61 @@ 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) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); 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) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -982,51 +1050,67 @@ 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. */ public Builder setLevelValue(int value) { - + level_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1.ValidationMessage.Level result = com.google.cloud.datastream.v1.ValidationMessage.Level.valueOf(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.valueOf(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. */ @@ -1034,42 +1118,45 @@ public Builder setLevel(com.google.cloud.datastream.v1.ValidationMessage.Level v if (value == null) { throw new NullPointerException(); } - + level_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1.ValidationMessage.Level level = 2; + * * @return This builder for chaining. */ public Builder clearLevel() { - + level_ = 0; onChanged(); 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() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; 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(); @@ -1081,28 +1168,30 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Additional metadata related to the result.
      * 
* * 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.
      * 
@@ -1110,11 +1199,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1122,16 +1212,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, 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.
      * 
@@ -1139,12 +1230,11 @@ public 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(); } @@ -1152,81 +1242,80 @@ public java.lang.String getMetadataOrThrow( } public Builder clearMetadata() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + internalGetMutableMetadata().getMutableMap().put(key, value); 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); 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; @@ -1235,20 +1324,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 { @@ -1256,61 +1346,68 @@ 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) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); 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) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = 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); } @@ -1320,12 +1417,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(); } @@ -1334,16 +1431,16 @@ 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 { - return new ValidationMessage(input, extensionRegistry); - } - }; + 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 { + return new ValidationMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1358,6 +1455,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java index 60c4fbda..aed24294 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java +++ b/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.
    * 
@@ -87,38 +117,43 @@ boolean containsMetadata( */ /* 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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java index 7ab98b63..83411d0e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java index 34431db2..b3d88eb4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java @@ -1,40 +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; } + private ValidationResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private ValidationResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validations_.add( + input.readMessage( + com.google.cloud.datastream.v1.Validation.parser(), extensionRegistry)); + break; } - validations_.add( - input.readMessage(com.google.cloud.datastream.v1.Validation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private ValidationResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); @@ -87,22 +105,27 @@ private ValidationResult( makeExtensionsImmutable(); } } - 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; private java.util.List validations_; /** + * + * *
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -115,6 +138,8 @@ public java.util.List getValidationsL
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -123,11 +148,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).
@@ -140,6 +167,8 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -152,6 +181,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).
@@ -160,12 +191,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;
@@ -177,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 {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -192,8 +222,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +232,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -232,118 +261,127 @@ 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() @@ -351,17 +389,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValidationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +413,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 @@ -396,7 +434,8 @@ 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); int from_bitField0_ = bitField0_; if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +454,39 @@ public com.google.cloud.datastream.v1.ValidationResult 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.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; @@ -454,7 +494,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()) { @@ -473,9 +514,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_); } @@ -509,21 +551,29 @@ public Builder mergeFrom( } 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).
@@ -539,6 +589,8 @@ public java.util.List getValidationsL
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -554,6 +606,8 @@ public int getValidationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -569,6 +623,8 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -576,8 +632,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();
@@ -591,6 +646,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -610,6 +667,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -631,6 +690,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).
@@ -638,8 +699,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();
@@ -653,6 +713,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -672,6 +734,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -691,6 +755,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -702,8 +768,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);
@@ -711,6 +776,8 @@ public Builder addAllValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -729,6 +796,8 @@ public Builder clearValidations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -747,6 +816,8 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -754,11 +825,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).
@@ -766,14 +838,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).
@@ -781,8 +855,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 {
@@ -790,6 +864,8 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -798,10 +874,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).
@@ -809,12 +887,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).
@@ -822,27 +901,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);
     }
 
@@ -852,12 +934,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();
   }
@@ -866,16 +948,16 @@ 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 {
-      return new ValidationResult(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new ValidationResult(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +972,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
similarity index 66%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
index bc914cee..62248221 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java
+++ b/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/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
similarity index 69%
rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
index a0aac895..e41e5fec 100644
--- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java
+++ b/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,16 +45,15 @@ 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;
   }
+
   private VpcPeeringConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private VpcPeeringConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vpc_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              vpc_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            subnet_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              subnet_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,35 +100,42 @@ private VpcPeeringConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -118,30 +144,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 { @@ -152,11 +180,14 @@ public java.lang.String getVpc() { public static final int SUBNET_FIELD_NUMBER = 2; 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 @@ -165,29 +196,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 { @@ -196,6 +227,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +239,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_); } @@ -238,17 +269,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,97 +299,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.
@@ -367,21 +404,23 @@ 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()
@@ -389,16 +428,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -410,9 +448,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
@@ -431,7 +469,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);
+      com.google.cloud.datastream.v1.VpcPeeringConfig result =
+          new com.google.cloud.datastream.v1.VpcPeeringConfig(this);
       result.vpc_ = vpc_;
       result.subnet_ = subnet_;
       onBuilt();
@@ -442,38 +481,39 @@ public com.google.cloud.datastream.v1.VpcPeeringConfig 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.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;
@@ -481,7 +521,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_;
         onChanged();
@@ -521,19 +562,23 @@ public Builder mergeFrom(
 
     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; @@ -542,21 +587,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 { @@ -564,57 +612,70 @@ 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) { + public Builder setVpc(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpc_ = value; 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() { - + vpc_ = getDefaultInstance().getVpc(); 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) = { ... } + * + * * @param value The bytes for vpc to set. * @return This builder for chaining. */ - public Builder setVpcBytes( - com.google.protobuf.ByteString value) { + public Builder setVpcBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpc_ = value; onChanged(); return this; @@ -622,18 +683,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; @@ -642,20 +705,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 { @@ -663,61 +727,68 @@ 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) { + public Builder setSubnet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; 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() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); 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) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = 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); } @@ -727,12 +798,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(); } @@ -741,16 +812,16 @@ 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 { - return new VpcPeeringConfig(input, extensionRegistry); - } - }; + 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 { + return new VpcPeeringConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -765,6 +836,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java rename to proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java index d4f2223f..ceb3ef38 100644 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java +++ b/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/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto rename to proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto rename to proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java index 5800cac5..7cdce13f 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java @@ -1,39 +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; /** + * + * *
  * 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; } + private AvroFileFormat( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private AvroFileFormat( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private AvroFileFormat( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,126 @@ 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() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,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 @@ -297,7 +324,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; } @@ -306,38 +334,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; @@ -345,7 +374,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.unknownFields); onChanged(); return this; @@ -365,7 +395,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.AvroFileFormat) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.AvroFileFormat) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +405,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +417,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(); } @@ -400,16 +431,16 @@ 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 { - return new AvroFileFormat(input, extensionRegistry); - } - }; + 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 { + return new AvroFileFormat(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +455,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java new file mode 100644 index 00000000..5950a815 --- /dev/null +++ b/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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java new file mode 100644 index 00000000..f354bba7 --- /dev/null +++ b/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\377\001\n$com.google.cloud.datastream.v1alpha" + + "1B\035CloudDatastreamResourcesProtoP\001ZJgoog" + + "le.golang.org/genproto/googleapis/cloud/" + + "datastream/v1alpha1;datastream\252\002 Google." + + "Cloud.Datastream.V1Alpha1\312\002 Google\\Cloud" + + "\\Datastream\\V1alpha1\352\002#Google::Cloud::Da" + + "tastream::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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java new file mode 100644 index 00000000..02306caf --- /dev/null +++ b/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,16 +36,15 @@ 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; } + private ConnectionProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -51,162 +64,209 @@ private ConnectionProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 802: { - com.google.cloud.datastream.v1alpha1.OracleProfile.Builder subBuilder = null; - if (profileCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_).toBuilder(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - profile_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); - profile_ = subBuilder.buildPartial(); - } - profileCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1alpha1.GcsProfile.Builder subBuilder = null; - if (profileCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_).toBuilder(); - } - profile_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.GcsProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); - profile_ = subBuilder.buildPartial(); - } - profileCase_ = 101; - break; - } - case 818: { - com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder subBuilder = null; - if (profileCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_).toBuilder(); + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; } - profile_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); - profile_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1alpha1.OracleProfile.Builder subBuilder = null; + if (profileCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 100; + break; } - profileCase_ = 102; - break; - } - case 1602: { - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder subBuilder = null; - if (connectivityCase_ == 200) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1alpha1.GcsProfile.Builder subBuilder = null; + if (profileCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.GcsProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 101; + break; } - connectivity_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); - connectivity_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder subBuilder = null; + if (profileCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_).toBuilder(); + } + profile_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); + profile_ = subBuilder.buildPartial(); + } + profileCase_ = 102; + break; } - connectivityCase_ = 200; - break; - } - case 1610: { - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 201) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_).toBuilder(); + case 1602: + { + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder subBuilder = null; + if (connectivityCase_ == 200) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) + .toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 200; + break; } - connectivity_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); + case 1610: + { + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder subBuilder = + null; + if (connectivityCase_ == 201) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + connectivity_) + .toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 201; + break; } - connectivityCase_ = 201; - break; - } - case 1618: { - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 202) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_).toBuilder(); + case 1618: + { + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder subBuilder = + null; + if (connectivityCase_ == 202) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) + connectivity_) + .toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) + connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 202; + break; } - connectivity_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); + case 1626: + { + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder subBuilder = null; + if (connectivityCase_ == 203) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) + .toBuilder(); + } + connectivity_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.PrivateConnectivity.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + connectivity_ = subBuilder.buildPartial(); + } + connectivityCase_ = 203; + break; } - connectivityCase_ = 202; - break; - } - case 1626: { - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder subBuilder = null; - if (connectivityCase_ == 203) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_).toBuilder(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - connectivity_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.PrivateConnectivity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); - connectivity_ = subBuilder.buildPartial(); - } - connectivityCase_ = 203; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -214,48 +274,52 @@ private ConnectionProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -271,28 +335,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), @@ -300,6 +370,7 @@ public enum ConnectivityCase PRIVATE_CONNECTIVITY(203), CONNECTIVITY_NOT_SET(0); private final int value; + private ConnectivityCase(int value) { this.value = value; } @@ -315,33 +386,41 @@ 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; 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 @@ -350,29 +429,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 { @@ -383,11 +462,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 @@ -395,11 +478,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 @@ -407,11 +494,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() { @@ -421,11 +511,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 @@ -433,11 +527,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 @@ -445,11 +543,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() { @@ -457,24 +558,23 @@ 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, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { + 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, + ""); + } + + 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_; } @@ -483,28 +583,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -512,11 +614,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -524,16 +627,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -541,12 +644,11 @@ public 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(); } @@ -556,11 +658,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -569,29 +674,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 { @@ -601,11 +706,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 @@ -613,21 +721,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.
    * 
@@ -637,18 +750,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 @@ -656,21 +772,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.
    * 
@@ -680,18 +801,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 @@ -699,21 +823,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.
    * 
@@ -723,18 +852,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 @@ -742,21 +874,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.
    * 
@@ -764,20 +901,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 @@ -785,42 +928,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 @@ -828,42 +987,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 @@ -871,21 +1044,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.
    * 
@@ -893,14 +1071,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; @@ -912,8 +1092,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_); } @@ -923,12 +1102,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_); } @@ -942,16 +1117,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_); } unknownFields.writeTo(output); } @@ -966,53 +1145,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1022,42 +1208,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: @@ -1065,20 +1244,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: @@ -1152,135 +1328,139 @@ 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() @@ -1288,16 +1468,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1326,9 +1505,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 @@ -1347,7 +1526,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); + com.google.cloud.datastream.v1alpha1.ConnectionProfile result = + new com.google.cloud.datastream.v1alpha1.ConnectionProfile(this); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -1422,38 +1602,39 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile 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.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; @@ -1461,7 +1642,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_; onChanged(); @@ -1472,49 +1654,57 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; 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.unknownFields); onChanged(); @@ -1535,7 +1725,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ConnectionProfile) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ConnectionProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1544,12 +1735,12 @@ public Builder mergeFrom( } 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() { @@ -1561,10 +1752,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() { @@ -1578,18 +1768,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; @@ -1598,20 +1790,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 { @@ -1619,54 +1812,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1674,39 +1874,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1722,14 +1941,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(); onChanged(); @@ -1740,17 +1962,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1762,11 +1988,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() { if (createTimeBuilder_ == null) { @@ -1780,48 +2010,64 @@ 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() { - + onChanged(); 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_; @@ -1829,39 +2075,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1877,14 +2142,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(); onChanged(); @@ -1895,17 +2163,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1917,11 +2189,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() { if (updateTimeBuilder_ == null) { @@ -1935,69 +2211,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -2009,28 +2300,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -2038,11 +2331,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -2050,16 +2344,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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,12 +2362,11 @@ public 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(); } @@ -2080,81 +2374,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -2163,20 +2456,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 { @@ -2184,67 +2478,80 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; } 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 @@ -2252,11 +2559,14 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override @@ -2274,6 +2584,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2294,6 +2606,8 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfi return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2312,6 +2626,8 @@ public Builder setOracleProfile( return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2320,10 +2636,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; } @@ -2339,6 +2659,8 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OraclePro return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2362,6 +2684,8 @@ public Builder clearOracleProfile() { return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2372,6 +2696,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile.Builder getOracleProfi return getOracleProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2390,6 +2716,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2397,32 +2725,44 @@ 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()); profile_ = null; } profileCase_ = 100; - onChanged();; + onChanged(); + ; return oracleProfileBuilder_; } 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 @@ -2430,11 +2770,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 @@ -2452,6 +2795,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2472,6 +2817,8 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile val return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2490,6 +2837,8 @@ public Builder setGcsProfile( return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2498,10 +2847,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; } @@ -2517,6 +2869,8 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile v return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2540,6 +2894,8 @@ public Builder clearGcsProfile() { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2550,6 +2906,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile.Builder getGcsProfileBuil return getGcsProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2568,6 +2926,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2575,32 +2935,44 @@ 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()); profile_ = null; } profileCase_ = 101; - onChanged();; + onChanged(); + ; return gcsProfileBuilder_; } 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 @@ -2608,11 +2980,14 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override @@ -2630,6 +3005,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2650,6 +3027,8 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2668,6 +3047,8 @@ public Builder setMysqlProfile( return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2676,10 +3057,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; } @@ -2695,6 +3079,8 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfi return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2718,6 +3104,8 @@ public Builder clearMysqlProfile() { return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2728,6 +3116,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder getMysqlProfile return getMysqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2746,6 +3136,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2753,32 +3145,44 @@ 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()); profile_ = null; } profileCase_ = 102; - onChanged();; + onChanged(); + ; return mysqlProfileBuilder_; } 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 @@ -2786,11 +3190,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 @@ -2808,13 +3215,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(); @@ -2828,6 +3238,8 @@ public Builder setNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnecti return this; } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2846,18 +3258,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; } @@ -2873,6 +3293,8 @@ public Builder mergeNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnec return this; } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2896,16 +3318,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.
      * 
@@ -2913,7 +3340,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 { @@ -2924,6 +3352,8 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getN } } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2931,32 +3361,47 @@ 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(); + 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>( + 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()); connectivity_ = null; } connectivityCase_ = 200; - onChanged();; + onChanged(); + ; return noConnectivityBuilder_; } 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 @@ -2964,35 +3409,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(); @@ -3006,11 +3464,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) { @@ -3024,18 +3486,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; } @@ -3051,11 +3524,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) { @@ -3074,67 +3551,97 @@ 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(); + 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>( + 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()); connectivity_ = null; } connectivityCase_ = 201; - onChanged();; + onChanged(); + ; return staticServiceIpConnectivityBuilder_; } 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 @@ -3142,35 +3649,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(); @@ -3184,11 +3704,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) { @@ -3202,18 +3726,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; } @@ -3229,11 +3764,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) { @@ -3252,67 +3791,97 @@ 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(); + 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>( + 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()); connectivity_ = null; } connectivityCase_ = 202; - onChanged();; + onChanged(); + ; return forwardSshConnectivityBuilder_; } 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 @@ -3320,11 +3889,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 @@ -3342,13 +3915,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(); @@ -3362,11 +3939,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) { @@ -3380,18 +3960,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; } @@ -3407,11 +3995,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) { @@ -3430,24 +4021,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 { @@ -3458,33 +4057,43 @@ 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(); + 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>( + 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()); connectivity_ = null; } connectivityCase_ = 203; - onChanged();; + 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); } @@ -3494,12 +4103,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(); } @@ -3508,16 +4117,16 @@ 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 { - return new ConnectionProfile(input, extensionRegistry); - } - }; + 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 { + return new ConnectionProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3532,6 +4141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java similarity index 74% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java index 0f4ac0bd..2813c95c 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java +++ b/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.
    * 
@@ -122,60 +168,73 @@ boolean containsLabels( */ /* 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.
    * 
@@ -185,24 +244,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.
    * 
@@ -212,24 +279,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.
    * 
@@ -239,24 +314,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.
    * 
@@ -266,87 +349,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java index f7be18ab..bb43bd97 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java +++ b/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,16 +38,15 @@ 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; } + private CreateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -51,44 +65,51 @@ private CreateConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - connectionProfileId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); + parent_ = s; + break; } - connectionProfile_ = input.readMessage(com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + connectionProfileId_ = s; + break; } + case 26: + { + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,34 +117,41 @@ private CreateConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -132,29 +160,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 { @@ -165,11 +195,14 @@ public java.lang.String getParent() { public static final int CONNECTION_PROFILE_ID_FIELD_NUMBER = 2; 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 @@ -178,29 +211,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 { @@ -211,11 +244,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 @@ -223,32 +261,46 @@ 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() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { return getConnectionProfile(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -264,6 +316,7 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -272,14 +325,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
@@ -295,16 +349,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 { @@ -313,6 +366,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +378,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_); } @@ -354,8 +407,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_); @@ -368,24 +420,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,130 +462,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -556,14 +612,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 @@ -577,7 +635,8 @@ 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); + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest(this); result.parent_ = parent_; result.connectionProfileId_ = connectionProfileId_; if (connectionProfileBuilder_ == null) { @@ -594,46 +653,51 @@ public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -668,7 +732,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,18 +746,22 @@ public Builder mergeFrom( 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; @@ -700,20 +770,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 { @@ -721,54 +794,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -776,18 +862,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; @@ -796,20 +884,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 { @@ -817,54 +906,61 @@ 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) { + public Builder setConnectionProfileId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + connectionProfileId_ = value; 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() { - + connectionProfileId_ = getDefaultInstance().getConnectionProfileId(); onChanged(); 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) { + public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + connectionProfileId_ = value; onChanged(); return this; @@ -872,41 +968,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 connectionProfileBuilder_ != null || 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. */ 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(); @@ -920,11 +1036,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) { @@ -938,17 +1058,24 @@ 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 (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder(connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -960,11 +1087,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() { if (connectionProfileBuilder_ == null) { @@ -978,48 +1109,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() { + 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_; @@ -1027,6 +1176,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
@@ -1042,13 +1193,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; @@ -1057,6 +1208,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
@@ -1072,15 +1225,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 { @@ -1088,6 +1240,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
@@ -1103,20 +1257,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1132,15 +1288,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1156,23 +1315,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1182,30 +1341,32 @@ 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 { - return new CreateConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,9 +1378,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java index 3e8e678d..44f0c313 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java index 90098ffa..2b47cb9c 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java +++ b/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,16 +38,15 @@ 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; } + private CreatePrivateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -51,44 +65,51 @@ private CreatePrivateConnectionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - privateConnectionId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder subBuilder = null; - if (privateConnection_ != null) { - subBuilder = privateConnection_.toBuilder(); + parent_ = s; + break; } - privateConnection_ = input.readMessage(com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(privateConnection_); - privateConnection_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + privateConnectionId_ = s; + break; } + case 26: + { + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder subBuilder = null; + if (privateConnection_ != null) { + subBuilder = privateConnection_.toBuilder(); + } + privateConnection_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateConnection_); + privateConnection_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,34 +117,41 @@ private CreatePrivateConnectionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -132,29 +160,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 { @@ -165,11 +195,14 @@ public java.lang.String getParent() { public static final int PRIVATE_CONNECTION_ID_FIELD_NUMBER = 2; 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 @@ -178,29 +211,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 { @@ -211,11 +244,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 @@ -223,32 +261,46 @@ 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() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder + getPrivateConnectionOrBuilder() { return getPrivateConnection(); } public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -264,6 +316,7 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivat
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -272,14 +325,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
@@ -295,16 +349,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 { @@ -313,6 +366,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +378,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_); } @@ -354,8 +407,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_); @@ -368,24 +420,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,130 +462,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -556,14 +612,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 @@ -577,7 +635,8 @@ 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); + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest result = + new com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest(this); result.parent_ = parent_; result.privateConnectionId_ = privateConnectionId_; if (privateConnectionBuilder_ == null) { @@ -594,46 +653,51 @@ public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -668,7 +732,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -680,18 +746,22 @@ public Builder mergeFrom( 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; @@ -700,20 +770,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 { @@ -721,54 +794,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -776,18 +862,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; @@ -796,20 +884,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 { @@ -817,54 +906,61 @@ 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) { + public Builder setPrivateConnectionId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateConnectionId_ = value; 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() { - + privateConnectionId_ = getDefaultInstance().getPrivateConnectionId(); onChanged(); 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) { + public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnectionId_ = value; onChanged(); return this; @@ -872,41 +968,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 privateConnectionBuilder_ != null || 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. */ 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(); @@ -920,11 +1036,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) { @@ -938,17 +1058,24 @@ 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 (privateConnection_ != null) { privateConnection_ = - com.google.cloud.datastream.v1alpha1.PrivateConnection.newBuilder(privateConnection_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.PrivateConnection.newBuilder(privateConnection_) + .mergeFrom(value) + .buildPartial(); } else { privateConnection_ = value; } @@ -960,11 +1087,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() { if (privateConnectionBuilder_ == null) { @@ -978,48 +1109,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() { + 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_; @@ -1027,6 +1176,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
@@ -1042,13 +1193,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; @@ -1057,6 +1208,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
@@ -1072,15 +1225,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 { @@ -1088,6 +1240,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
@@ -1103,20 +1257,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1132,15 +1288,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1156,23 +1315,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1182,30 +1341,32 @@ 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 { - return new CreatePrivateConnectionRequest(input, extensionRegistry); - } - }; + 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 { + return new CreatePrivateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1217,9 +1378,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java index 672386df..50b7ee52 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java index 239d8825..4d58b6ec 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java +++ b/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,16 +45,15 @@ 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; } + private CreateRouteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,50 @@ private CreateRouteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - routeId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1alpha1.Route.Builder subBuilder = null; - if (route_ != null) { - subBuilder = route_.toBuilder(); + parent_ = s; + break; } - route_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(route_); - route_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + routeId_ = s; + break; } + case 26: + { + com.google.cloud.datastream.v1alpha1.Route.Builder subBuilder = null; + if (route_ != null) { + subBuilder = route_.toBuilder(); + } + route_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(route_); + route_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,34 +123,41 @@ private CreateRouteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -136,29 +166,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 { @@ -169,11 +201,14 @@ public java.lang.String getParent() { public static final int ROUTE_ID_FIELD_NUMBER = 2; 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 @@ -182,29 +217,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 { @@ -215,11 +250,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 @@ -227,23 +267,34 @@ 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() { @@ -253,6 +304,8 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -268,6 +321,7 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -276,14 +330,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
@@ -299,16 +354,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 { @@ -317,6 +371,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +383,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_); } @@ -358,8 +412,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_); @@ -372,24 +425,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -417,117 +467,127 @@ 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() @@ -535,16 +595,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -564,9 +623,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 @@ -585,7 +644,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); + com.google.cloud.datastream.v1alpha1.CreateRouteRequest result = + new com.google.cloud.datastream.v1alpha1.CreateRouteRequest(this); result.parent_ = parent_; result.routeId_ = routeId_; if (routeBuilder_ == null) { @@ -602,38 +662,39 @@ public com.google.cloud.datastream.v1alpha1.CreateRouteRequest 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.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; @@ -641,7 +702,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_; onChanged(); @@ -676,7 +738,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -688,18 +751,22 @@ public Builder mergeFrom( 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; @@ -708,20 +775,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 { @@ -729,54 +799,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -784,18 +867,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; @@ -804,20 +889,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 { @@ -825,54 +911,61 @@ 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) { + public Builder setRouteId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + routeId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearRouteId() { - + routeId_ = getDefaultInstance().getRouteId(); onChanged(); 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) { + public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + routeId_ = value; onChanged(); return this; @@ -880,39 +973,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 routeBuilder_ != null || 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. */ 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) { @@ -928,14 +1040,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(); onChanged(); @@ -946,17 +1061,23 @@ 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 (route_ != null) { route_ = - com.google.cloud.datastream.v1alpha1.Route.newBuilder(route_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.Route.newBuilder(route_) + .mergeFrom(value) + .buildPartial(); } else { route_ = value; } @@ -968,11 +1089,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() { if (routeBuilder_ == null) { @@ -986,48 +1111,64 @@ 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() { - + onChanged(); 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_; @@ -1035,6 +1176,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
@@ -1050,13 +1193,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; @@ -1065,6 +1208,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
@@ -1080,15 +1225,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 { @@ -1096,6 +1240,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
@@ -1111,20 +1257,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1140,15 +1288,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1164,23 +1315,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1190,12 +1341,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(); } @@ -1204,16 +1355,16 @@ 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 { - return new CreateRouteRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateRouteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1228,6 +1379,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java index d7fef1c2..26aa1064 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java index 9b9ba824..6978cfc9 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java +++ b/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,16 +37,15 @@ 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; } + private CreateStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -51,54 +64,60 @@ private CreateStreamRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - streamId_ = s; - break; - } - case 26: { - com.google.cloud.datastream.v1alpha1.Stream.Builder subBuilder = null; - if (stream_ != null) { - subBuilder = stream_.toBuilder(); + streamId_ = s; + break; } - stream_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stream_); - stream_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.datastream.v1alpha1.Stream.Builder subBuilder = null; + if (stream_ != null) { + subBuilder = stream_.toBuilder(); + } + stream_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stream_); + stream_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - case 48: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 40: + { + validateOnly_ = input.readBool(); + break; + } + case 48: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -106,34 +125,41 @@ private CreateStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -142,29 +168,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 { @@ -175,11 +203,14 @@ public java.lang.String getParent() { public static final int STREAM_ID_FIELD_NUMBER = 2; 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 @@ -188,29 +219,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 { @@ -221,11 +252,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 @@ -233,23 +269,34 @@ 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() { @@ -259,6 +306,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() public static final int REQUEST_ID_FIELD_NUMBER = 4; 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
@@ -274,6 +323,7 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -282,14 +332,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
@@ -305,16 +356,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 { @@ -325,12 +375,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; 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 @@ -341,11 +394,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 6; private boolean force_; /** + * + * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -354,6 +410,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -365,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -401,19 +457,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -423,28 +476,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -467,124 +515,128 @@ 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) + unknownFields.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() @@ -592,16 +644,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -625,9 +676,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 @@ -646,7 +697,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); + com.google.cloud.datastream.v1alpha1.CreateStreamRequest result = + new com.google.cloud.datastream.v1alpha1.CreateStreamRequest(this); result.parent_ = parent_; result.streamId_ = streamId_; if (streamBuilder_ == null) { @@ -665,38 +717,39 @@ public com.google.cloud.datastream.v1alpha1.CreateStreamRequest 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.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; @@ -704,7 +757,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_; onChanged(); @@ -745,7 +799,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -757,18 +812,22 @@ public Builder mergeFrom( 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; @@ -777,20 +836,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 { @@ -798,54 +860,67 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -853,18 +928,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; @@ -873,20 +950,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 { @@ -894,54 +972,61 @@ 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) { + public Builder setStreamId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + streamId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearStreamId() { - + streamId_ = getDefaultInstance().getStreamId(); onChanged(); 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) { + public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + streamId_ = value; onChanged(); return this; @@ -949,39 +1034,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 streamBuilder_ != null || 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. */ 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) { @@ -997,14 +1101,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(); onChanged(); @@ -1015,17 +1122,23 @@ 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 (stream_ != null) { stream_ = - com.google.cloud.datastream.v1alpha1.Stream.newBuilder(stream_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.Stream.newBuilder(stream_) + .mergeFrom(value) + .buildPartial(); } else { stream_ = value; } @@ -1037,11 +1150,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() { if (streamBuilder_ == null) { @@ -1055,48 +1172,64 @@ 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() { - + onChanged(); 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_; @@ -1104,6 +1237,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
@@ -1119,13 +1254,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; @@ -1134,6 +1269,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,15 +1286,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 { @@ -1165,6 +1301,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
@@ -1180,20 +1318,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1209,15 +1349,18 @@ public Builder setRequestId(
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1233,29 +1376,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -1263,44 +1409,53 @@ 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; 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() { - + validateOnly_ = false; onChanged(); 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 @@ -1308,37 +1463,43 @@ 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; 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() { - + force_ = false; 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 +1509,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(); } @@ -1362,16 +1523,16 @@ 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 { - return new CreateStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1386,6 +1547,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java index 6aba7522..0f53c4bb 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java index 75a9599b..d56f52c3 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java +++ b/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,16 +37,15 @@ 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; } + private DeleteConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,25 +64,27 @@ private DeleteConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,34 +92,41 @@ private DeleteConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -112,29 +135,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 { @@ -145,6 +170,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -160,6 +187,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -168,14 +196,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
@@ -191,16 +220,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 { @@ -209,6 +237,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +249,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_); } @@ -251,17 +279,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -283,130 +310,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,14 +452,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 @@ -439,7 +475,8 @@ 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); + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -450,46 +487,51 @@ public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -517,7 +559,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,18 +573,22 @@ public Builder mergeFrom( 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; @@ -549,20 +597,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 { @@ -570,54 +621,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -625,6 +689,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
@@ -640,13 +706,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; @@ -655,6 +721,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
@@ -670,15 +738,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 { @@ -686,6 +753,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
@@ -701,20 +770,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -730,15 +801,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -754,23 +828,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -780,30 +854,32 @@ 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 { - return new DeleteConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,9 +891,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java index 7a9b1e2d..c9765a1b 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java index e6cc8c90..6b1c3e81 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java +++ b/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,16 +37,15 @@ 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; } + private DeletePrivateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,30 +64,32 @@ private DeletePrivateConnectionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 24: { + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + case 24: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -81,34 +97,41 @@ private DeletePrivateConnectionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -117,29 +140,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 { @@ -150,6 +175,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -165,6 +192,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -173,14 +201,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
@@ -196,16 +225,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 { @@ -216,12 +244,15 @@ public java.lang.String getRequestId() { public static final int FORCE_FIELD_NUMBER = 3; 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 @@ -230,6 +261,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +273,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_); } @@ -268,8 +299,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,19 +309,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,138 +336,144 @@ 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) + unknownFields.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() + // Construct using + // com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,14 +487,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 @@ -474,7 +510,8 @@ 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); + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest result = + new com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest(this); result.name_ = name_; result.requestId_ = requestId_; result.force_ = force_; @@ -486,46 +523,51 @@ public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -556,7 +598,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -568,18 +612,22 @@ public Builder mergeFrom( 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; @@ -588,20 +636,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 { @@ -609,54 +660,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -664,6 +728,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
@@ -679,13 +745,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; @@ -694,6 +760,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
@@ -709,15 +777,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 { @@ -725,6 +792,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
@@ -740,20 +809,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -769,15 +840,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -793,29 +867,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -823,39 +900,45 @@ 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; 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() { - + force_ = false; 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); } @@ -865,30 +948,32 @@ 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 { - return new DeletePrivateConnectionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeletePrivateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,9 +985,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java index 825736c9..0a01c327 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java similarity index 72% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java index 40375f89..7f3f7222 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java +++ b/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,16 +44,15 @@ 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; } + private DeleteRouteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private DeleteRouteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,41 @@ private DeleteRouteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -116,29 +142,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 { @@ -149,6 +177,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -164,6 +194,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -172,14 +203,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
@@ -195,16 +227,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 { @@ -213,6 +244,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +256,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_); } @@ -255,17 +286,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -287,117 +317,127 @@ 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() @@ -405,16 +445,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -426,9 +465,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 @@ -447,7 +486,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); + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest result = + new com.google.cloud.datastream.v1alpha1.DeleteRouteRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -458,38 +498,39 @@ public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest 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.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; @@ -497,7 +538,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_; onChanged(); @@ -525,7 +567,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,18 +580,22 @@ public Builder mergeFrom( 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; @@ -557,20 +604,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 { @@ -578,54 +628,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -633,6 +696,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
@@ -648,13 +713,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; @@ -663,6 +728,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
@@ -678,15 +745,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 { @@ -694,6 +760,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
@@ -709,20 +777,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -738,15 +808,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -762,23 +835,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -788,12 +861,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(); } @@ -802,16 +875,16 @@ 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 { - return new DeleteRouteRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteRouteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -826,6 +899,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java index 88c05759..82e76db8 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java similarity index 72% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java index e95d98b6..5f08cfa9 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java +++ b/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,16 +36,15 @@ 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; } + private DeleteStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,25 +63,27 @@ private DeleteStreamRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,34 +91,41 @@ private DeleteStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -112,29 +134,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 { @@ -145,6 +169,8 @@ public java.lang.String getName() { public static final int REQUEST_ID_FIELD_NUMBER = 2; 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
@@ -160,6 +186,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -168,14 +195,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
@@ -191,16 +219,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 { @@ -209,6 +236,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +248,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_); } @@ -251,17 +278,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -283,113 +309,119 @@ 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() @@ -397,16 +429,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -418,9 +449,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 @@ -439,7 +470,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); + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest result = + new com.google.cloud.datastream.v1alpha1.DeleteStreamRequest(this); result.name_ = name_; result.requestId_ = requestId_; onBuilt(); @@ -450,38 +482,39 @@ public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest 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.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; @@ -489,7 +522,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_; onChanged(); @@ -517,7 +551,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,18 +564,22 @@ public Builder mergeFrom( 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; @@ -549,20 +588,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 { @@ -570,54 +612,67 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -625,6 +680,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
@@ -640,13 +697,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; @@ -655,6 +712,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
@@ -670,15 +729,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 { @@ -686,6 +744,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
@@ -701,20 +761,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -730,15 +792,18 @@ public Builder setRequestId(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -754,23 +819,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -780,12 +845,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(); } @@ -794,16 +859,16 @@ 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 { - return new DeleteStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -818,6 +883,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java index a13c99b2..b266e7a4 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java similarity index 64% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java index 0799fd66..88e92db6 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java @@ -1,40 +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; /** + * + * *
  * 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; } + private DestinationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,33 +70,42 @@ private DestinationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - destinationConnectionProfileName_ = s; - break; - } - case 802: { - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder subBuilder = null; - if (destinationStreamConfigCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_).toBuilder(); + destinationConnectionProfileName_ = s; + break; } - destinationStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); - destinationStreamConfig_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder subBuilder = null; + if (destinationStreamConfigCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) + destinationStreamConfig_) + .toBuilder(); + } + destinationStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) + destinationStreamConfig_); + destinationStreamConfig_ = subBuilder.buildPartial(); + } + destinationStreamConfigCase_ = 100; + break; } - destinationStreamConfigCase_ = 100; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,34 +113,39 @@ private DestinationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -130,30 +161,36 @@ 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; 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 @@ -162,29 +199,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 { @@ -194,7 +232,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 @@ -202,28 +242,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; @@ -235,13 +280,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_); } unknownFields.writeTo(output); } @@ -253,11 +300,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -267,20 +318,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: @@ -312,117 +364,127 @@ 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() @@ -430,16 +492,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,9 +512,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 @@ -472,7 +533,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); + com.google.cloud.datastream.v1alpha1.DestinationConfig result = + new com.google.cloud.datastream.v1alpha1.DestinationConfig(this); result.destinationConnectionProfileName_ = destinationConnectionProfileName_; if (destinationStreamConfigCase_ == 100) { if (gcsDestinationConfigBuilder_ == null) { @@ -490,38 +552,39 @@ public com.google.cloud.datastream.v1alpha1.DestinationConfig 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.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; @@ -529,19 +592,22 @@ 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_; 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.unknownFields); onChanged(); @@ -562,7 +628,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DestinationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DestinationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -571,12 +638,12 @@ public Builder mergeFrom( } 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() { @@ -586,21 +653,24 @@ public Builder clearDestinationStreamConfig() { return this; } - 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; @@ -609,20 +679,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 { @@ -630,63 +703,82 @@ 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) { + public Builder setDestinationConnectionProfileName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationConnectionProfileName_ = value; 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(); 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) { + public Builder setDestinationConnectionProfileNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationConnectionProfileName_ = value; onChanged(); return this; } 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 @@ -694,14 +786,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 { @@ -712,9 +807,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(); @@ -728,7 +825,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) { @@ -742,14 +840,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; } @@ -765,7 +870,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) { @@ -784,49 +890,63 @@ 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; } destinationStreamConfigCase_ = 100; - onChanged();; + 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); } @@ -836,12 +956,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(); } @@ -850,16 +970,16 @@ 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 { - return new DestinationConfig(input, extensionRegistry); - } - }; + 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 { + return new DestinationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -874,6 +994,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java similarity index 55% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java index 7442f546..82556d05 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java index de3d375a..4df29478 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java @@ -1,40 +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; /** + * + * *
  * 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; } + private DiscoverConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,77 +71,93 @@ private DiscoverConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 24: { - depth_ = input.readBool(); - depthCase_ = 3; - break; - } - case 32: { - depth_ = input.readInt32(); - depthCase_ = 4; - break; - } - case 802: { - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_).toBuilder(); + parent_ = s; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 24: + { + depth_ = input.readBool(); + depthCase_ = 3; + break; } - dataObjectCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_).toBuilder(); + case 32: + { + depth_ = input.readInt32(); + depthCase_ = 4; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 100; + break; } - dataObjectCase_ = 101; - break; - } - case 1602: { - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; - if (targetCase_ == 200) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 101; + break; } - target_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); - target_ = subBuilder.buildPartial(); + case 1602: + { + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; + if (targetCase_ == 200) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_).toBuilder(); + } + target_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); + target_ = subBuilder.buildPartial(); + } + targetCase_ = 200; + break; } - targetCase_ = 200; - break; - } - case 1610: { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 1610: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,35 +165,40 @@ private DiscoverConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -175,32 +214,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; } @@ -216,32 +261,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; } @@ -257,32 +308,40 @@ 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; 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 @@ -291,30 +350,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 { @@ -324,11 +385,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 @@ -336,21 +400,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.
    * 
@@ -358,31 +427,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() { @@ -393,8 +469,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; @@ -403,23 +478,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; } @@ -431,12 +507,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 @@ -444,12 +523,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 @@ -462,11 +544,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 @@ -474,11 +559,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 @@ -491,11 +579,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 @@ -503,21 +594,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.
    * 
@@ -527,18 +623,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 @@ -546,21 +645,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.
    * 
@@ -570,12 +674,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; @@ -587,18 +692,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_); @@ -625,26 +727,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_); @@ -657,24 +762,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: @@ -682,12 +785,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: @@ -695,12 +796,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: @@ -733,8 +832,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; @@ -761,134 +859,145 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -904,14 +1013,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 @@ -925,7 +1036,8 @@ 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); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest(this); result.parent_ = parent_; if (targetCase_ == 200) { if (connectionProfileBuilder_ == null) { @@ -968,90 +1080,104 @@ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest bui public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; 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.unknownFields); onChanged(); @@ -1072,7 +1198,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1081,12 +1209,12 @@ public Builder mergeFrom( } 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() { @@ -1098,10 +1226,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() { @@ -1113,10 +1240,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() { @@ -1126,22 +1252,25 @@ public Builder clearDataObject() { return this; } - 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; @@ -1150,21 +1279,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 { @@ -1172,70 +1304,89 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } 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 @@ -1243,11 +1394,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 @@ -1265,13 +1419,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(); @@ -1285,6 +1442,8 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.Connect return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1303,18 +1462,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; } @@ -1330,6 +1496,8 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.Conne return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1353,16 +1521,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.
      * 
@@ -1370,7 +1543,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 { @@ -1381,6 +1555,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec } } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1388,30 +1564,39 @@ 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()); target_ = null; } targetCase_ = 200; - onChanged();; + onChanged(); + ; return connectionProfileBuilder_; } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return Whether the connectionProfileName field is set. */ @java.lang.Override @@ -1419,11 +1604,14 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ @java.lang.Override @@ -1433,8 +1621,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; @@ -1445,24 +1632,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; } @@ -1472,30 +1660,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) { + public Builder setConnectionProfileName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - targetCase_ = 201; + 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() { @@ -1507,20 +1700,22 @@ 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) { + public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); targetCase_ = 201; target_ = value; onChanged(); @@ -1528,24 +1723,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() { @@ -1555,12 +1756,15 @@ 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. */ @@ -1571,12 +1775,15 @@ public Builder setRecursive(boolean value) { 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() { @@ -1589,22 +1796,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() { @@ -1614,11 +1827,14 @@ 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. */ @@ -1629,11 +1845,14 @@ public Builder setRecursionDepth(int value) { 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() { @@ -1646,13 +1865,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 @@ -1660,11 +1885,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 @@ -1682,6 +1910,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1702,6 +1932,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1720,6 +1952,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1728,10 +1962,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; } @@ -1747,6 +1985,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1770,6 +2010,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1780,6 +2022,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1798,6 +2042,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1805,32 +2051,44 @@ 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()); dataObject_ = null; } dataObjectCase_ = 100; - onChanged();; + onChanged(); + ; return oracleRdbmsBuilder_; } 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 @@ -1838,11 +2096,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 @@ -1860,6 +2121,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1880,6 +2143,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1898,6 +2163,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1906,10 +2173,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; } @@ -1925,6 +2196,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1948,6 +2221,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1958,6 +2233,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1976,6 +2253,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1983,26 +2262,32 @@ 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()); dataObject_ = null; } dataObjectCase_ = 101; - onChanged();; + 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); } @@ -2012,30 +2297,32 @@ 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 { - return new DiscoverConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new DiscoverConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2047,9 +2334,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 77% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java index 6299da66..c01fc3eb 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java index dd5f7e16..e6ad2acc 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java @@ -1,35 +1,48 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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; } + private DiscoverConnectionProfileResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,41 +61,48 @@ private DiscoverConnectionProfileResponse( case 0: done = true; break; - case 802: { - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_).toBuilder(); - } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); - } - dataObjectCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; - if (dataObjectCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_).toBuilder(); + case 802: + { + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 100; + break; } - dataObject_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); - dataObject_ = subBuilder.buildPartial(); + case 810: + { + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_).toBuilder(); + } + dataObject_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + dataObject_ = subBuilder.buildPartial(); + } + dataObjectCase_ = 101; + break; } - dataObjectCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,35 +110,40 @@ private DiscoverConnectionProfileResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -134,30 +159,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 @@ -165,21 +196,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.
    * 
@@ -189,18 +225,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 @@ -208,21 +247,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.
    * 
@@ -232,12 +276,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; @@ -249,8 +294,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_); } @@ -267,12 +311,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,22 +328,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: @@ -331,130 +376,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -464,19 +516,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); } @@ -485,7 +540,8 @@ 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); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = + new com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse(this); if (dataObjectCase_ == 100) { if (oracleRdbmsBuilder_ == null) { result.dataObject_ = dataObject_; @@ -509,58 +565,66 @@ public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse bu public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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.unknownFields); onChanged(); @@ -581,7 +645,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,12 +656,12 @@ public Builder mergeFrom( } 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() { @@ -605,15 +671,20 @@ public Builder clearDataObject() { return this; } - 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 @@ -621,11 +692,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 @@ -643,6 +717,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -663,6 +739,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -681,6 +759,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -689,10 +769,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; } @@ -708,6 +792,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -731,6 +817,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -741,6 +829,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -759,6 +849,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -766,32 +858,44 @@ 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()); dataObject_ = null; } dataObjectCase_ = 100; - onChanged();; + onChanged(); + ; return oracleRdbmsBuilder_; } 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 @@ -799,11 +903,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 @@ -821,6 +928,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -841,6 +950,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -859,6 +970,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -867,10 +980,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; } @@ -886,6 +1003,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -909,6 +1028,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -919,6 +1040,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -937,6 +1060,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -944,26 +1069,32 @@ 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()); dataObject_ = null; } dataObjectCase_ = 101; - onChanged();; + 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); } @@ -973,30 +1104,32 @@ 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 { - return new DiscoverConnectionProfileResponse(input, extensionRegistry); - } - }; + 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 { + return new DiscoverConnectionProfileResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1008,9 +1141,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java index 4e610ac9..0e0ef1e0 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java index c9b5fb8c..ef0b8e76 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java +++ b/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,16 +45,15 @@ 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; } + private Error( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,57 +73,63 @@ private Error( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - reason_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + reason_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - errorUuid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + errorUuid_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (errorTime_ != null) { - subBuilder = errorTime_.toBuilder(); + message_ = s; + break; } - errorTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(errorTime_); - errorTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (errorTime_ != null) { + subBuilder = errorTime_.toBuilder(); + } + errorTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorTime_); + errorTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - details_ = com.google.protobuf.MapField.newMapField( - DetailsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = + com.google.protobuf.MapField.newMapField( + DetailsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry details__ = + input.readMessage( + DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + details_.getMutableMap().put(details__.getKey(), details__.getValue()); + break; } - com.google.protobuf.MapEntry - details__ = input.readMessage( - DetailsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - details_.getMutableMap().put( - details__.getKey(), details__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,46 +137,50 @@ private Error( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object reason_; /** + * + * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; + * * @return The reason. */ @java.lang.Override @@ -162,29 +189,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 { @@ -195,12 +222,15 @@ public java.lang.String getReason() { public static final int ERROR_UUID_FIELD_NUMBER = 2; 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 @@ -209,30 +239,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 { @@ -243,11 +273,14 @@ public java.lang.String getErrorUuid() { public static final int MESSAGE_FIELD_NUMBER = 3; 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 @@ -256,29 +289,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 { @@ -289,11 +322,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 @@ -301,11 +337,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 @@ -313,6 +352,8 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** + * + * *
    * The time when the error occurred.
    * 
@@ -325,24 +366,23 @@ 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, + ""); } - 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_; } @@ -351,28 +391,30 @@ public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
    * Additional information about the error.
    * 
* * 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.
    * 
@@ -380,11 +422,12 @@ public java.util.Map getDetails() { * map<string, string> details = 5; */ @java.lang.Override - public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
    * Additional information about the error.
    * 
@@ -392,16 +435,16 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - - public java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrDefault(java.lang.String key, 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.
    * 
@@ -409,12 +452,11 @@ public 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(); } @@ -422,6 +464,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -433,8 +476,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_); } @@ -447,12 +489,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); unknownFields.writeTo(output); } @@ -472,18 +510,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -493,26 +530,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -543,140 +576,147 @@ 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() @@ -684,16 +724,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -714,9 +753,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 @@ -735,7 +774,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); + com.google.cloud.datastream.v1alpha1.Error result = + new com.google.cloud.datastream.v1alpha1.Error(this); int from_bitField0_ = bitField0_; result.reason_ = reason_; result.errorUuid_ = errorUuid_; @@ -755,38 +795,39 @@ public com.google.cloud.datastream.v1alpha1.Error 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.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; @@ -810,8 +851,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()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -840,22 +880,25 @@ public Builder mergeFrom( } 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; @@ -864,20 +907,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 { @@ -885,54 +929,61 @@ 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) { + public Builder setReason(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + reason_ = value; onChanged(); return this; } /** + * + * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; + * * @return This builder for chaining. */ public Builder clearReason() { - + reason_ = getDefaultInstance().getReason(); onChanged(); 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) { + public Builder setReasonBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reason_ = value; onChanged(); return this; @@ -940,19 +991,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; @@ -961,21 +1014,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 { @@ -983,57 +1037,64 @@ 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) { + public Builder setErrorUuid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + errorUuid_ = value; 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() { - + errorUuid_ = getDefaultInstance().getErrorUuid(); 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; + * * @param value The bytes for errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuidBytes( - com.google.protobuf.ByteString value) { + public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorUuid_ = value; onChanged(); return this; @@ -1041,18 +1102,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; @@ -1061,20 +1124,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 { @@ -1082,54 +1146,61 @@ 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) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); 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) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -1137,24 +1208,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 errorTimeBuilder_ != null || errorTime_ != null; } /** + * + * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; + * * @return The errorTime. */ public com.google.protobuf.Timestamp getErrorTime() { @@ -1165,6 +1245,8 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1185,14 +1267,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(); onChanged(); @@ -1203,6 +1286,8 @@ public Builder setErrorTime( return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1213,7 +1298,7 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { if (errorTimeBuilder_ == null) { if (errorTime_ != null) { errorTime_ = - com.google.protobuf.Timestamp.newBuilder(errorTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(errorTime_).mergeFrom(value).buildPartial(); } else { errorTime_ = value; } @@ -1225,6 +1310,8 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1243,6 +1330,8 @@ public Builder clearErrorTime() { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1250,11 +1339,13 @@ public Builder clearErrorTime() { * .google.protobuf.Timestamp error_time = 4; */ public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { - + onChanged(); return getErrorTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1265,11 +1356,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.
      * 
@@ -1277,35 +1369,37 @@ 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() { - onChanged();; + internalGetMutableDetails() { + onChanged(); + ; 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(); @@ -1317,28 +1411,30 @@ public int getDetailsCount() { return internalGetDetails().getMap().size(); } /** + * + * *
      * Additional information about the error.
      * 
* * 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.
      * 
@@ -1346,11 +1442,12 @@ public java.util.Map getDetails() { * map<string, string> details = 5; */ @java.lang.Override - public java.util.Map getDetailsMap() { return internalGetDetails().getMap(); } /** + * + * *
      * Additional information about the error.
      * 
@@ -1358,16 +1455,17 @@ public java.util.Map getDetailsMap() { * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String key, 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.
      * 
@@ -1375,12 +1473,11 @@ public 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(); } @@ -1388,69 +1485,66 @@ public java.lang.String getDetailsOrThrow( } public Builder clearDetails() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableDetails().getMutableMap() - .put(key, value); + internalGetMutableDetails().getMutableMap().put(key, value); 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); 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); } @@ -1460,12 +1554,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(); } @@ -1474,16 +1568,16 @@ 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 { - return new Error(input, extensionRegistry); - } - }; + 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 { + return new Error(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1498,6 +1592,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java index cc9df884..ef12710c 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java +++ b/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.
    * 
@@ -137,18 +179,18 @@ boolean containsDetails( */ /* 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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java index 29906ab6..bd1afed3 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java @@ -1,40 +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; /** + * + * *
  * 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; } + private FetchErrorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private FetchErrorsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - stream_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + stream_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private FetchErrorsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +132,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 { @@ -140,6 +163,7 @@ public java.lang.String getStream() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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_); } @@ -176,15 +199,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,127 @@ 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() @@ -322,16 +355,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +373,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 @@ -362,7 +394,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); + com.google.cloud.datastream.v1alpha1.FetchErrorsRequest result = + new com.google.cloud.datastream.v1alpha1.FetchErrorsRequest(this); result.stream_ = stream_; onBuilt(); return result; @@ -372,38 +405,39 @@ public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest 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.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; @@ -411,7 +445,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_; onChanged(); @@ -435,7 +470,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.FetchErrorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +483,20 @@ public Builder mergeFrom( 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; @@ -467,20 +505,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 { @@ -488,61 +527,68 @@ 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) { + public Builder setStream(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + stream_ = value; 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() { - + stream_ = getDefaultInstance().getStream(); onChanged(); 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) { + public Builder setStreamBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + stream_ = 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); } @@ -552,12 +598,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(); } @@ -566,16 +612,16 @@ 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 { - return new FetchErrorsRequest(input, extensionRegistry); - } - }; + 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 { + return new FetchErrorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java index c082309d..5467845c 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java similarity index 73% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java index 9dae787d..85fc7b32 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java @@ -1,40 +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; } + private FetchErrorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private FetchErrorsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + errors_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry)); + break; } - errors_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +96,7 @@ private FetchErrorsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -87,22 +105,27 @@ private FetchErrorsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List errors_; /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -114,6 +137,8 @@ public java.util.List getErrorsList( return errors_; } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -121,11 +146,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.
    * 
@@ -137,6 +164,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -155,12 +186,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; @@ -172,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 < errors_.size(); i++) { output.writeMessage(1, errors_.get(i)); } @@ -187,8 +217,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,127 @@ 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() @@ -346,17 +385,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +409,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 @@ -391,7 +430,8 @@ 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); int from_bitField0_ = bitField0_; if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +450,39 @@ public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse 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.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; @@ -449,7 +490,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()) { @@ -468,9 +510,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_); } @@ -495,7 +538,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.FetchErrorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +548,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -533,6 +584,8 @@ public java.util.List getErrorsList( } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -547,6 +600,8 @@ public int getErrorsCount() { } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -561,14 +616,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(); @@ -582,6 +638,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -600,6 +658,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -620,14 +680,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(); @@ -641,14 +702,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()); @@ -659,6 +721,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -677,6 +741,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -687,8 +753,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); @@ -696,6 +761,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -713,6 +780,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -730,39 +799,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 { @@ -770,6 +844,8 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -777,49 +853,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); } @@ -829,12 +911,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(); } @@ -843,16 +925,16 @@ 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 { - return new FetchErrorsResponse(input, extensionRegistry); - } - }; + 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 { + return new FetchErrorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +949,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java similarity index 62% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java index 5278eb06..5a82be31 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java index 89eed3ac..0b072648 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java +++ b/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,16 +44,15 @@ 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; } + private FetchStaticIpsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private FetchStaticIpsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private FetchStaticIpsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -122,30 +148,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 { @@ -156,11 +184,14 @@ public java.lang.String getName() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -171,12 +202,15 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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 @@ -185,30 +219,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 { @@ -217,6 +251,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +263,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_); } @@ -252,8 +286,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_); @@ -266,19 +299,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -302,117 +333,127 @@ 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() @@ -420,16 +461,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -443,9 +483,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 @@ -464,7 +504,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); + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest result = + new com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest(this); result.name_ = name_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -476,38 +517,39 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest 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.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; @@ -515,7 +557,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_; onChanged(); @@ -546,7 +589,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,19 +602,23 @@ public Builder mergeFrom( 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; @@ -579,21 +627,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 { @@ -601,69 +652,85 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); 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 @@ -671,30 +738,36 @@ 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; 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() { - + pageSize_ = 0; onChanged(); return this; @@ -702,19 +775,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; @@ -723,21 +798,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 { @@ -745,64 +821,71 @@ 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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = 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); } @@ -812,12 +895,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(); } @@ -826,16 +909,16 @@ 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 { - return new FetchStaticIpsRequest(input, extensionRegistry); - } - }; + 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 { + return new FetchStaticIpsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +933,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java index 945f8160..841fd4db 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java index 41f8901f..fbad8f1e 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java +++ b/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,16 +44,15 @@ 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; } + private FetchStaticIpsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private FetchStaticIpsResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - staticIps_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + staticIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + staticIps_.add(s); + break; } - staticIps_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private FetchStaticIpsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); @@ -94,50 +112,61 @@ private FetchStaticIpsResponse( makeExtensionsImmutable(); } } - 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; 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. */ @@ -145,28 +174,33 @@ 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; 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 @@ -175,30 +209,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 { @@ -207,6 +241,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +253,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)); } @@ -254,17 +288,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -288,117 +321,127 @@ 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() @@ -406,16 +449,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -427,9 +469,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 @@ -448,7 +490,8 @@ 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); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { staticIps_ = staticIps_.getUnmodifiableView(); @@ -464,38 +507,39 @@ public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse 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.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; @@ -503,7 +547,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_; @@ -537,7 +582,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -546,44 +592,55 @@ public Builder mergeFrom( } 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. */ @@ -591,80 +648,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) { + public Builder setStaticIps(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStaticIpsIsMutable(); + 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) { + public Builder addStaticIps(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureStaticIpsIsMutable(); + 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() { @@ -674,20 +741,22 @@ 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) { + public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureStaticIpsIsMutable(); staticIps_.add(value); onChanged(); @@ -696,19 +765,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; @@ -717,21 +788,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 { @@ -739,64 +811,71 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = 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); } @@ -806,12 +885,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(); } @@ -820,16 +899,16 @@ 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 { - return new FetchStaticIpsResponse(input, extensionRegistry); - } - }; + 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 { + return new FetchStaticIpsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -844,6 +923,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java index 33bd0c52..b9ab94f9 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java index 151a5fb4..9d6172bc 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java +++ b/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,16 +44,15 @@ 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; } + private ForwardSshTunnelConnectivity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,42 +71,46 @@ private ForwardSshTunnelConnectivity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hostname_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 24: { + hostname_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 802: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 100; - authenticationMethod_ = s; - break; - } - case 810: { - java.lang.String s = input.readStringRequireUtf8(); - authenticationMethodCase_ = 101; - authenticationMethod_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + username_ = s; + break; + } + case 24: + { + port_ = input.readInt32(); + break; + } + case 802: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 100; + authenticationMethod_ = s; + break; + } + case 810: + { + java.lang.String s = input.readStringRequireUtf8(); + authenticationMethodCase_ = 101; + authenticationMethod_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,35 +118,40 @@ private ForwardSshTunnelConnectivity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -141,31 +167,37 @@ 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; 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 @@ -174,29 +206,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 { @@ -207,11 +239,14 @@ public java.lang.String getHostname() { public static final int USERNAME_FIELD_NUMBER = 2; 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 @@ -220,29 +255,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 { @@ -253,11 +288,14 @@ public java.lang.String getUsername() { public static final int PORT_FIELD_NUMBER = 3; private int port_; /** + * + * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; + * * @return The port. */ @java.lang.Override @@ -267,22 +305,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() { @@ -293,8 +337,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; @@ -303,23 +346,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; } @@ -331,22 +375,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() { @@ -357,8 +407,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; @@ -367,23 +416,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; } @@ -394,6 +444,7 @@ public java.lang.String getPrivateKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,8 +456,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_); } @@ -438,8 +488,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_); @@ -455,28 +504,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: @@ -516,134 +561,145 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -659,13 +715,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(); } @@ -680,7 +737,8 @@ 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); + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity result = + new com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity(this); result.hostname_ = hostname_; result.username_ = username_; result.port_ = port_; @@ -699,46 +757,50 @@ public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity buildPa public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -751,21 +813,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.unknownFields); onChanged(); @@ -786,7 +851,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -795,12 +862,12 @@ public Builder mergeFrom( } 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() { @@ -810,21 +877,22 @@ public Builder clearAuthenticationMethod() { return this; } - 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; @@ -833,20 +901,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 { @@ -854,54 +923,61 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); return this; @@ -909,18 +985,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; @@ -929,20 +1007,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 { @@ -950,66 +1029,76 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); 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 @@ -1017,41 +1106,50 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the SSH tunnel, default value is 22.
      * 
* * int32 port = 3; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; } /** + * + * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return Whether the password field is set. */ @java.lang.Override @@ -1059,11 +1157,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 @@ -1073,8 +1174,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; @@ -1085,24 +1185,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; } @@ -1112,30 +1213,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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - authenticationMethodCase_ = 100; + 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() { @@ -1147,20 +1253,22 @@ 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) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); authenticationMethodCase_ = 100; authenticationMethod_ = value; onChanged(); @@ -1168,11 +1276,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 @@ -1180,11 +1291,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 @@ -1194,8 +1308,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; @@ -1206,24 +1319,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; } @@ -1233,30 +1347,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) { + public Builder setPrivateKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - authenticationMethodCase_ = 101; + 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() { @@ -1268,28 +1387,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) { + public Builder setPrivateKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1299,30 +1420,32 @@ 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 { - return new ForwardSshTunnelConnectivity(input, extensionRegistry); - } - }; + 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 { + return new ForwardSshTunnelConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1334,9 +1457,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java index 0e90d3b7..8765fad1 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java index ef833df8..cdbd9748 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java +++ b/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,16 +44,15 @@ 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; } + private GcsDestinationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,71 +71,85 @@ private GcsDestinationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - path_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - gcsFileFormat_ = rawValue; - break; - } - case 24: { - - fileRotationMb_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (fileRotationInterval_ != null) { - subBuilder = fileRotationInterval_.toBuilder(); - } - fileRotationInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fileRotationInterval_); - fileRotationInterval_ = subBuilder.buildPartial(); + path_ = s; + break; } + case 16: + { + int rawValue = input.readEnum(); - break; - } - case 802: { - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder subBuilder = null; - if (fileFormatCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_).toBuilder(); + gcsFileFormat_ = rawValue; + break; } - fileFormat_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.AvroFileFormat.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); - fileFormat_ = subBuilder.buildPartial(); + case 24: + { + fileRotationMb_ = input.readInt32(); + break; } - fileFormatCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder subBuilder = null; - if (fileFormatCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_).toBuilder(); + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (fileRotationInterval_ != null) { + subBuilder = fileRotationInterval_.toBuilder(); + } + fileRotationInterval_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fileRotationInterval_); + fileRotationInterval_ = subBuilder.buildPartial(); + } + + break; } - fileFormat_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.JsonFileFormat.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); - fileFormat_ = subBuilder.buildPartial(); + case 802: + { + com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder subBuilder = null; + if (fileFormatCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_).toBuilder(); + } + fileFormat_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.AvroFileFormat.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); + fileFormat_ = subBuilder.buildPartial(); + } + fileFormatCase_ = 100; + break; } - fileFormatCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 810: + { + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder subBuilder = null; + if (fileFormatCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_).toBuilder(); + } + fileFormat_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.JsonFileFormat.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); + fileFormat_ = subBuilder.buildPartial(); + } + fileFormatCase_ = 101; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -126,35 +157,40 @@ private GcsDestinationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -170,31 +206,37 @@ 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; 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 @@ -203,29 +245,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 { @@ -236,44 +278,62 @@ public java.lang.String getPath() { public static final int GCS_FILE_FORMAT_FIELD_NUMBER = 2; private int 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 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() { + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.GcsFileFormat result = com.google.cloud.datastream.v1alpha1.GcsFileFormat.valueOf(gcsFileFormat_); - return result == null ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.GcsFileFormat result = + com.google.cloud.datastream.v1alpha1.GcsFileFormat.valueOf(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_; /** + * + * *
    * The maximum file size to be saved in the bucket.
    * 
* * int32 file_rotation_mb = 3; + * * @return The fileRotationMb. */ @java.lang.Override @@ -284,12 +344,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 @@ -297,19 +360,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.
@@ -324,11 +394,14 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
 
   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 @@ -336,21 +409,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.
    * 
@@ -360,18 +438,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 @@ -379,21 +460,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.
    * 
@@ -403,12 +489,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; @@ -420,12 +507,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) { @@ -452,25 +540,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -480,32 +570,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: @@ -549,117 +635,127 @@ 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() @@ -667,16 +763,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -698,9 +793,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 @@ -719,7 +814,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); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig result = + new com.google.cloud.datastream.v1alpha1.GcsDestinationConfig(this); result.path_ = path_; result.gcsFileFormat_ = gcsFileFormat_; result.fileRotationMb_ = fileRotationMb_; @@ -751,38 +847,39 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig 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.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; @@ -790,7 +887,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_; onChanged(); @@ -805,17 +903,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.unknownFields); onChanged(); @@ -836,7 +937,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -845,12 +947,12 @@ public Builder mergeFrom( } 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() { @@ -860,21 +962,22 @@ public Builder clearFileFormat() { return this; } - 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; @@ -883,20 +986,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 { @@ -904,54 +1008,61 @@ 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) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); 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) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; @@ -959,100 +1070,137 @@ 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; 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() { + @java.lang.Deprecated + public com.google.cloud.datastream.v1alpha1.GcsFileFormat getGcsFileFormat() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.GcsFileFormat result = com.google.cloud.datastream.v1alpha1.GcsFileFormat.valueOf(gcsFileFormat_); - return result == null ? com.google.cloud.datastream.v1alpha1.GcsFileFormat.UNRECOGNIZED : result; + com.google.cloud.datastream.v1alpha1.GcsFileFormat result = + com.google.cloud.datastream.v1alpha1.GcsFileFormat.valueOf(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(); } - + gcsFileFormat_ = value.getNumber(); 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 This builder for chaining. */ - @java.lang.Deprecated public Builder clearGcsFileFormat() { - + @java.lang.Deprecated + public Builder clearGcsFileFormat() { + 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 @@ -1060,30 +1208,36 @@ 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; 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() { - + fileRotationMb_ = 0; onChanged(); return this; @@ -1091,36 +1245,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 fileRotationIntervalBuilder_ != null || 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. */ 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.
@@ -1142,6 +1309,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.
@@ -1149,8 +1318,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();
         onChanged();
@@ -1161,6 +1329,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.
@@ -1172,7 +1342,9 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       if (fileRotationIntervalBuilder_ == null) {
         if (fileRotationInterval_ != null) {
           fileRotationInterval_ =
-            com.google.protobuf.Duration.newBuilder(fileRotationInterval_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(fileRotationInterval_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           fileRotationInterval_ = value;
         }
@@ -1184,6 +1356,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.
@@ -1203,6 +1377,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.
@@ -1211,11 +1387,13 @@ public Builder clearFileRotationInterval() {
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
     public com.google.protobuf.Duration.Builder getFileRotationIntervalBuilder() {
-      
+
       onChanged();
       return getFileRotationIntervalFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1227,11 +1405,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.
@@ -1240,27 +1421,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 @@ -1268,11 +1458,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 @@ -1290,6 +1483,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1310,6 +1505,8 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFo return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1328,6 +1525,8 @@ public Builder setAvroFileFormat( return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1336,10 +1535,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; } @@ -1355,6 +1558,8 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFile return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1378,6 +1583,8 @@ public Builder clearAvroFileFormat() { return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1388,6 +1595,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo return getAvroFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1395,7 +1604,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 { @@ -1406,6 +1616,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileF } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1413,32 +1625,44 @@ 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()); fileFormat_ = null; } fileFormatCase_ = 100; - onChanged();; + onChanged(); + ; return avroFileFormatBuilder_; } 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 @@ -1446,11 +1670,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 @@ -1468,6 +1695,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1488,6 +1717,8 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFo return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1506,6 +1737,8 @@ public Builder setJsonFileFormat( return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1514,10 +1747,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; } @@ -1533,6 +1770,8 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFile return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1556,6 +1795,8 @@ public Builder clearJsonFileFormat() { return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1566,6 +1807,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo return getJsonFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1573,7 +1816,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 { @@ -1584,6 +1828,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileF } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1591,26 +1837,32 @@ 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()); fileFormat_ = null; } fileFormatCase_ = 101; - onChanged();; + 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); } @@ -1620,12 +1872,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(); } @@ -1634,16 +1886,16 @@ 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 { - return new GcsDestinationConfig(input, extensionRegistry); - } - }; + 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 { + return new GcsDestinationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1658,6 +1910,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java similarity index 74% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java index 03e30860..806c5787 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java similarity index 63% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java index ef27761a..054cf6b2 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java index 2b4d183e..026fe9a0 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java +++ b/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,16 +44,15 @@ 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; } + private GcsProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GcsProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - bucketName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + bucketName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - rootPath_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + rootPath_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,40 @@ private GcsProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -117,30 +141,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 { @@ -151,11 +175,14 @@ public java.lang.String getBucketName() { public static final int ROOT_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object rootPath_; /** + * + * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; + * * @return The rootPath. */ @java.lang.Override @@ -164,29 +191,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 { @@ -195,6 +222,7 @@ public java.lang.String getRootPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +234,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_); } @@ -237,17 +264,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,118 +294,127 @@ 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() @@ -387,16 +422,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -408,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_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 @@ -429,7 +463,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); + com.google.cloud.datastream.v1alpha1.GcsProfile result = + new com.google.cloud.datastream.v1alpha1.GcsProfile(this); result.bucketName_ = bucketName_; result.rootPath_ = rootPath_; onBuilt(); @@ -440,38 +475,39 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile 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.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; @@ -479,7 +515,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_; onChanged(); @@ -519,19 +556,21 @@ public Builder mergeFrom( 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; @@ -540,21 +579,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 { @@ -562,57 +602,64 @@ 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) { + public Builder setBucketName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucketName_ = value; 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() { - + bucketName_ = getDefaultInstance().getBucketName(); 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]; + * * @param value The bytes for bucketName to set. * @return This builder for chaining. */ - public Builder setBucketNameBytes( - com.google.protobuf.ByteString value) { + public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketName_ = value; onChanged(); return this; @@ -620,18 +667,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; @@ -640,20 +689,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 { @@ -661,61 +711,68 @@ 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) { + public Builder setRootPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rootPath_ = value; onChanged(); return this; } /** + * + * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; + * * @return This builder for chaining. */ public Builder clearRootPath() { - + rootPath_ = getDefaultInstance().getRootPath(); onChanged(); 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) { + public Builder setRootPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rootPath_ = 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); } @@ -725,12 +782,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(); } @@ -739,16 +796,16 @@ 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 { - return new GcsProfile(input, extensionRegistry); - } - }; + 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 { + return new GcsProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,6 +820,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java similarity index 60% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java index f4e08892..887ce584 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java similarity index 62% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java index cb0f4bb8..8fffcee0 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java @@ -1,36 +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.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; } + private GetConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,19 +62,20 @@ private GetConnectionProfileRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -69,34 +83,41 @@ private GetConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -105,29 +126,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 { @@ -136,6 +159,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +171,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_); } @@ -172,15 +195,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -200,113 +223,119 @@ 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() @@ -314,16 +343,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -333,13 +361,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(); } @@ -354,7 +383,8 @@ 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); + com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest(this); result.name_ = name_; onBuilt(); return result; @@ -364,46 +394,50 @@ public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest 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.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_; onChanged(); @@ -427,7 +461,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -439,18 +475,22 @@ public Builder mergeFrom( 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; @@ -459,20 +499,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 { @@ -480,61 +523,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -544,30 +600,32 @@ 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 { - return new GetConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new GetConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +637,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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..0f795d4a --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java similarity index 62% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java index 1d6df618..d79fb86a 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java @@ -1,36 +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.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; } + private GetPrivateConnectionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,19 +62,20 @@ private GetPrivateConnectionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -69,34 +83,41 @@ private GetPrivateConnectionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -105,29 +126,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 { @@ -136,6 +159,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +171,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_); } @@ -172,15 +195,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -200,113 +223,119 @@ 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() @@ -314,16 +343,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -333,13 +361,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(); } @@ -354,7 +383,8 @@ 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); + com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest result = + new com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -364,46 +394,50 @@ public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest 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.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_; onChanged(); @@ -427,7 +461,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -439,18 +475,22 @@ public Builder mergeFrom( 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; @@ -459,20 +499,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 { @@ -480,61 +523,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -544,30 +600,32 @@ 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 { - return new GetPrivateConnectionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetPrivateConnectionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -579,9 +637,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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java new file mode 100644 index 00000000..65bfd555 --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java similarity index 66% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java index 34ff2114..76c478cb 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java @@ -1,40 +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; /** + * + * *
  * 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; } + private GetRouteRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetRouteRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,41 @@ private GetRouteRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -109,29 +134,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 { @@ -140,6 +167,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,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_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +231,126 @@ 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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,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 @@ -362,7 +397,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); + com.google.cloud.datastream.v1alpha1.GetRouteRequest result = + new com.google.cloud.datastream.v1alpha1.GetRouteRequest(this); result.name_ = name_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.cloud.datastream.v1alpha1.GetRouteRequest 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.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; @@ -411,7 +448,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_; onChanged(); @@ -435,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.GetRouteRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.GetRouteRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +486,22 @@ public Builder mergeFrom( 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; @@ -467,20 +510,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 { @@ -488,61 +534,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -552,12 +611,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(); } @@ -566,16 +625,16 @@ 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 { - return new GetRouteRequest(input, extensionRegistry); - } - }; + 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 { + return new GetRouteRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java new file mode 100644 index 00000000..6d0de9d4 --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java similarity index 64% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java index b9f2029e..f14aa6c3 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java @@ -1,36 +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.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; } + private GetStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,19 +62,20 @@ private GetStreamRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -69,34 +83,41 @@ private GetStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -105,29 +126,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 { @@ -136,6 +159,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,8 +171,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_); } @@ -172,15 +195,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -200,113 +223,119 @@ 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() @@ -314,16 +343,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -333,9 +361,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 @@ -354,7 +382,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); + com.google.cloud.datastream.v1alpha1.GetStreamRequest result = + new com.google.cloud.datastream.v1alpha1.GetStreamRequest(this); result.name_ = name_; onBuilt(); return result; @@ -364,38 +393,39 @@ public com.google.cloud.datastream.v1alpha1.GetStreamRequest 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.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; @@ -403,7 +433,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_; onChanged(); @@ -427,7 +458,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.GetStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.GetStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -439,18 +471,22 @@ public Builder mergeFrom( 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; @@ -459,20 +495,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 { @@ -480,61 +519,74 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); 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) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = 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); } @@ -544,12 +596,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(); } @@ -558,16 +610,16 @@ 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 { - return new GetStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new GetStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -582,6 +634,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java new file mode 100644 index 00000000..af6e5e3a --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java index 54d480f2..6af93ae2 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java +++ b/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,16 +44,15 @@ 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; } + private JsonFileFormat( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private JsonFileFormat( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - schemaFileFormat_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); + schemaFileFormat_ = rawValue; + break; + } + case 16: + { + int rawValue = input.readEnum(); - compression_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + compression_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,41 @@ private JsonFileFormat( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -118,6 +142,8 @@ public enum JsonCompression */ JSON_COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * Do not compress JSON file.
      * 
@@ -126,6 +152,8 @@ public enum JsonCompression */ NO_COMPRESSION(1), /** + * + * *
      * Gzip compression.
      * 
@@ -137,6 +165,8 @@ public enum JsonCompression ; /** + * + * *
      * Unspecified json file compression.
      * 
@@ -145,6 +175,8 @@ public enum JsonCompression */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not compress JSON file.
      * 
@@ -153,6 +185,8 @@ public enum JsonCompression */ public static final int NO_COMPRESSION_VALUE = 1; /** + * + * *
      * Gzip compression.
      * 
@@ -161,7 +195,6 @@ public enum JsonCompression */ public static final int GZIP_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -186,40 +219,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(); @@ -227,8 +265,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; @@ -248,58 +285,81 @@ private JsonCompression(int value) { public static final int SCHEMA_FILE_FORMAT_FIELD_NUMBER = 1; private int schemaFileFormat_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = com.google.cloud.datastream.v1alpha1.SchemaFileFormat.valueOf(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.valueOf(schemaFileFormat_); + return result == null + ? com.google.cloud.datastream.v1alpha1.SchemaFileFormat.UNRECOGNIZED + : result; } public static final int COMPRESSION_FIELD_NUMBER = 2; private int compression_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.valueOf(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.valueOf(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; @@ -311,12 +371,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_); } unknownFields.writeTo(output); @@ -328,13 +392,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -344,12 +411,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; @@ -374,117 +442,126 @@ 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() @@ -492,16 +569,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -513,9 +589,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 @@ -534,7 +610,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); + com.google.cloud.datastream.v1alpha1.JsonFileFormat result = + new com.google.cloud.datastream.v1alpha1.JsonFileFormat(this); result.schemaFileFormat_ = schemaFileFormat_; result.compression_ = compression_; onBuilt(); @@ -545,38 +622,39 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat 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.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; @@ -584,7 +662,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()); } @@ -610,7 +689,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.JsonFileFormat) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.JsonFileFormat) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,73 +702,93 @@ public Builder mergeFrom( 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. */ public Builder setSchemaFileFormatValue(int value) { - + schemaFileFormat_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.SchemaFileFormat result = com.google.cloud.datastream.v1alpha1.SchemaFileFormat.valueOf(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.valueOf(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(); } - + schemaFileFormat_ = value.getNumber(); onChanged(); 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() { - + schemaFileFormat_ = 0; onChanged(); return this; @@ -696,80 +796,105 @@ 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. */ public Builder setCompressionValue(int value) { - + compression_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression result = com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.valueOf(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.valueOf(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(); } - + compression_ = value.getNumber(); onChanged(); 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() { - + compression_ = 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); } @@ -779,12 +904,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(); } @@ -793,16 +918,16 @@ 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 { - return new JsonFileFormat(input, extensionRegistry); - } - }; + 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 { + return new JsonFileFormat(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -817,6 +942,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java index 695c2e74..ec2d9fa3 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java index 8b40ff30..e452d44b 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java +++ b/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,16 +38,15 @@ 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; } + private ListConnectionProfilesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,42 +65,46 @@ private ListConnectionProfilesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,34 +112,41 @@ private ListConnectionProfilesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -131,29 +155,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 { @@ -164,6 +190,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -171,6 +199,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -181,6 +210,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -189,6 +220,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -197,14 +229,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.
@@ -213,16 +246,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 { @@ -233,11 +265,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -246,29 +281,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 { @@ -279,11 +314,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -292,29 +330,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 { @@ -323,6 +361,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,8 +373,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_); } @@ -364,8 +402,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_); @@ -384,23 +421,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -428,130 +461,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,14 +609,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 @@ -590,7 +632,8 @@ 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); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest result = + new com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -604,46 +647,51 @@ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -682,7 +730,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -694,18 +744,22 @@ public Builder mergeFrom( 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; @@ -714,20 +768,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 { @@ -735,61 +792,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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.
@@ -797,6 +869,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -804,6 +877,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -811,16 +886,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -828,10 +906,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -839,6 +918,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -847,13 +928,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; @@ -862,6 +943,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -870,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 { @@ -886,6 +968,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -894,20 +978,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -916,15 +1002,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -933,16 +1022,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -950,18 +1039,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; @@ -970,20 +1061,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 { @@ -991,54 +1083,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1046,18 +1145,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 +1167,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,61 +1189,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1151,30 +1260,32 @@ 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 { - return new ListConnectionProfilesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListConnectionProfilesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1186,9 +1297,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java index da42c046..d5654501 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java index cb601ee2..5627d9e6 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java +++ b/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,16 +38,15 @@ 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; } + private ListConnectionProfilesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,37 +66,44 @@ private ListConnectionProfilesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionProfiles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = + new java.util.ArrayList< + com.google.cloud.datastream.v1alpha1.ConnectionProfile>(); + mutable_bitField0_ |= 0x00000001; + } + connectionProfiles_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), + extensionRegistry)); + break; } - connectionProfiles_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,8 +111,7 @@ private ListConnectionProfilesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); @@ -103,88 +123,111 @@ private ListConnectionProfilesResponse( makeExtensionsImmutable(); } } - 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; - 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; 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 @@ -193,30 +236,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 { @@ -227,34 +270,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -262,20 +313,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; @@ -287,8 +341,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)); } @@ -308,8 +361,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_); @@ -330,19 +383,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -370,131 +421,139 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getConnectionProfilesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,14 +571,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 @@ -533,7 +594,8 @@ 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); int from_bitField0_ = bitField0_; if (connectionProfilesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -558,46 +620,51 @@ public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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()) { @@ -616,9 +683,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_); } @@ -657,7 +725,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,28 +736,39 @@ public Builder mergeFrom( } 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 { @@ -695,11 +776,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) { @@ -709,11 +793,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) { @@ -723,11 +810,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) { @@ -744,11 +834,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) { @@ -762,13 +855,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(); @@ -782,11 +879,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) { @@ -803,11 +903,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) { @@ -821,11 +924,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) { @@ -839,18 +945,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); @@ -858,11 +967,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) { @@ -875,11 +987,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) { @@ -892,39 +1007,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 { @@ -932,45 +1057,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(), @@ -982,19 +1124,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; @@ -1003,21 +1147,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 { @@ -1025,98 +1170,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1124,80 +1286,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1207,28 +1379,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1238,30 +1412,32 @@ 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 { - return new ListConnectionProfilesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListConnectionProfilesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1273,9 +1449,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java index bb524cd9..e95e734c 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java index 105c3317..537f2b50 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java +++ b/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,16 +38,15 @@ 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; } + private ListPrivateConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,42 +65,46 @@ private ListPrivateConnectionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,34 +112,41 @@ private ListPrivateConnectionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -131,29 +155,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 { @@ -164,6 +190,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -172,6 +200,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -182,6 +211,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -191,6 +222,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -199,14 +231,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.
@@ -216,16 +249,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 { @@ -236,11 +268,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -249,29 +284,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 { @@ -282,11 +317,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -295,29 +333,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 { @@ -326,6 +364,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,8 +376,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_); } @@ -367,8 +405,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_); @@ -387,23 +424,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -431,130 +464,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -572,14 +612,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 @@ -593,7 +635,8 @@ 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); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest result = + new com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -607,46 +650,51 @@ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest 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) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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_; onChanged(); @@ -685,7 +733,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,18 +747,22 @@ public Builder mergeFrom( 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; @@ -717,20 +771,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 { @@ -738,61 +795,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -801,6 +873,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -808,6 +881,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
@@ -816,16 +891,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -834,10 +912,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -845,6 +924,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -854,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; @@ -869,6 +950,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -878,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 { @@ -894,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -903,20 +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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -926,15 +1012,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -944,16 +1033,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -961,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; @@ -981,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 { @@ -1002,54 +1094,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1057,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; @@ -1077,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 { @@ -1098,61 +1200,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1162,30 +1271,32 @@ 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 { - return new ListPrivateConnectionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListPrivateConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1197,9 +1308,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java index 398e1927..723a51d3 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java index 72b8c25d..3265f5bd 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java +++ b/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,16 +38,15 @@ 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; } + private ListPrivateConnectionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,37 +66,44 @@ private ListPrivateConnectionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - privateConnections_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + privateConnections_ = + new java.util.ArrayList< + com.google.cloud.datastream.v1alpha1.PrivateConnection>(); + mutable_bitField0_ |= 0x00000001; + } + privateConnections_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), + extensionRegistry)); + break; } - privateConnections_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,8 +111,7 @@ private ListPrivateConnectionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); @@ -103,88 +123,111 @@ private ListPrivateConnectionsResponse( makeExtensionsImmutable(); } } - 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; - 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; 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 @@ -193,30 +236,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 { @@ -227,34 +270,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -262,20 +313,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; @@ -287,8 +341,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)); } @@ -308,8 +361,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_); @@ -330,19 +383,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -370,131 +421,139 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPrivateConnectionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,14 +571,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 @@ -533,7 +594,8 @@ 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); int from_bitField0_ = bitField0_; if (privateConnectionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -558,46 +620,51 @@ public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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()) { @@ -616,9 +683,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_); } @@ -657,7 +725,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,28 +736,39 @@ public Builder mergeFrom( } 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 { @@ -695,11 +776,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) { @@ -709,11 +793,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) { @@ -723,11 +810,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) { @@ -744,11 +834,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) { @@ -762,13 +855,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(); @@ -782,11 +879,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) { @@ -803,11 +903,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) { @@ -821,11 +924,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) { @@ -839,18 +945,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); @@ -858,11 +967,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) { @@ -875,11 +987,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) { @@ -892,39 +1007,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 { @@ -932,45 +1057,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(), @@ -982,19 +1124,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; @@ -1003,21 +1147,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 { @@ -1025,98 +1170,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1124,80 +1286,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1207,28 +1379,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1238,30 +1412,32 @@ 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 { - return new ListPrivateConnectionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListPrivateConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1273,9 +1449,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java index 170ace82..98cb0470 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java index b46b2520..4e54aa7f 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java +++ b/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,16 +46,15 @@ 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; } + private ListRoutesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListRoutesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,41 @@ private ListRoutesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -135,29 +163,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 { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -176,6 +208,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -186,6 +219,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -195,6 +230,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -203,14 +239,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.
@@ -220,16 +257,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 { @@ -240,11 +276,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -253,29 +292,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 { @@ -286,11 +325,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -299,29 +341,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 { @@ -330,6 +372,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +384,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_); } @@ -371,8 +413,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_); @@ -391,23 +432,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,117 +472,127 @@ 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() @@ -553,16 +600,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +626,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 @@ -601,7 +647,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); + com.google.cloud.datastream.v1alpha1.ListRoutesRequest result = + new com.google.cloud.datastream.v1alpha1.ListRoutesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -615,38 +662,39 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesRequest 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.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; @@ -654,7 +702,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_; onChanged(); @@ -693,7 +742,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,18 +755,22 @@ public Builder mergeFrom( 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; @@ -725,20 +779,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 { @@ -746,61 +803,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -809,6 +881,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -816,6 +889,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
@@ -824,16 +899,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -842,10 +920,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -853,6 +932,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -862,13 +943,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; @@ -877,6 +958,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -886,15 +969,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 { @@ -902,6 +984,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -911,20 +995,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -934,15 +1020,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -952,16 +1041,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -969,18 +1058,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; @@ -989,20 +1080,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 { @@ -1010,54 +1102,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1065,18 +1164,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; @@ -1085,20 +1186,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 { @@ -1106,61 +1208,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1170,12 +1279,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(); } @@ -1184,16 +1293,16 @@ 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 { - return new ListRoutesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListRoutesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,6 +1317,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java index 992784ab..0e5b922b 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java similarity index 74% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java index 6cae7036..38d917c6 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java +++ b/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,16 +45,15 @@ 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; } + private ListRoutesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,41 @@ private ListRoutesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - routes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + routes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + routes_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry)); + break; } - routes_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private ListRoutesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { routes_ = java.util.Collections.unmodifiableList(routes_); @@ -107,22 +127,27 @@ private ListRoutesResponse( makeExtensionsImmutable(); } } - 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; private java.util.List routes_; /** + * + * *
    * List of Routes.
    * 
@@ -134,6 +159,8 @@ public java.util.List getRoutesList( return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -141,11 +168,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.
    * 
@@ -157,6 +186,8 @@ public int getRoutesCount() { return routes_.size(); } /** + * + * *
    * List of Routes.
    * 
@@ -168,6 +199,8 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { return routes_.get(index); } /** + * + * *
    * List of Routes.
    * 
@@ -175,20 +208,22 @@ 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; 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 @@ -197,30 +232,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 { @@ -231,34 +266,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -266,20 +309,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; @@ -291,8 +337,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)); } @@ -312,8 +357,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_); @@ -334,19 +378,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,117 +416,127 @@ 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() @@ -492,17 +544,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getRoutesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +572,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 @@ -541,7 +593,8 @@ 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); int from_bitField0_ = bitField0_; if (routesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +619,39 @@ public com.google.cloud.datastream.v1alpha1.ListRoutesResponse 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.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; @@ -605,7 +659,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()) { @@ -624,9 +679,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_); } @@ -665,7 +721,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -674,21 +731,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -703,6 +767,8 @@ public java.util.List getRoutesList( } } /** + * + * *
      * List of Routes.
      * 
@@ -717,6 +783,8 @@ public int getRoutesCount() { } } /** + * + * *
      * List of Routes.
      * 
@@ -731,14 +799,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(); @@ -752,6 +821,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -770,6 +841,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -790,14 +863,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(); @@ -811,14 +885,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()); @@ -829,6 +904,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -847,6 +924,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -857,8 +936,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); @@ -866,6 +944,8 @@ public Builder addAllRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -883,6 +963,8 @@ public Builder clearRoutes() { return this; } /** + * + * *
      * List of Routes.
      * 
@@ -900,39 +982,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 { @@ -940,6 +1027,8 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( } } /** + * + * *
      * List of Routes.
      * 
@@ -947,42 +1036,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_; @@ -990,19 +1085,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; @@ -1011,21 +1108,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 { @@ -1033,98 +1131,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1132,80 +1247,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1215,28 +1340,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1246,12 +1373,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(); } @@ -1260,16 +1387,16 @@ 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 { - return new ListRoutesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListRoutesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,6 +1411,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java index 159ae49c..60a9d2d0 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java index 9ed95a17..d2a8cd00 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java +++ b/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,16 +38,15 @@ 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; } + private ListStreamsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,42 +65,46 @@ private ListStreamsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,34 +112,41 @@ private ListStreamsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -131,29 +155,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 { @@ -164,6 +190,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -171,6 +199,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -181,6 +210,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -189,6 +220,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -197,14 +229,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.
@@ -213,16 +246,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 { @@ -233,11 +265,14 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Filter request.
    * 
* * string filter = 4; + * * @return The filter. */ @java.lang.Override @@ -246,29 +281,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 { @@ -279,11 +314,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Order by fields for the result.
    * 
* * string order_by = 5; + * * @return The orderBy. */ @java.lang.Override @@ -292,29 +330,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 { @@ -323,6 +361,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,8 +373,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_); } @@ -364,8 +402,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_); @@ -384,23 +421,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -428,113 +461,119 @@ 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() @@ -542,16 +581,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -569,9 +607,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 @@ -590,7 +628,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); + com.google.cloud.datastream.v1alpha1.ListStreamsRequest result = + new com.google.cloud.datastream.v1alpha1.ListStreamsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -604,38 +643,39 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsRequest 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.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; @@ -643,7 +683,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_; onChanged(); @@ -682,7 +723,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -694,18 +736,22 @@ public Builder mergeFrom( 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; @@ -714,20 +760,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 { @@ -735,61 +784,76 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -797,6 +861,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -804,6 +869,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -811,16 +878,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -828,10 +898,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -839,6 +910,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -847,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; @@ -862,6 +935,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -870,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 { @@ -886,6 +960,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -894,20 +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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -916,15 +994,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -933,16 +1014,16 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -950,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; @@ -970,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 { @@ -991,54 +1075,61 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter request.
      * 
* * string filter = 4; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1046,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; @@ -1066,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 { @@ -1087,61 +1181,68 @@ 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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Order by fields for the result.
      * 
* * string order_by = 5; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = 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); } @@ -1151,12 +1252,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(); } @@ -1165,16 +1266,16 @@ 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 { - return new ListStreamsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListStreamsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,6 +1290,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java index a4c32d09..f6d4220d 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java similarity index 73% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java index df552061..4f28e9bb 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java +++ b/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,16 +37,15 @@ 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; } + private ListStreamsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,37 +65,41 @@ private ListStreamsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - streams_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + streams_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + streams_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry)); + break; } - streams_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,8 +107,7 @@ private ListStreamsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { streams_ = java.util.Collections.unmodifiableList(streams_); @@ -103,22 +119,27 @@ private ListStreamsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List streams_; /** + * + * *
    * List of streams
    * 
@@ -130,6 +151,8 @@ public java.util.List getStreamsLis return streams_; } /** + * + * *
    * List of streams
    * 
@@ -137,11 +160,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
    * 
@@ -153,6 +178,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * List of streams
    * 
@@ -164,6 +191,8 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * List of streams
    * 
@@ -171,20 +200,22 @@ 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; 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 @@ -193,30 +224,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 { @@ -227,34 +258,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; 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. */ @@ -262,20 +301,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; @@ -287,8 +329,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)); } @@ -308,8 +349,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_); @@ -330,19 +370,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -370,113 +408,119 @@ 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() @@ -484,17 +528,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getStreamsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +556,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 @@ -533,7 +577,8 @@ 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); int from_bitField0_ = bitField0_; if (streamsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -558,38 +603,39 @@ public com.google.cloud.datastream.v1alpha1.ListStreamsResponse 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.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; @@ -597,7 +643,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()) { @@ -616,9 +663,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_); } @@ -657,7 +705,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,21 +715,28 @@ public Builder mergeFrom( } 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
      * 
@@ -695,6 +751,8 @@ public java.util.List getStreamsLis } } /** + * + * *
      * List of streams
      * 
@@ -709,6 +767,8 @@ public int getStreamsCount() { } } /** + * + * *
      * List of streams
      * 
@@ -723,14 +783,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(); @@ -744,6 +805,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -762,6 +825,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -782,14 +847,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(); @@ -803,14 +869,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()); @@ -821,6 +888,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -839,6 +908,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -849,8 +920,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); @@ -858,6 +928,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -875,6 +947,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * List of streams
      * 
@@ -892,39 +966,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 { @@ -932,6 +1011,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( } } /** + * + * *
      * List of streams
      * 
@@ -939,42 +1020,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_; @@ -982,19 +1069,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; @@ -1003,21 +1092,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 { @@ -1025,98 +1115,115 @@ 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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); 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_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * 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. */ @@ -1124,80 +1231,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) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + 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() { @@ -1207,28 +1324,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) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + 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); } @@ -1238,12 +1357,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(); } @@ -1252,16 +1371,16 @@ 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 { - return new ListStreamsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListStreamsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1276,6 +1395,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java index ce3acb89..00f820f8 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java similarity index 73% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java index 041c1004..bf77e0c6 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java +++ b/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,16 +45,15 @@ 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; } + private MysqlColumn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,51 +72,54 @@ private MysqlColumn( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - columnName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - dataType_ = s; - break; - } - case 24: { - - length_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - collation_ = s; - break; - } - case 40: { - - primaryKey_ = input.readBool(); - break; - } - case 48: { + columnName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nullable_ = input.readBool(); - break; - } - case 56: { + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - ordinalPosition_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + collation_ = s; + break; + } + case 40: + { + primaryKey_ = input.readBool(); + break; + } + case 48: + { + nullable_ = input.readBool(); + break; + } + case 56: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,34 +127,39 @@ private MysqlColumn( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object columnName_; /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The columnName. */ @java.lang.Override @@ -143,29 +168,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 { @@ -176,12 +201,15 @@ public java.lang.String getColumnName() { public static final int DATA_TYPE_FIELD_NUMBER = 2; 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 @@ -190,30 +218,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 { @@ -224,11 +252,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -239,11 +270,14 @@ public int getLength() { public static final int COLLATION_FIELD_NUMBER = 4; private volatile java.lang.Object collation_; /** + * + * *
    * Column collation.
    * 
* * string collation = 4; + * * @return The collation. */ @java.lang.Override @@ -252,29 +286,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 { @@ -285,11 +319,14 @@ public java.lang.String getCollation() { public static final int PRIMARY_KEY_FIELD_NUMBER = 5; private boolean primaryKey_; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; + * * @return The primaryKey. */ @java.lang.Override @@ -300,11 +337,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 6; private boolean nullable_; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; + * * @return The nullable. */ @java.lang.Override @@ -315,11 +355,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 7; private int ordinalPosition_; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; + * * @return The ordinalPosition. */ @java.lang.Override @@ -328,6 +371,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +383,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_); } @@ -378,23 +421,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -404,27 +443,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -445,11 +478,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) + unknownFields.hashCode(); @@ -457,118 +488,127 @@ 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() @@ -576,16 +616,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -607,9 +646,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 @@ -628,7 +667,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); + com.google.cloud.datastream.v1alpha1.MysqlColumn result = + new com.google.cloud.datastream.v1alpha1.MysqlColumn(this); result.columnName_ = columnName_; result.dataType_ = dataType_; result.length_ = length_; @@ -644,38 +684,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn 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.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; @@ -683,7 +724,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_; onChanged(); @@ -739,18 +781,20 @@ public Builder mergeFrom( 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; @@ -759,20 +803,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 { @@ -780,54 +825,61 @@ 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) { + public Builder setColumnName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + columnName_ = value; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return This builder for chaining. */ public Builder clearColumnName() { - + columnName_ = getDefaultInstance().getColumnName(); onChanged(); 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) { + public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnName_ = value; onChanged(); return this; @@ -835,19 +887,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; @@ -856,21 +910,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 { @@ -878,69 +933,79 @@ 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) { + public Builder setDataType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataType_ = value; 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() { - + dataType_ = getDefaultInstance().getDataType(); 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; + * * @param value The bytes for dataType to set. * @return This builder for chaining. */ - public Builder setDataTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; onChanged(); return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -948,30 +1013,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { - + length_ = 0; onChanged(); return this; @@ -979,18 +1050,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; @@ -999,20 +1072,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 { @@ -1020,66 +1094,76 @@ 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) { + public Builder setCollation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + collation_ = value; onChanged(); return this; } /** + * + * *
      * Column collation.
      * 
* * string collation = 4; + * * @return This builder for chaining. */ public Builder clearCollation() { - + collation_ = getDefaultInstance().getCollation(); onChanged(); 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) { + public Builder setCollationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + collation_ = value; onChanged(); 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 @@ -1087,42 +1171,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 5; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { - + primaryKey_ = false; onChanged(); 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 @@ -1130,42 +1223,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 6; + * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); 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 @@ -1173,37 +1275,43 @@ 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; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 7; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { - + ordinalPosition_ = 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); } @@ -1213,12 +1321,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(); } @@ -1227,16 +1335,16 @@ 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 { - return new MysqlColumn(input, extensionRegistry); - } - }; + 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 { + return new MysqlColumn(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1251,6 +1359,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java index 28517c04..eb736dee 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java similarity index 74% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java index 62536513..d03264d4 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java +++ b/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,16 +44,15 @@ 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; } + private MysqlDatabase( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private MysqlDatabase( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - databaseName_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mysqlTables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + databaseName_ = s; + break; } - mysqlTables_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlTables_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mysqlTables_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private MysqlDatabase( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mysqlTables_ = java.util.Collections.unmodifiableList(mysqlTables_); @@ -94,27 +114,33 @@ private MysqlDatabase( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object databaseName_; /** + * + * *
    * Database name.
    * 
* * string database_name = 1; + * * @return The databaseName. */ @java.lang.Override @@ -123,29 +149,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 { @@ -156,6 +182,8 @@ public java.lang.String getDatabaseName() { public static final int MYSQL_TABLES_FIELD_NUMBER = 2; private java.util.List mysqlTables_; /** + * + * *
    * Tables in the database.
    * 
@@ -167,6 +195,8 @@ public java.util.List getMysqlT return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -174,11 +204,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.
    * 
@@ -190,6 +222,8 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** + * + * *
    * Tables in the database.
    * 
@@ -201,6 +235,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) return mysqlTables_.get(index); } /** + * + * *
    * Tables in the database.
    * 
@@ -214,6 +250,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseName_); } @@ -246,8 +282,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +292,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +325,126 @@ 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() @@ -409,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMysqlTablesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +478,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 @@ -456,7 +499,8 @@ 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); int from_bitField0_ = bitField0_; result.databaseName_ = databaseName_; if (mysqlTablesBuilder_ == null) { @@ -476,38 +520,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase 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.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; @@ -515,7 +560,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_; onChanged(); @@ -538,9 +584,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlDatabase othe mysqlTablesBuilder_ = null; mysqlTables_ = other.mysqlTables_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlTablesFieldBuilder() : null; + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlTablesFieldBuilder() + : null; } else { mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.MysqlDatabase) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.MysqlDatabase) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,22 +622,25 @@ public Builder mergeFrom( } 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; @@ -598,20 +649,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 { @@ -619,72 +671,86 @@ 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) { + public Builder setDatabaseName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + databaseName_ = value; onChanged(); return this; } /** + * + * *
      * Database name.
      * 
* * string database_name = 1; + * * @return This builder for chaining. */ public Builder clearDatabaseName() { - + databaseName_ = getDefaultInstance().getDatabaseName(); onChanged(); 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) { + public Builder setDatabaseNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseName_ = value; onChanged(); return this; } private java.util.List mysqlTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlTablesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlTables_ = new java.util.ArrayList(mysqlTables_); + mysqlTables_ = + new java.util.ArrayList(mysqlTables_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -699,6 +765,8 @@ public java.util.List getMysqlT } } /** + * + * *
      * Tables in the database.
      * 
@@ -713,6 +781,8 @@ public int getMysqlTablesCount() { } } /** + * + * *
      * Tables in the database.
      * 
@@ -727,6 +797,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) } } /** + * + * *
      * Tables in the database.
      * 
@@ -748,6 +820,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -766,6 +840,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -786,6 +862,8 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1alpha1.MysqlTable va return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -807,6 +885,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -825,6 +905,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -843,6 +925,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -853,8 +937,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); @@ -862,6 +945,8 @@ public Builder addAllMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -879,6 +964,8 @@ public Builder clearMysqlTables() { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -896,6 +983,8 @@ public Builder removeMysqlTables(int index) { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -907,6 +996,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui return getMysqlTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the database.
      * 
@@ -916,19 +1007,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 { @@ -936,6 +1030,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } } /** + * + * *
      * Tables in the database.
      * 
@@ -943,10 +1039,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.
      * 
@@ -955,37 +1053,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -995,12 +1098,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(); } @@ -1009,16 +1112,16 @@ 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 { - return new MysqlDatabase(input, extensionRegistry); - } - }; + 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 { + return new MysqlDatabase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1136,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java index a4056682..8e8acb30 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java similarity index 70% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java index 049e5cd7..bb6e5bd9 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java +++ b/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,16 +45,15 @@ 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; } + private MysqlProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,49 +72,56 @@ private MysqlProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - hostname_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - username_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 42: { - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder subBuilder = null; - if (sslConfig_ != null) { - subBuilder = sslConfig_.toBuilder(); + username_ = s; + break; } - sslConfig_ = input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlSslConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sslConfig_); - sslConfig_ = subBuilder.buildPartial(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + password_ = s; + break; } + case 42: + { + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder subBuilder = null; + if (sslConfig_ != null) { + subBuilder = sslConfig_.toBuilder(); + } + sslConfig_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sslConfig_); + sslConfig_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,34 +129,39 @@ private MysqlProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -141,29 +170,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 { @@ -174,11 +203,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -189,11 +221,14 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; 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 @@ -202,29 +237,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 { @@ -235,11 +270,16 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; 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 @@ -248,29 +288,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 { @@ -281,11 +323,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 @@ -293,18 +338,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.
    * 
@@ -317,6 +369,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,8 +381,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_); } @@ -358,8 +410,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_); @@ -368,8 +419,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -379,25 +429,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -428,117 +474,126 @@ 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() @@ -546,16 +601,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -577,9 +631,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 @@ -598,7 +652,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); + com.google.cloud.datastream.v1alpha1.MysqlProfile result = + new com.google.cloud.datastream.v1alpha1.MysqlProfile(this); result.hostname_ = hostname_; result.port_ = port_; result.username_ = username_; @@ -616,38 +671,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile 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.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; @@ -655,7 +711,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_; onChanged(); @@ -693,7 +750,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.MysqlProfile) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.MysqlProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -705,18 +763,20 @@ public Builder mergeFrom( 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; @@ -725,20 +785,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 { @@ -746,66 +807,76 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); 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 @@ -813,30 +884,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the MySQL connection, default value is 3306.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -844,18 +921,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; @@ -864,20 +943,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 { @@ -885,54 +965,61 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -940,18 +1027,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; @@ -960,20 +1051,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 { @@ -981,54 +1075,67 @@ 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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; 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() { - + password_ = getDefaultInstance().getPassword(); 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]; + * + * * @param value The bytes for password to set. * @return This builder for chaining. */ - public Builder setPasswordBytes( - com.google.protobuf.ByteString value) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -1036,34 +1143,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 sslConfigBuilder_ != null || sslConfig_ != null; } /** + * + * *
      * 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.
      * 
@@ -1084,6 +1204,8 @@ public Builder setSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1102,6 +1224,8 @@ public Builder setSslConfig( return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1112,7 +1236,9 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfi if (sslConfigBuilder_ == null) { if (sslConfig_ != null) { sslConfig_ = - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.newBuilder(sslConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.newBuilder(sslConfig_) + .mergeFrom(value) + .buildPartial(); } else { sslConfig_ = value; } @@ -1124,6 +1250,8 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfi return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1142,6 +1270,8 @@ public Builder clearSslConfig() { return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1149,11 +1279,13 @@ public Builder clearSslConfig() { * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; */ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder getSslConfigBuilder() { - + onChanged(); return getSslConfigFieldBuilder().getBuilder(); } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1164,11 +1296,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.
      * 
@@ -1176,21 +1311,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); } @@ -1200,12 +1338,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(); } @@ -1214,16 +1352,16 @@ 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 { - return new MysqlProfile(input, extensionRegistry); - } - }; + 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 { + return new MysqlProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1238,6 +1376,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java similarity index 66% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java index e84fd0e1..71fc0534 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java similarity index 75% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java index ad15f7bc..6aedb991 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java @@ -1,40 +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; } + private MysqlRdbms( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,26 @@ private MysqlRdbms( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mysqlDatabases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlDatabases_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mysqlDatabases_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), + extensionRegistry)); + break; } - mysqlDatabases_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +98,7 @@ private MysqlRdbms( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mysqlDatabases_ = java.util.Collections.unmodifiableList(mysqlDatabases_); @@ -87,22 +107,27 @@ private MysqlRdbms( makeExtensionsImmutable(); } } - 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; private java.util.List mysqlDatabases_; /** + * + * *
    * Mysql databases on the server
    * 
@@ -110,10 +135,13 @@ private MysqlRdbms( * 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
    * 
@@ -121,11 +149,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
    * 
@@ -137,6 +167,8 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -148,6 +180,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int return mysqlDatabases_.get(index); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -161,6 +195,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,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 { for (int i = 0; i < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -187,8 +221,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +231,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +260,127 @@ 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() @@ -346,17 +388,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMysqlDatabasesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,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_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 @@ -391,7 +433,8 @@ 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); int from_bitField0_ = bitField0_; if (mysqlDatabasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +453,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms 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.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; @@ -449,7 +493,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()) { @@ -468,9 +513,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_); } @@ -504,28 +550,38 @@ public Builder mergeFrom( } 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 { @@ -533,6 +589,8 @@ public java.util.List getMys } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -547,6 +605,8 @@ public int getMysqlDatabasesCount() { } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -561,6 +621,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -582,6 +644,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -600,6 +664,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -620,6 +686,8 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1alpha1.MysqlDatab return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -641,6 +709,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -659,6 +729,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -677,6 +749,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -687,8 +761,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); @@ -696,6 +769,8 @@ public Builder addAllMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -713,6 +788,8 @@ public Builder clearMysqlDatabases() { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -730,6 +807,8 @@ public Builder removeMysqlDatabases(int index) { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -741,6 +820,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -750,19 +831,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 { @@ -770,6 +854,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -777,10 +863,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
      * 
@@ -789,26 +877,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(), @@ -817,9 +914,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); } @@ -829,12 +926,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(); } @@ -843,16 +940,16 @@ 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 { - return new MysqlRdbms(input, extensionRegistry); - } - }; + 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 { + return new MysqlRdbms(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +964,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java index a66f896a..57ea7c1a 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java index a2f34f2e..f6474bbd 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java @@ -1,39 +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; /** + * + * *
  * 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; } + private MysqlSourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private MysqlSourceConfig( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; - if (allowlist_ != null) { - subBuilder = allowlist_.toBuilder(); - } - allowlist_ = input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowlist_); - allowlist_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; - if (rejectlist_ != null) { - subBuilder = rejectlist_.toBuilder(); + case 10: + { + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; + if (allowlist_ != null) { + subBuilder = allowlist_.toBuilder(); + } + allowlist_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowlist_); + allowlist_ = subBuilder.buildPartial(); + } + + break; } - rejectlist_ = input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rejectlist_); - rejectlist_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null; + if (rejectlist_ != null) { + subBuilder = rejectlist_.toBuilder(); + } + rejectlist_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rejectlist_); + rejectlist_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +114,39 @@ private MysqlSourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -127,18 +154,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.
    * 
@@ -153,11 +187,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu 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 @@ -165,18 +202,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.
    * 
@@ -189,6 +233,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +245,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()); } @@ -218,12 +262,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +275,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,117 +316,127 @@ 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() @@ -393,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +472,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 @@ -443,7 +493,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); + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig result = + new com.google.cloud.datastream.v1alpha1.MysqlSourceConfig(this); if (allowlistBuilder_ == null) { result.allowlist_ = allowlist_; } else { @@ -462,38 +513,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig 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.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; @@ -501,7 +553,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()); } @@ -527,7 +580,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,34 +593,47 @@ public Builder mergeFrom( 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 allowlistBuilder_ != null || allowlist_ != null; } /** + * + * *
      * 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.
      * 
@@ -587,6 +654,8 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms valu return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -605,6 +674,8 @@ public Builder setAllowlist( return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -615,7 +686,9 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms va if (allowlistBuilder_ == null) { if (allowlist_ != null) { allowlist_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder(allowlist_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder(allowlist_) + .mergeFrom(value) + .buildPartial(); } else { allowlist_ = value; } @@ -627,6 +700,8 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms va return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -645,6 +720,8 @@ public Builder clearAllowlist() { return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -652,11 +729,13 @@ public Builder clearAllowlist() { * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; */ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getAllowlistBuilder() { - + onChanged(); return getAllowlistFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -667,11 +746,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.
      * 
@@ -679,14 +761,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_; @@ -694,34 +779,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 rejectlistBuilder_ != null || rejectlist_ != null; } /** + * + * *
      * 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.
      * 
@@ -742,6 +840,8 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -760,6 +860,8 @@ public Builder setRejectlist( return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -770,7 +872,9 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms v if (rejectlistBuilder_ == null) { if (rejectlist_ != null) { rejectlist_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder(rejectlist_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder(rejectlist_) + .mergeFrom(value) + .buildPartial(); } else { rejectlist_ = value; } @@ -782,6 +886,8 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -800,6 +906,8 @@ public Builder clearRejectlist() { return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -807,11 +915,13 @@ public Builder clearRejectlist() { * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; */ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getRejectlistBuilder() { - + onChanged(); return getRejectlistFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -822,11 +932,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.
      * 
@@ -834,21 +947,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); } @@ -858,12 +974,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(); } @@ -872,16 +988,16 @@ 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 { - return new MysqlSourceConfig(input, extensionRegistry); - } - }; + 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 { + return new MysqlSourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java index c8c8491a..f1a3bb82 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java similarity index 75% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java index f9c5b20f..f4049405 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java +++ b/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,16 +45,15 @@ 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; } + private MysqlSslConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,49 @@ private MysqlSslConfig( case 0: done = true; break; - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - clientKey_ = s; - break; - } - case 96: { - - clientKeySet_ = input.readBool(); - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - - clientCertificate_ = s; - break; - } - case 112: { + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); - clientCertificateSet_ = input.readBool(); - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); + clientKey_ = s; + break; + } + case 96: + { + clientKeySet_ = input.readBool(); + break; + } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificate_ = s; - break; - } - case 128: { + clientCertificate_ = s; + break; + } + case 112: + { + clientCertificateSet_ = input.readBool(); + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); - caCertificateSet_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + caCertificate_ = s; + break; + } + case 128: + { + caCertificateSet_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,29 +122,33 @@ private MysqlSslConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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
@@ -132,6 +156,7 @@ private MysqlSslConfig(
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -140,14 +165,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
@@ -155,16 +181,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 { @@ -175,11 +200,14 @@ public java.lang.String getClientKey() { public static final int CLIENT_KEY_SET_FIELD_NUMBER = 12; 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 @@ -190,6 +218,8 @@ public boolean getClientKeySet() { public static final int CLIENT_CERTIFICATE_FIELD_NUMBER = 13; 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
@@ -197,6 +227,7 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -205,14 +236,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
@@ -220,16 +252,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 { @@ -240,11 +271,14 @@ public java.lang.String getClientCertificate() { public static final int CLIENT_CERTIFICATE_SET_FIELD_NUMBER = 14; 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 @@ -255,12 +289,15 @@ public boolean getClientCertificateSet() { public static final int CA_CERTIFICATE_FIELD_NUMBER = 15; 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 @@ -269,30 +306,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 { @@ -303,11 +340,14 @@ public java.lang.String getCaCertificate() { public static final int CA_CERTIFICATE_SET_FIELD_NUMBER = 16; 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 @@ -316,6 +356,7 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +368,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_); } @@ -360,22 +400,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,25 +422,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -418,135 +450,141 @@ 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) + unknownFields.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() @@ -554,16 +592,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -583,9 +620,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 @@ -604,7 +641,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); + com.google.cloud.datastream.v1alpha1.MysqlSslConfig result = + new com.google.cloud.datastream.v1alpha1.MysqlSslConfig(this); result.clientKey_ = clientKey_; result.clientKeySet_ = clientKeySet_; result.clientCertificate_ = clientCertificate_; @@ -619,38 +657,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfig 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.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; @@ -658,7 +697,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_; onChanged(); @@ -699,7 +739,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -711,6 +752,8 @@ public Builder mergeFrom( 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
@@ -718,13 +761,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; @@ -733,6 +776,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
@@ -740,15 +785,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 { @@ -756,6 +800,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
@@ -763,20 +809,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) { + public Builder setClientKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientKey_ = value; 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
@@ -784,15 +832,18 @@ public Builder setClientKey(
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientKey() { - + clientKey_ = getDefaultInstance().getClientKey(); 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
@@ -800,28 +851,31 @@ 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) { + public Builder setClientKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientKey_ = value; onChanged(); 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 @@ -829,30 +883,36 @@ 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; 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() { - + clientKeySet_ = false; onChanged(); return this; @@ -860,6 +920,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
@@ -867,13 +929,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; @@ -882,6 +944,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
@@ -889,15 +953,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 { @@ -905,6 +968,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
@@ -912,20 +977,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) { + public Builder setClientCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + clientCertificate_ = value; 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
@@ -933,15 +1000,18 @@ public Builder setClientCertificate(
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearClientCertificate() { - + clientCertificate_ = getDefaultInstance().getClientCertificate(); 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
@@ -949,28 +1019,31 @@ 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) { + public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientCertificate_ = value; onChanged(); 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 @@ -978,30 +1051,36 @@ 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; 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() { - + clientCertificateSet_ = false; onChanged(); return this; @@ -1009,19 +1088,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; @@ -1030,21 +1111,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 { @@ -1052,69 +1134,79 @@ 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) { + public Builder setCaCertificate(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + caCertificate_ = value; 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() { - + caCertificate_ = getDefaultInstance().getCaCertificate(); 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]; + * * @param value The bytes for caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificateBytes( - com.google.protobuf.ByteString value) { + public Builder setCaCertificateBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + caCertificate_ = value; onChanged(); 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 @@ -1122,37 +1214,43 @@ 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; 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() { - + caCertificateSet_ = false; 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); } @@ -1162,12 +1260,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(); } @@ -1176,16 +1274,16 @@ 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 { - return new MysqlSslConfig(input, extensionRegistry); - } - }; + 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 { + return new MysqlSslConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1200,6 +1298,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java similarity index 77% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java index 3cdea7e3..2a4721fa 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java similarity index 76% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java index 46549ac5..c1399380 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java +++ b/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,16 +44,15 @@ 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; } + private MysqlTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private MysqlTable( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - tableName_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - mysqlColumns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + tableName_ = s; + break; } - mysqlColumns_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + mysqlColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private MysqlTable( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { mysqlColumns_ = java.util.Collections.unmodifiableList(mysqlColumns_); @@ -94,27 +115,33 @@ private MysqlTable( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object tableName_; /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The tableName. */ @java.lang.Override @@ -123,29 +150,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 { @@ -156,6 +183,8 @@ public java.lang.String getTableName() { public static final int MYSQL_COLUMNS_FIELD_NUMBER = 2; private java.util.List mysqlColumns_; /** + * + * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -169,6 +198,8 @@ public java.util.List getMysql
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -178,11 +209,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
@@ -196,6 +229,8 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -209,6 +244,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
@@ -224,6 +261,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -235,8 +273,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_);
     }
@@ -256,8 +293,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -267,17 +303,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -300,118 +335,127 @@ 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() @@ -419,17 +463,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMysqlColumnsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +489,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 @@ -466,7 +510,8 @@ 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); int from_bitField0_ = bitField0_; result.tableName_ = tableName_; if (mysqlColumnsBuilder_ == null) { @@ -486,38 +531,39 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable 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.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; @@ -525,7 +571,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_; onChanged(); @@ -548,9 +595,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlTable other) mysqlColumnsBuilder_ = null; mysqlColumns_ = other.mysqlColumns_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMysqlColumnsFieldBuilder() : null; + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMysqlColumnsFieldBuilder() + : null; } else { mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); } @@ -584,22 +632,25 @@ public Builder mergeFrom( } 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; @@ -608,20 +659,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 { @@ -629,72 +681,87 @@ 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) { + public Builder setTableName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tableName_ = value; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return This builder for chaining. */ public Builder clearTableName() { - + tableName_ = getDefaultInstance().getTableName(); onChanged(); 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) { + public Builder setTableNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableName_ = value; onChanged(); return this; } private java.util.List mysqlColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMysqlColumnsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - mysqlColumns_ = new java.util.ArrayList(mysqlColumns_); + mysqlColumns_ = + new java.util.ArrayList( + mysqlColumns_); bitField0_ |= 0x00000001; - } + } } 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
@@ -711,6 +778,8 @@ public java.util.List getMysql
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -727,6 +796,8 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -743,6 +814,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
@@ -766,6 +839,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -786,6 +861,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -808,6 +885,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
@@ -831,6 +910,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -851,6 +932,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -871,6 +954,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -883,8 +968,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);
@@ -892,6 +976,8 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -911,6 +997,8 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -930,6 +1018,8 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -943,6 +1033,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
@@ -954,11 +1046,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
@@ -967,8 +1062,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 {
@@ -976,6 +1071,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -985,10 +1082,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
@@ -999,10 +1098,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
@@ -1011,27 +1112,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_ & 0x00000001) != 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_ & 0x00000001) != 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);
     }
 
@@ -1041,12 +1145,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();
   }
@@ -1055,16 +1159,16 @@ 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 {
-      return new MysqlTable(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new MysqlTable(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1079,6 +1183,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
index e597ddda..e8ed3fe4 100644
--- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
+++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
similarity index 67%
rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
index 8e567c6a..b44f49d0 100644
--- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
+++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
@@ -1,39 +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;
 
 /**
+ *
+ *
  * 
  * 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; } + private NoConnectivitySettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private NoConnectivitySettings( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private NoConnectivitySettings( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ 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() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +304,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 @@ -297,7 +325,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; } @@ -306,38 +335,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; @@ -345,7 +375,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.unknownFields); onChanged(); return this; @@ -365,7 +396,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +406,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +418,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(); } @@ -400,16 +432,16 @@ 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 { - return new NoConnectivitySettings(input, extensionRegistry); - } - }; + 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 { + return new NoConnectivitySettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +456,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java new file mode 100644 index 00000000..cceee8ac --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java index a3a2d843..8637f5cf 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java +++ b/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,16 +46,15 @@ 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; } + private OperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,81 +73,93 @@ private OperationMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + target_ = s; + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: { - - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + verb_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - apiVersion_ = s; - break; - } - case 66: { - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder subBuilder = null; - if (validationResult_ != null) { - subBuilder = validationResult_.toBuilder(); + statusMessage_ = s; + break; } - validationResult_ = input.readMessage(com.google.cloud.datastream.v1alpha1.ValidationResult.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validationResult_); - validationResult_ = subBuilder.buildPartial(); + case 48: + { + requestedCancellation_ = input.readBool(); + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + apiVersion_ = s; + break; + } + case 66: + { + com.google.cloud.datastream.v1alpha1.ValidationResult.Builder subBuilder = null; + if (validationResult_ != null) { + subBuilder = validationResult_.toBuilder(); + } + validationResult_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ValidationResult.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validationResult_); + validationResult_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -138,34 +167,40 @@ private OperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -173,11 +208,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 @@ -185,11 +224,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() { @@ -199,11 +241,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 @@ -211,11 +257,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 @@ -223,11 +273,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() { @@ -237,11 +290,14 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int TARGET_FIELD_NUMBER = 3; 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 @@ -250,29 +306,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 { @@ -283,11 +339,14 @@ public java.lang.String getTarget() { public static final int VERB_FIELD_NUMBER = 4; 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 @@ -296,29 +355,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 { @@ -329,11 +388,14 @@ public java.lang.String getVerb() { public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; 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 @@ -342,29 +404,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 { @@ -375,6 +437,8 @@ public java.lang.String getStatusMessage() { public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; private boolean requestedCancellation_; /** + * + * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -383,6 +447,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -393,11 +458,14 @@ public boolean getRequestedCancellation() { public static final int API_VERSION_FIELD_NUMBER = 7; 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 @@ -406,29 +474,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 { @@ -439,11 +507,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 @@ -451,30 +524,43 @@ 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() { + public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder + getValidationResultOrBuilder() { return getValidationResult(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -486,8 +572,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()); } @@ -522,12 +607,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_); @@ -539,15 +622,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -557,37 +638,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -615,8 +689,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()) { @@ -629,117 +702,127 @@ 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() @@ -747,16 +830,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -792,9 +874,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 @@ -813,7 +895,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); + com.google.cloud.datastream.v1alpha1.OperationMetadata result = + new com.google.cloud.datastream.v1alpha1.OperationMetadata(this); if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -842,38 +925,39 @@ public com.google.cloud.datastream.v1alpha1.OperationMetadata 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.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; @@ -881,7 +965,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()); } @@ -929,7 +1014,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.OperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.OperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -941,39 +1027,58 @@ public Builder mergeFrom( 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 createTimeBuilder_ != null || 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. */ 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) { @@ -989,14 +1094,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(); onChanged(); @@ -1007,17 +1115,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1029,11 +1141,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() { if (createTimeBuilder_ == null) { @@ -1047,48 +1163,64 @@ 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() { - + onChanged(); 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_; @@ -1096,24 +1228,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 endTimeBuilder_ != null || 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. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1124,11 +1267,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) { @@ -1144,14 +1290,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(); onChanged(); @@ -1162,17 +1310,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 (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1184,11 +1335,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() { if (endTimeBuilder_ == null) { @@ -1202,48 +1356,59 @@ 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() { - + onChanged(); 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_; @@ -1251,18 +1416,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; @@ -1271,20 +1438,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 { @@ -1292,54 +1460,61 @@ 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) { + public Builder setTarget(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + target_ = value; 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() { - + target_ = getDefaultInstance().getTarget(); onChanged(); 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) { + public Builder setTargetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; onChanged(); return this; @@ -1347,18 +1522,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; @@ -1367,20 +1544,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 { @@ -1388,54 +1566,61 @@ 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) { + public Builder setVerb(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + verb_ = value; 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() { - + verb_ = getDefaultInstance().getVerb(); onChanged(); 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) { + public Builder setVerbBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; onChanged(); return this; @@ -1443,18 +1628,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; @@ -1463,20 +1650,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 { @@ -1484,61 +1672,70 @@ 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) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + statusMessage_ = value; 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() { - + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); 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) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; onChanged(); 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
@@ -1547,6 +1744,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1554,6 +1752,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1562,16 +1762,19 @@ 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; onChanged(); return this; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1580,10 +1783,11 @@ public Builder setRequestedCancellation(boolean value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRequestedCancellation() { - + requestedCancellation_ = false; onChanged(); return this; @@ -1591,18 +1795,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; @@ -1611,20 +1817,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 { @@ -1632,54 +1839,61 @@ 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) { + public Builder setApiVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + apiVersion_ = value; 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() { - + apiVersion_ = getDefaultInstance().getApiVersion(); onChanged(); 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) { + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; onChanged(); return this; @@ -1687,41 +1901,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 validationResultBuilder_ != null || 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. */ 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(); @@ -1735,11 +1969,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) { @@ -1753,17 +1991,24 @@ 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 (validationResult_ != null) { validationResult_ = - com.google.cloud.datastream.v1alpha1.ValidationResult.newBuilder(validationResult_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.ValidationResult.newBuilder(validationResult_) + .mergeFrom(value) + .buildPartial(); } else { validationResult_ = value; } @@ -1775,11 +2020,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() { if (validationResultBuilder_ == null) { @@ -1793,55 +2042,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() { + 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); } @@ -1851,12 +2118,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(); } @@ -1865,16 +2132,16 @@ 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 { - return new OperationMetadata(input, extensionRegistry); - } - }; + 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 { + return new OperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1889,6 +2156,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java index af066741..8edd8553 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java similarity index 73% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java index 1eda7e84..c230964f 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java +++ b/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,16 +45,15 @@ 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; } + private OracleColumn( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,61 +72,64 @@ private OracleColumn( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - columnName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - dataType_ = s; - break; - } - case 24: { - - length_ = input.readInt32(); - break; - } - case 32: { - - precision_ = input.readInt32(); - break; - } - case 40: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - scale_ = input.readInt32(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - encoding_ = s; - break; - } - case 56: { - - primaryKey_ = input.readBool(); - break; - } - case 64: { + columnName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nullable_ = input.readBool(); - break; - } - case 72: { + dataType_ = s; + break; + } + case 24: + { + length_ = input.readInt32(); + break; + } + case 32: + { + precision_ = input.readInt32(); + break; + } + case 40: + { + scale_ = input.readInt32(); + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); - ordinalPosition_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + encoding_ = s; + break; + } + case 56: + { + primaryKey_ = input.readBool(); + break; + } + case 64: + { + nullable_ = input.readBool(); + break; + } + case 72: + { + ordinalPosition_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,34 +137,39 @@ private OracleColumn( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object columnName_; /** + * + * *
    * Column name.
    * 
* * string column_name = 1; + * * @return The columnName. */ @java.lang.Override @@ -153,29 +178,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 { @@ -186,11 +211,14 @@ public java.lang.String getColumnName() { public static final int DATA_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object dataType_; /** + * + * *
    * The Oracle data type.
    * 
* * string data_type = 2; + * * @return The dataType. */ @java.lang.Override @@ -199,29 +227,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 { @@ -232,11 +260,14 @@ public java.lang.String getDataType() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** + * + * *
    * Column length.
    * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -247,11 +278,14 @@ public int getLength() { public static final int PRECISION_FIELD_NUMBER = 4; private int precision_; /** + * + * *
    * Column precision.
    * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -262,11 +296,14 @@ public int getPrecision() { public static final int SCALE_FIELD_NUMBER = 5; private int scale_; /** + * + * *
    * Column scale.
    * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -277,11 +314,14 @@ public int getScale() { public static final int ENCODING_FIELD_NUMBER = 6; private volatile java.lang.Object encoding_; /** + * + * *
    * Column encoding.
    * 
* * string encoding = 6; + * * @return The encoding. */ @java.lang.Override @@ -290,29 +330,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 { @@ -323,11 +363,14 @@ public java.lang.String getEncoding() { public static final int PRIMARY_KEY_FIELD_NUMBER = 7; private boolean primaryKey_; /** + * + * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; + * * @return The primaryKey. */ @java.lang.Override @@ -338,11 +381,14 @@ public boolean getPrimaryKey() { public static final int NULLABLE_FIELD_NUMBER = 8; private boolean nullable_; /** + * + * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; + * * @return The nullable. */ @java.lang.Override @@ -353,11 +399,14 @@ public boolean getNullable() { public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; private int ordinalPosition_; /** + * + * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; + * * @return The ordinalPosition. */ @java.lang.Override @@ -366,6 +415,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -377,8 +427,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_); } @@ -422,31 +471,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -456,31 +499,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -505,11 +540,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) + unknownFields.hashCode(); @@ -518,117 +551,126 @@ 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() @@ -636,16 +678,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -671,9 +712,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 @@ -692,7 +733,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); + com.google.cloud.datastream.v1alpha1.OracleColumn result = + new com.google.cloud.datastream.v1alpha1.OracleColumn(this); result.columnName_ = columnName_; result.dataType_ = dataType_; result.length_ = length_; @@ -710,38 +752,39 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn 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.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; @@ -749,7 +792,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_; onChanged(); @@ -799,7 +843,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.OracleColumn) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.OracleColumn) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -811,18 +856,20 @@ public Builder mergeFrom( 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; @@ -831,20 +878,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 { @@ -852,54 +900,61 @@ 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) { + public Builder setColumnName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + columnName_ = value; onChanged(); return this; } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return This builder for chaining. */ public Builder clearColumnName() { - + columnName_ = getDefaultInstance().getColumnName(); onChanged(); 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) { + public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + columnName_ = value; onChanged(); return this; @@ -907,18 +962,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; @@ -927,20 +984,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 { @@ -948,66 +1006,76 @@ 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) { + public Builder setDataType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataType_ = value; onChanged(); return this; } /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = getDefaultInstance().getDataType(); onChanged(); 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) { + public Builder setDataTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataType_ = value; onChanged(); return this; } - private int length_ ; + private int length_; /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return The length. */ @java.lang.Override @@ -1015,42 +1083,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column length.
      * 
* * int32 length = 3; + * * @return This builder for chaining. */ public Builder clearLength() { - + length_ = 0; onChanged(); return this; } - private int precision_ ; + private int precision_; /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return The precision. */ @java.lang.Override @@ -1058,42 +1135,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Column precision.
      * 
* * int32 precision = 4; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0; onChanged(); return this; } - private int scale_ ; + private int scale_; /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return The scale. */ @java.lang.Override @@ -1101,30 +1187,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Column scale.
      * 
* * int32 scale = 5; + * * @return This builder for chaining. */ public Builder clearScale() { - + scale_ = 0; onChanged(); return this; @@ -1132,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; @@ -1152,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 { @@ -1173,66 +1268,76 @@ 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) { + public Builder setEncoding(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Column encoding.
      * 
* * string encoding = 6; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = getDefaultInstance().getEncoding(); onChanged(); 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) { + public Builder setEncodingBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + encoding_ = value; onChanged(); 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 @@ -1240,42 +1345,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column represents a primary key.
      * 
* * bool primary_key = 7; + * * @return This builder for chaining. */ public Builder clearPrimaryKey() { - + primaryKey_ = false; onChanged(); 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 @@ -1283,42 +1397,51 @@ 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; onChanged(); return this; } /** + * + * *
      * Whether or not the column can accept a null value.
      * 
* * bool nullable = 8; + * * @return This builder for chaining. */ public Builder clearNullable() { - + nullable_ = false; onChanged(); 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 @@ -1326,37 +1449,43 @@ 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; onChanged(); return this; } /** + * + * *
      * The ordinal position of the column in the table.
      * 
* * int32 ordinal_position = 9; + * * @return This builder for chaining. */ public Builder clearOrdinalPosition() { - + ordinalPosition_ = 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); } @@ -1366,12 +1495,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(); } @@ -1380,16 +1509,16 @@ 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 { - return new OracleColumn(input, extensionRegistry); - } - }; + 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 { + return new OracleColumn(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1404,6 +1533,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java index b338d0ba..7d1e8da8 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java index 19f4e197..87f9d012 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java +++ b/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,16 +46,15 @@ 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; } + private OracleProfile( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,55 +74,64 @@ private OracleProfile( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - hostname_ = s; - break; - } - case 16: { - - port_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + hostname_ = s; + break; + } + case 16: + { + port_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - username_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + password_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - databaseService_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - connectionAttributes_ = com.google.protobuf.MapField.newMapField( - ConnectionAttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + databaseService_ = s; + break; } - com.google.protobuf.MapEntry - connectionAttributes__ = input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - connectionAttributes_.getMutableMap().put( - connectionAttributes__.getKey(), connectionAttributes__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionAttributes_ = + com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + connectionAttributes__ = + input.readMessage( + ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + connectionAttributes_ + .getMutableMap() + .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,46 +139,50 @@ private OracleProfile( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -161,29 +191,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 { @@ -194,11 +224,14 @@ public java.lang.String getHostname() { public static final int PORT_FIELD_NUMBER = 2; private int port_; /** + * + * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; + * * @return The port. */ @java.lang.Override @@ -209,11 +242,14 @@ public int getPort() { public static final int USERNAME_FIELD_NUMBER = 3; 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 @@ -222,29 +258,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 { @@ -255,11 +291,14 @@ public java.lang.String getUsername() { public static final int PASSWORD_FIELD_NUMBER = 4; 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 @@ -268,29 +307,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 { @@ -301,11 +340,14 @@ public java.lang.String getPassword() { public static final int DATABASE_SERVICE_FIELD_NUMBER = 5; 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 @@ -314,29 +356,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 { @@ -345,21 +387,22 @@ 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, + ""); } - 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); @@ -371,28 +414,30 @@ public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
    * Connection string attributes
    * 
* * 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
    * 
@@ -400,11 +445,12 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.util.Map getConnectionAttributesMap() { return internalGetConnectionAttributes().getMap(); } /** + * + * *
    * Connection string attributes
    * 
@@ -412,16 +458,18 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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
    * 
@@ -429,10 +477,10 @@ public 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)) { @@ -442,6 +490,7 @@ public java.lang.String getConnectionAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -453,8 +502,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_); } @@ -470,8 +518,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, @@ -489,8 +536,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_); @@ -501,15 +547,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -519,25 +565,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -569,139 +611,146 @@ 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() @@ -709,16 +758,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -737,9 +785,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 @@ -758,7 +806,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); + com.google.cloud.datastream.v1alpha1.OracleProfile result = + new com.google.cloud.datastream.v1alpha1.OracleProfile(this); int from_bitField0_ = bitField0_; result.hostname_ = hostname_; result.port_ = port_; @@ -775,38 +824,39 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile 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.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; @@ -814,7 +864,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_; onChanged(); @@ -834,8 +885,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleProfile othe databaseService_ = other.databaseService_; onChanged(); } - internalGetMutableConnectionAttributes().mergeFrom( - other.internalGetConnectionAttributes()); + internalGetMutableConnectionAttributes().mergeFrom(other.internalGetConnectionAttributes()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -855,7 +905,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.OracleProfile) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.OracleProfile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -864,22 +915,25 @@ public Builder mergeFrom( } 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; @@ -888,20 +942,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 { @@ -909,66 +964,76 @@ 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) { + public Builder setHostname(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + hostname_ = value; 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() { - + hostname_ = getDefaultInstance().getHostname(); onChanged(); 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) { + public Builder setHostnameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + hostname_ = value; onChanged(); 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 @@ -976,30 +1041,36 @@ 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; onChanged(); return this; } /** + * + * *
      * Port for the Oracle connection, default value is 1521.
      * 
* * int32 port = 2; + * * @return This builder for chaining. */ public Builder clearPort() { - + port_ = 0; onChanged(); return this; @@ -1007,18 +1078,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; @@ -1027,20 +1100,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 { @@ -1048,54 +1122,61 @@ 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) { + public Builder setUsername(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + username_ = value; 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() { - + username_ = getDefaultInstance().getUsername(); onChanged(); 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) { + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; onChanged(); return this; @@ -1103,18 +1184,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; @@ -1123,20 +1206,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 { @@ -1144,54 +1228,61 @@ 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) { + public Builder setPassword(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + password_ = value; 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() { - + password_ = getDefaultInstance().getPassword(); onChanged(); 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) { + public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + password_ = value; onChanged(); return this; @@ -1199,18 +1290,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; @@ -1219,20 +1312,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 { @@ -1240,75 +1334,85 @@ 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) { + public Builder setDatabaseService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + databaseService_ = value; 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() { - + databaseService_ = getDefaultInstance().getDatabaseService(); onChanged(); 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) { + public Builder setDatabaseServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseService_ = value; onChanged(); 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() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } + private com.google.protobuf.MapField - internalGetMutableConnectionAttributes() { - onChanged();; + internalGetMutableConnectionAttributes() { + onChanged(); + ; 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(); @@ -1320,28 +1424,30 @@ public int getConnectionAttributesCount() { return internalGetConnectionAttributes().getMap().size(); } /** + * + * *
      * Connection string attributes
      * 
* * 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
      * 
@@ -1349,11 +1455,12 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.util.Map getConnectionAttributesMap() { return internalGetConnectionAttributes().getMap(); } /** + * + * *
      * Connection string attributes
      * 
@@ -1361,16 +1468,18 @@ public java.util.Map getConnectionAttributes * map<string, string> connection_attributes = 6; */ @java.lang.Override - public java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String 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
      * 
@@ -1378,10 +1487,10 @@ public 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)) { @@ -1391,69 +1500,67 @@ public java.lang.String getConnectionAttributesOrThrow( } public Builder clearConnectionAttributes() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableConnectionAttributes().getMutableMap() - .put(key, value); + internalGetMutableConnectionAttributes().getMutableMap().put(key, value); return this; } /** + * + * *
      * Connection string attributes
      * 
* * map<string, string> connection_attributes = 6; */ - public Builder putAllConnectionAttributes( java.util.Map values) { - internalGetMutableConnectionAttributes().getMutableMap() - .putAll(values); + internalGetMutableConnectionAttributes().getMutableMap().putAll(values); 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); } @@ -1463,12 +1570,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(); } @@ -1477,16 +1584,16 @@ 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 { - return new OracleProfile(input, extensionRegistry); - } - }; + 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 { + return new OracleProfile(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1501,6 +1608,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java index 0c2f75cd..7243c5f4 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java +++ b/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
    * 
@@ -138,18 +180,18 @@ boolean containsConnectionAttributes( */ /* 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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java similarity index 75% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java index fcad3d1e..e7f3dbb0 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java @@ -1,40 +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; } + private OracleRdbms( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,26 @@ private OracleRdbms( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleSchemas_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleSchemas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oracleSchemas_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), + extensionRegistry)); + break; } - oracleSchemas_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +98,7 @@ private OracleRdbms( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { oracleSchemas_ = java.util.Collections.unmodifiableList(oracleSchemas_); @@ -87,22 +107,27 @@ private OracleRdbms( makeExtensionsImmutable(); } } - 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; private java.util.List oracleSchemas_; /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -114,6 +139,8 @@ public java.util.List getOrac return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -121,11 +148,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.
    * 
@@ -137,6 +166,8 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -148,6 +179,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in return oracleSchemas_.get(index); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -161,6 +194,7 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +206,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)); } @@ -187,8 +220,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +230,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +259,127 @@ 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() @@ -346,17 +387,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOracleSchemasFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +411,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 @@ -391,7 +432,8 @@ 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); int from_bitField0_ = bitField0_; if (oracleSchemasBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +452,39 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms 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.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; @@ -449,7 +492,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()) { @@ -468,9 +512,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_); } @@ -504,28 +549,38 @@ public Builder mergeFrom( } 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 { @@ -533,6 +588,8 @@ public java.util.List getOrac } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -547,6 +604,8 @@ public int getOracleSchemasCount() { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -561,6 +620,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -582,6 +643,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -600,6 +663,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -620,6 +685,8 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1alpha1.OracleSchem return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -641,6 +708,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -659,6 +728,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -677,6 +748,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -687,8 +760,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); @@ -696,6 +768,8 @@ public Builder addAllOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -713,6 +787,8 @@ public Builder clearOracleSchemas() { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -730,6 +806,8 @@ public Builder removeOracleSchemas(int index) { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -741,6 +819,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema return getOracleSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -750,19 +830,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 { @@ -770,6 +853,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -777,10 +862,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.
      * 
@@ -789,26 +876,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(), @@ -817,9 +913,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); } @@ -829,12 +925,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(); } @@ -843,16 +939,16 @@ 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 { - return new OracleRdbms(input, extensionRegistry); - } - }; + 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 { + return new OracleRdbms(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +963,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java index 82b3cf95..289431c5 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java similarity index 74% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java index 0330a888..221d96fb 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java +++ b/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,16 +44,15 @@ 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; } + private OracleSchema( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private OracleSchema( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - schemaName_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleTables_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + schemaName_ = s; + break; } - oracleTables_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleTable.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleTables_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oracleTables_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleTable.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private OracleSchema( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { oracleTables_ = java.util.Collections.unmodifiableList(oracleTables_); @@ -94,27 +115,33 @@ private OracleSchema( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object schemaName_; /** + * + * *
    * Schema name.
    * 
* * string schema_name = 1; + * * @return The schemaName. */ @java.lang.Override @@ -123,29 +150,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 { @@ -156,6 +183,8 @@ public java.lang.String getSchemaName() { public static final int ORACLE_TABLES_FIELD_NUMBER = 2; private java.util.List oracleTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -167,6 +196,8 @@ public java.util.List getOracl return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -174,11 +205,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.
    * 
@@ -190,6 +223,8 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -201,6 +236,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde return oracleTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -214,6 +251,7 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +263,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_); } @@ -246,8 +283,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +293,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +326,126 @@ 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() @@ -409,17 +453,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOracleTablesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +479,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 @@ -456,7 +500,8 @@ 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); int from_bitField0_ = bitField0_; result.schemaName_ = schemaName_; if (oracleTablesBuilder_ == null) { @@ -476,38 +521,39 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema 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.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; @@ -515,7 +561,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_; onChanged(); @@ -538,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSchema other oracleTablesBuilder_ = null; oracleTables_ = other.oracleTables_; bitField0_ = (bitField0_ & ~0x00000001); - oracleTablesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleTablesFieldBuilder() : null; + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleTablesFieldBuilder() + : null; } else { oracleTablesBuilder_.addAllMessages(other.oracleTables_); } @@ -565,7 +613,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.OracleSchema) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.OracleSchema) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,22 +623,25 @@ public Builder mergeFrom( } 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; @@ -598,20 +650,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 { @@ -619,72 +672,87 @@ 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) { + public Builder setSchemaName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schemaName_ = value; onChanged(); return this; } /** + * + * *
      * Schema name.
      * 
* * string schema_name = 1; + * * @return This builder for chaining. */ public Builder clearSchemaName() { - + schemaName_ = getDefaultInstance().getSchemaName(); onChanged(); 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) { + public Builder setSchemaNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schemaName_ = value; onChanged(); return this; } private java.util.List oracleTables_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleTablesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleTables_ = new java.util.ArrayList(oracleTables_); + oracleTables_ = + new java.util.ArrayList( + oracleTables_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -699,6 +767,8 @@ public java.util.List getOracl } } /** + * + * *
      * Tables in the schema.
      * 
@@ -713,6 +783,8 @@ public int getOracleTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -727,6 +799,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde } } /** + * + * *
      * Tables in the schema.
      * 
@@ -748,6 +822,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -766,6 +842,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -786,6 +864,8 @@ public Builder addOracleTables(com.google.cloud.datastream.v1alpha1.OracleTable return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -807,6 +887,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -825,6 +907,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -843,6 +927,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -853,8 +939,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); @@ -862,6 +947,8 @@ public Builder addAllOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -879,6 +966,8 @@ public Builder clearOracleTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -896,6 +985,8 @@ public Builder removeOracleTables(int index) { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -907,6 +998,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB return getOracleTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the schema.
      * 
@@ -916,19 +1009,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 { @@ -936,6 +1032,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } } /** + * + * *
      * Tables in the schema.
      * 
@@ -943,10 +1041,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.
      * 
@@ -955,37 +1055,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_ & 0x00000001) != 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_ & 0x00000001) != 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); } @@ -995,12 +1100,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(); } @@ -1009,16 +1114,16 @@ 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 { - return new OracleSchema(input, extensionRegistry); - } - }; + 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 { + return new OracleSchema(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java index 639a404f..b102cf53 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java index f5bfc34d..f87c784f 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java @@ -1,39 +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; /** + * + * *
  * 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; } + private OracleSourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private OracleSourceConfig( case 0: done = true; break; - case 10: { - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; - if (allowlist_ != null) { - subBuilder = allowlist_.toBuilder(); - } - allowlist_ = input.readMessage(com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(allowlist_); - allowlist_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; - if (rejectlist_ != null) { - subBuilder = rejectlist_.toBuilder(); + case 10: + { + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; + if (allowlist_ != null) { + subBuilder = allowlist_.toBuilder(); + } + allowlist_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allowlist_); + allowlist_ = subBuilder.buildPartial(); + } + + break; } - rejectlist_ = input.readMessage(com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rejectlist_); - rejectlist_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; + if (rejectlist_ != null) { + subBuilder = rejectlist_.toBuilder(); + } + rejectlist_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rejectlist_); + rejectlist_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +114,39 @@ private OracleSourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -127,18 +154,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.
    * 
@@ -153,11 +187,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB 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 @@ -165,18 +202,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.
    * 
@@ -189,6 +233,7 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +245,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()); } @@ -218,12 +262,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +275,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,117 +316,127 @@ 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() @@ -393,16 +444,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +472,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 @@ -443,7 +493,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); + com.google.cloud.datastream.v1alpha1.OracleSourceConfig result = + new com.google.cloud.datastream.v1alpha1.OracleSourceConfig(this); if (allowlistBuilder_ == null) { result.allowlist_ = allowlist_; } else { @@ -462,38 +513,39 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig 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.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; @@ -501,7 +553,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()); } @@ -527,7 +580,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,34 +593,47 @@ public Builder mergeFrom( 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 allowlistBuilder_ != null || allowlist_ != null; } /** + * + * *
      * 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.
      * 
@@ -587,6 +654,8 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms val return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -605,6 +674,8 @@ public Builder setAllowlist( return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -615,7 +686,9 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms v if (allowlistBuilder_ == null) { if (allowlist_ != null) { allowlist_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder(allowlist_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder(allowlist_) + .mergeFrom(value) + .buildPartial(); } else { allowlist_ = value; } @@ -627,6 +700,8 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -645,6 +720,8 @@ public Builder clearAllowlist() { return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -652,11 +729,13 @@ public Builder clearAllowlist() { * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; */ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getAllowlistBuilder() { - + onChanged(); return getAllowlistFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -667,11 +746,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.
      * 
@@ -679,14 +761,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_; @@ -694,34 +779,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 rejectlistBuilder_ != null || rejectlist_ != null; } /** + * + * *
      * 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.
      * 
@@ -742,6 +840,8 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -760,6 +860,8 @@ public Builder setRejectlist( return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -770,7 +872,9 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms if (rejectlistBuilder_ == null) { if (rejectlist_ != null) { rejectlist_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder(rejectlist_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder(rejectlist_) + .mergeFrom(value) + .buildPartial(); } else { rejectlist_ = value; } @@ -782,6 +886,8 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -800,6 +906,8 @@ public Builder clearRejectlist() { return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -807,11 +915,13 @@ public Builder clearRejectlist() { * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; */ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getRejectlistBuilder() { - + onChanged(); return getRejectlistFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -822,11 +932,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.
      * 
@@ -834,21 +947,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); } @@ -858,12 +974,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(); } @@ -872,16 +988,16 @@ 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 { - return new OracleSourceConfig(input, extensionRegistry); - } - }; + 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 { + return new OracleSourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1012,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java index 351b94f3..2a8dd4e1 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java similarity index 76% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java index 14e48641..ac0e2ed7 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java +++ b/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,16 +44,15 @@ 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; } + private OracleTable( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private OracleTable( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - tableName_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - oracleColumns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + tableName_ = s; + break; } - oracleColumns_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleColumns_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oracleColumns_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +106,7 @@ private OracleTable( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { oracleColumns_ = java.util.Collections.unmodifiableList(oracleColumns_); @@ -94,27 +115,33 @@ private OracleTable( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object tableName_; /** + * + * *
    * Table name.
    * 
* * string table_name = 1; + * * @return The tableName. */ @java.lang.Override @@ -123,29 +150,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 { @@ -156,6 +183,8 @@ public java.lang.String getTableName() { public static final int ORACLE_COLUMNS_FIELD_NUMBER = 2; private java.util.List oracleColumns_; /** + * + * *
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -169,6 +198,8 @@ public java.util.List getOrac
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -178,11 +209,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
@@ -196,6 +229,8 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -209,6 +244,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
@@ -224,6 +261,7 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -235,8 +273,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_);
     }
@@ -256,8 +293,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -267,17 +303,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -300,118 +335,127 @@ 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() @@ -419,17 +463,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getOracleColumnsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +489,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 @@ -466,7 +510,8 @@ 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); int from_bitField0_ = bitField0_; result.tableName_ = tableName_; if (oracleColumnsBuilder_ == null) { @@ -486,38 +531,39 @@ public com.google.cloud.datastream.v1alpha1.OracleTable 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.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; @@ -525,7 +571,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_; onChanged(); @@ -548,9 +595,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleTable other) oracleColumnsBuilder_ = null; oracleColumns_ = other.oracleColumns_; bitField0_ = (bitField0_ & ~0x00000001); - oracleColumnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOracleColumnsFieldBuilder() : null; + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOracleColumnsFieldBuilder() + : null; } else { oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); } @@ -584,22 +632,25 @@ public Builder mergeFrom( } 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; @@ -608,20 +659,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 { @@ -629,72 +681,87 @@ 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) { + public Builder setTableName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + tableName_ = value; onChanged(); return this; } /** + * + * *
      * Table name.
      * 
* * string table_name = 1; + * * @return This builder for chaining. */ public Builder clearTableName() { - + tableName_ = getDefaultInstance().getTableName(); onChanged(); 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) { + public Builder setTableNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tableName_ = value; onChanged(); return this; } private java.util.List oracleColumns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureOracleColumnsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - oracleColumns_ = new java.util.ArrayList(oracleColumns_); + oracleColumns_ = + new java.util.ArrayList( + oracleColumns_); bitField0_ |= 0x00000001; - } + } } 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
@@ -703,7 +770,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 {
@@ -711,6 +779,8 @@ public java.util.List getOrac
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -727,6 +797,8 @@ public int getOracleColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -743,6 +815,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
@@ -766,6 +840,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -786,6 +862,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -808,6 +886,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
@@ -831,6 +911,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -851,6 +933,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -871,6 +955,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -883,8 +969,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);
@@ -892,6 +977,8 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -911,6 +998,8 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -930,6 +1019,8 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -943,6 +1034,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
@@ -954,11 +1047,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
@@ -967,8 +1063,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 {
@@ -976,6 +1072,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -985,10 +1083,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
@@ -999,10 +1099,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
@@ -1011,16 +1114,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_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1029,9 +1138,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);
     }
 
@@ -1041,12 +1150,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();
   }
@@ -1055,16 +1164,16 @@ 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 {
-      return new OracleTable(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new OracleTable(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1079,6 +1188,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
index f47acc07..effd7072 100644
--- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
+++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
similarity index 63%
rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
index d0b59970..e957ac43 100644
--- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
+++ b/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,16 +46,15 @@ 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;
   }
+
   private PrivateConnection(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,96 +74,110 @@ private PrivateConnection(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            displayName_ = s;
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 58: {
-            com.google.cloud.datastream.v1alpha1.Error.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+              state_ = rawValue;
+              break;
             }
-            error_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.cloud.datastream.v1alpha1.Error.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 802: {
-            com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder subBuilder = null;
-            if (vpcPeeringConfig_ != null) {
-              subBuilder = vpcPeeringConfig_.toBuilder();
-            }
-            vpcPeeringConfig_ = input.readMessage(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(vpcPeeringConfig_);
-              vpcPeeringConfig_ = subBuilder.buildPartial();
+          case 802:
+            {
+              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder subBuilder = null;
+              if (vpcPeeringConfig_ != null) {
+                subBuilder = vpcPeeringConfig_.toBuilder();
+              }
+              vpcPeeringConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(vpcPeeringConfig_);
+                vpcPeeringConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -154,52 +185,54 @@ private PrivateConnection(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -208,6 +241,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The private connection has been created with all of it's resources.
      * 
@@ -216,6 +251,8 @@ public enum State */ CREATED(2), /** + * + * *
      * The private connection creation has failed.
      * 
@@ -226,11 +263,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.
      * 
@@ -239,6 +276,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The private connection has been created with all of it's resources.
      * 
@@ -247,6 +286,8 @@ public enum State */ public static final int CREATED_VALUE = 2; /** + * + * *
      * The private connection creation has failed.
      * 
@@ -255,7 +296,6 @@ public enum State */ public static final int FAILED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -280,50 +320,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; @@ -343,11 +386,14 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; 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 @@ -356,29 +402,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 { @@ -389,11 +435,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 @@ -401,11 +451,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 @@ -413,11 +467,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() { @@ -427,11 +484,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 @@ -439,11 +500,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 @@ -451,11 +516,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() { @@ -463,24 +531,23 @@ 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, + ""); } - 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_; } @@ -489,28 +556,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -518,11 +587,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -530,16 +600,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -547,12 +617,11 @@ public 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(); } @@ -562,11 +631,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -575,29 +647,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 { @@ -608,38 +680,58 @@ public java.lang.String getDisplayName() { public static final int STATE_FIELD_NUMBER = 6; private int 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 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() { + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.PrivateConnection.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = com.google.cloud.datastream.v1alpha1.PrivateConnection.State.valueOf(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.valueOf(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 @@ -647,23 +739,34 @@ 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() { @@ -673,11 +776,14 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { 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 @@ -685,18 +791,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
    * 
@@ -704,11 +817,13 @@ 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() { + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder + getVpcPeeringConfigOrBuilder() { return getVpcPeeringConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -720,8 +835,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_); } @@ -731,16 +845,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) { @@ -762,37 +874,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -802,39 +911,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -879,96 +982,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.
@@ -976,43 +1087,43 @@ 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()
@@ -1020,16 +1131,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1068,9 +1178,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
@@ -1089,7 +1199,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);
+      com.google.cloud.datastream.v1alpha1.PrivateConnection result =
+          new com.google.cloud.datastream.v1alpha1.PrivateConnection(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -1124,38 +1235,39 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection 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.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;
@@ -1163,7 +1275,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_;
         onChanged();
@@ -1174,8 +1287,7 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnection
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(
-          other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -1208,7 +1320,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datastream.v1alpha1.PrivateConnection) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datastream.v1alpha1.PrivateConnection) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1217,22 +1330,25 @@ public Builder mergeFrom(
       }
       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; @@ -1241,20 +1357,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 { @@ -1262,54 +1379,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1317,39 +1441,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1365,14 +1508,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(); onChanged(); @@ -1383,17 +1529,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1405,11 +1555,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() { if (createTimeBuilder_ == null) { @@ -1423,48 +1577,64 @@ 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() { - + onChanged(); 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_; @@ -1472,39 +1642,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1520,14 +1709,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(); onChanged(); @@ -1538,17 +1730,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1560,11 +1756,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() { if (updateTimeBuilder_ == null) { @@ -1578,69 +1778,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1652,28 +1867,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -1681,11 +1898,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1693,16 +1911,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -1710,12 +1929,11 @@ public 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(); } @@ -1723,81 +1941,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -1806,20 +2023,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 { @@ -1827,54 +2045,61 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1882,51 +2107,75 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.PrivateConnection.State result = com.google.cloud.datastream.v1alpha1.PrivateConnection.State.valueOf(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.valueOf(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. */ @@ -1934,21 +2183,26 @@ public Builder setState(com.google.cloud.datastream.v1alpha1.PrivateConnection.S if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); 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() { - + state_ = 0; onChanged(); return this; @@ -1956,39 +2210,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 errorBuilder_ != null || 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. */ 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) { @@ -2004,14 +2277,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(); onChanged(); @@ -2022,17 +2298,23 @@ 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 (error_ != null) { error_ = - com.google.cloud.datastream.v1alpha1.Error.newBuilder(error_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.Error.newBuilder(error_) + .mergeFrom(value) + .buildPartial(); } else { error_ = value; } @@ -2044,11 +2326,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() { if (errorBuilder_ == null) { @@ -2062,48 +2348,64 @@ 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() { - + onChanged(); 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_; @@ -2111,41 +2413,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 vpcPeeringConfigBuilder_ != null || vpcPeeringConfig_ != null; } /** + * + * *
      * 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(); @@ -2159,6 +2475,8 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeri return this; } /** + * + * *
      * VPC Peering Config
      * 
@@ -2177,17 +2495,22 @@ 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 (vpcPeeringConfig_ != null) { vpcPeeringConfig_ = - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.newBuilder(vpcPeeringConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.newBuilder(vpcPeeringConfig_) + .mergeFrom(value) + .buildPartial(); } else { vpcPeeringConfig_ = value; } @@ -2199,6 +2522,8 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPee return this; } /** + * + * *
      * VPC Peering Config
      * 
@@ -2217,33 +2542,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() { + 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
      * 
@@ -2251,21 +2585,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); } @@ -2275,12 +2612,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(); } @@ -2289,16 +2626,16 @@ 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 { - return new PrivateConnection(input, extensionRegistry); - } - }; + 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 { + return new PrivateConnection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2313,6 +2650,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java index 26f21dc9..b0b0d4da 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java +++ b/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.
    * 
@@ -122,106 +168,143 @@ boolean containsLabels( */ /* 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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java index 40d3ab2b..77fa9aff 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java @@ -1,40 +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; /** + * + * *
  * 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; } + private PrivateConnectivity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private PrivateConnectivity( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - privateConnectionName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + privateConnectionName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,30 +91,33 @@ private PrivateConnectivity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object privateConnectionName_; /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The privateConnectionName. */ @java.lang.Override @@ -105,8 +126,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; @@ -114,16 +134,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 { @@ -132,6 +151,7 @@ public java.lang.String getPrivateConnectionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -143,8 +163,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_); } @@ -168,15 +187,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -196,117 +215,127 @@ 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() @@ -314,16 +343,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -333,9 +361,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 @@ -354,7 +382,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); + com.google.cloud.datastream.v1alpha1.PrivateConnectivity result = + new com.google.cloud.datastream.v1alpha1.PrivateConnectivity(this); result.privateConnectionName_ = privateConnectionName_; onBuilt(); return result; @@ -364,38 +393,39 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity 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.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; @@ -403,7 +433,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_; onChanged(); @@ -427,7 +458,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -440,13 +472,13 @@ public Builder mergeFrom( 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; @@ -456,15 +488,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 { @@ -473,48 +504,49 @@ 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) { + public Builder setPrivateConnectionName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + privateConnectionName_ = value; onChanged(); return this; } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPrivateConnectionName() { - + privateConnectionName_ = getDefaultInstance().getPrivateConnectionName(); onChanged(); return this; } /** * 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) { + public Builder setPrivateConnectionNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + privateConnectionName_ = 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); } @@ -524,12 +556,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(); } @@ -538,16 +570,16 @@ 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 { - return new PrivateConnectivity(input, extensionRegistry); - } - }; + 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 { + return new PrivateConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -562,6 +594,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java new file mode 100644 index 00000000..b5cbb65e --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java index d57d7832..a43f558e 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java +++ b/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,16 +46,15 @@ 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;
   }
+
   private Route(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,75 +74,82 @@ private Route(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              name_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labels_ =
+                    com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labels__ =
+                  input.readMessage(
+                      LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+              labels_.getMutableMap().put(labels__.getKey(), labels__.getValue());
+              break;
             }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labels_ = com.google.protobuf.MapField.newMapField(
-                  LabelsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              displayName_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labels__ = input.readMessage(
-                LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labels_.getMutableMap().put(
-                labels__.getKey(), labels__.getValue());
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            destinationAddress_ = s;
-            break;
-          }
-          case 56: {
-
-            destinationPort_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              destinationAddress_ = s;
+              break;
+            }
+          case 56:
+            {
+              destinationPort_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -133,46 +157,50 @@ private Route(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -181,29 +209,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 { @@ -214,11 +242,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 @@ -226,11 +258,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 @@ -238,11 +274,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() { @@ -252,11 +291,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 @@ -264,11 +307,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 @@ -276,11 +323,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() { @@ -288,24 +338,23 @@ 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, + ""); } - 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_; } @@ -314,28 +363,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -343,11 +394,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -355,16 +407,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -372,12 +424,11 @@ public 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(); } @@ -387,11 +438,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -400,29 +454,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 { @@ -433,11 +487,14 @@ public java.lang.String getDisplayName() { public static final int DESTINATION_ADDRESS_FIELD_NUMBER = 6; 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 @@ -446,29 +503,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 { @@ -479,11 +536,14 @@ public java.lang.String getDestinationAddress() { public static final int DESTINATION_PORT_FIELD_NUMBER = 7; private int destinationPort_; /** + * + * *
    * Destination port for connection
    * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -492,6 +552,7 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -503,8 +564,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_); } @@ -514,12 +574,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_); } @@ -542,22 +598,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_); @@ -566,8 +620,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -577,33 +630,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -640,97 +687,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.
@@ -738,43 +792,43 @@ 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()
@@ -782,16 +836,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -820,9 +873,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
@@ -841,7 +894,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);
+      com.google.cloud.datastream.v1alpha1.Route result =
+          new com.google.cloud.datastream.v1alpha1.Route(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (createTimeBuilder_ == null) {
@@ -867,38 +921,39 @@ public com.google.cloud.datastream.v1alpha1.Route 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.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;
@@ -917,8 +972,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());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -958,22 +1012,25 @@ public Builder mergeFrom(
       }
       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; @@ -982,20 +1039,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 { @@ -1003,54 +1061,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1058,39 +1123,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1106,14 +1190,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(); onChanged(); @@ -1124,17 +1211,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1146,11 +1237,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() { if (createTimeBuilder_ == null) { @@ -1164,48 +1259,64 @@ 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() { - + onChanged(); 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_; @@ -1213,39 +1324,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1261,14 +1391,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(); onChanged(); @@ -1279,17 +1412,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1301,11 +1438,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() { if (updateTimeBuilder_ == null) { @@ -1319,69 +1460,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1393,28 +1549,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -1422,11 +1580,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1434,16 +1593,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -1451,12 +1611,11 @@ public 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(); } @@ -1464,81 +1623,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -1547,20 +1705,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 { @@ -1568,54 +1727,61 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -1623,18 +1789,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; @@ -1643,20 +1811,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 { @@ -1664,66 +1833,76 @@ 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) { + public Builder setDestinationAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destinationAddress_ = value; 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() { - + destinationAddress_ = getDefaultInstance().getDestinationAddress(); onChanged(); 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) { + public Builder setDestinationAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationAddress_ = value; onChanged(); return this; } - private int destinationPort_ ; + private int destinationPort_; /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return The destinationPort. */ @java.lang.Override @@ -1731,37 +1910,43 @@ 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; onChanged(); return this; } /** + * + * *
      * Destination port for connection
      * 
* * int32 destination_port = 7; + * * @return This builder for chaining. */ public Builder clearDestinationPort() { - + destinationPort_ = 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); } @@ -1771,12 +1956,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(); } @@ -1785,16 +1970,16 @@ 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 { - return new Route(input, extensionRegistry); - } - }; + 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 { + return new Route(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1809,6 +1994,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java index 33068b2f..ea7286db 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java +++ b/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.
    * 
@@ -122,67 +168,80 @@ boolean containsLabels( */ /* 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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java index c2b5caf8..42be3f0d 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java similarity index 68% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java index 9a0b5813..c15827f5 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java @@ -1,40 +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; /** + * + * *
  * 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; } + private SourceConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,60 @@ private SourceConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sourceConnectionProfileName_ = s; - break; - } - case 802: { - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder subBuilder = null; - if (sourceStreamConfigCase_ == 100) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_).toBuilder(); - } - sourceStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.OracleSourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); - sourceStreamConfig_ = subBuilder.buildPartial(); + sourceConnectionProfileName_ = s; + break; } - sourceStreamConfigCase_ = 100; - break; - } - case 810: { - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder subBuilder = null; - if (sourceStreamConfigCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_).toBuilder(); + case 802: + { + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 100) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.OracleSourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 100; + break; } - sourceStreamConfig_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); - sourceStreamConfig_ = subBuilder.buildPartial(); + case 810: + { + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder subBuilder = null; + if (sourceStreamConfigCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) + .toBuilder(); + } + sourceStreamConfig_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + sourceStreamConfig_ = subBuilder.buildPartial(); + } + sourceStreamConfigCase_ = 101; + break; } - sourceStreamConfigCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,35 +131,40 @@ private SourceConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; } @@ -145,31 +180,38 @@ 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; 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 @@ -178,29 +220,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 { @@ -210,11 +253,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 @@ -222,21 +268,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
    * 
@@ -244,20 +295,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 @@ -265,21 +320,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
    * 
@@ -287,14 +347,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; @@ -306,16 +368,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_); } unknownFields.writeTo(output); } @@ -327,15 +390,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -345,24 +411,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: @@ -398,117 +463,126 @@ 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() @@ -516,16 +590,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -537,9 +610,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 @@ -558,7 +631,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); + com.google.cloud.datastream.v1alpha1.SourceConfig result = + new com.google.cloud.datastream.v1alpha1.SourceConfig(this); result.sourceConnectionProfileName_ = sourceConnectionProfileName_; if (sourceStreamConfigCase_ == 100) { if (oracleSourceConfigBuilder_ == null) { @@ -583,38 +657,39 @@ public com.google.cloud.datastream.v1alpha1.SourceConfig 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.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; @@ -622,23 +697,27 @@ 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_; 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.unknownFields); onChanged(); @@ -659,7 +738,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.SourceConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.SourceConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -668,12 +748,12 @@ public Builder mergeFrom( } 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() { @@ -683,21 +763,23 @@ public Builder clearSourceStreamConfig() { return this; } - 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; @@ -706,20 +788,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 { @@ -727,67 +811,83 @@ 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) { + public Builder setSourceConnectionProfileName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sourceConnectionProfileName_ = value; 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() { - + sourceConnectionProfileName_ = getDefaultInstance().getSourceConnectionProfileName(); 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]; + * + * * @param value The bytes for sourceConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileNameBytes( - com.google.protobuf.ByteString value) { + public Builder setSourceConnectionProfileNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceConnectionProfileName_ = value; onChanged(); return this; } 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 @@ -795,11 +895,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 @@ -817,13 +920,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(); @@ -837,6 +943,8 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1alpha1.Oracle return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -855,18 +963,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; } @@ -882,6 +997,8 @@ public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1alpha1.Orac return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -905,16 +1022,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
      * 
@@ -922,7 +1044,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 { @@ -933,6 +1056,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracl } } /** + * + * *
      * Oracle data source configuration
      * 
@@ -940,32 +1065,45 @@ 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()); sourceStreamConfig_ = null; } sourceStreamConfigCase_ = 100; - onChanged();; + onChanged(); + ; return oracleSourceConfigBuilder_; } 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 @@ -973,11 +1111,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 @@ -995,13 +1136,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(); @@ -1015,6 +1159,8 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSo return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1033,18 +1179,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; } @@ -1060,6 +1213,8 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.Mysql return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1083,16 +1238,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
      * 
@@ -1100,7 +1260,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 { @@ -1111,6 +1272,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlS } } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1118,26 +1281,33 @@ 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()); sourceStreamConfig_ = null; } sourceStreamConfigCase_ = 101; - onChanged();; + 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); } @@ -1147,12 +1317,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(); } @@ -1161,16 +1331,16 @@ 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 { - return new SourceConfig(input, extensionRegistry); - } - }; + 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 { + return new SourceConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1185,6 +1355,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java similarity index 72% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java index 158bed90..561e3858 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java similarity index 64% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java index b33caa7c..f2a97451 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java @@ -1,39 +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; /** + * + * *
  * 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; } + private StaticServiceIpConnectivity( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private StaticServiceIpConnectivity( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private StaticServiceIpConnectivity( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ 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() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,13 +304,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(); } @@ -297,7 +326,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; } @@ -306,46 +336,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.unknownFields); onChanged(); return this; @@ -365,7 +399,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +410,9 @@ public Builder mergeFrom( } 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); } @@ -386,30 +422,32 @@ 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 { - return new StaticServiceIpConnectivity(input, extensionRegistry); - } - }; + 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 { + return new StaticServiceIpConnectivity(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -421,9 +459,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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java new file mode 100644 index 00000000..c157c67a --- /dev/null +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java index 58ae4739..ab9bd544 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java +++ b/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,16 +38,15 @@ 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; } + private Stream( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,133 +66,168 @@ private Stream( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + name_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + displayName_ = s; + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + case 50: + { + com.google.cloud.datastream.v1alpha1.SourceConfig.Builder subBuilder = null; + if (sourceConfig_ != null) { + subBuilder = sourceConfig_.toBuilder(); + } + sourceConfig_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.SourceConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceConfig_); + sourceConfig_ = subBuilder.buildPartial(); + } - displayName_ = s; - break; - } - case 50: { - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder subBuilder = null; - if (sourceConfig_ != null) { - subBuilder = sourceConfig_.toBuilder(); - } - sourceConfig_ = input.readMessage(com.google.cloud.datastream.v1alpha1.SourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceConfig_); - sourceConfig_ = subBuilder.buildPartial(); + break; } + case 58: + { + com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder subBuilder = null; + if (destinationConfig_ != null) { + subBuilder = destinationConfig_.toBuilder(); + } + destinationConfig_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.DestinationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(destinationConfig_); + destinationConfig_ = subBuilder.buildPartial(); + } - break; - } - case 58: { - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder subBuilder = null; - if (destinationConfig_ != null) { - subBuilder = destinationConfig_.toBuilder(); - } - destinationConfig_ = input.readMessage(com.google.cloud.datastream.v1alpha1.DestinationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(destinationConfig_); - destinationConfig_ = subBuilder.buildPartial(); + break; } + case 64: + { + int rawValue = input.readEnum(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - errors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - errors_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry)); - break; - } - case 810: { - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder subBuilder = null; - if (backfillStrategyCase_ == 101) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_).toBuilder(); + state_ = rawValue; + break; } - backfillStrategy_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); - backfillStrategy_ = subBuilder.buildPartial(); + case 74: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + errors_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry)); + break; } - backfillStrategyCase_ = 101; - break; - } - case 818: { - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder subBuilder = null; - if (backfillStrategyCase_ == 102) { - subBuilder = ((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_).toBuilder(); + case 810: + { + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder subBuilder = + null; + if (backfillStrategyCase_ == 101) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) + backfillStrategy_) + .toBuilder(); + } + backfillStrategy_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) + backfillStrategy_); + backfillStrategy_ = subBuilder.buildPartial(); + } + backfillStrategyCase_ = 101; + break; } - backfillStrategy_ = - input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); - backfillStrategy_ = subBuilder.buildPartial(); + case 818: + { + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder subBuilder = + null; + if (backfillStrategyCase_ == 102) { + subBuilder = + ((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + backfillStrategy_) + .toBuilder(); + } + backfillStrategy_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + backfillStrategy_); + backfillStrategy_ = subBuilder.buildPartial(); + } + backfillStrategyCase_ = 102; + break; } - backfillStrategyCase_ = 102; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -187,8 +235,7 @@ private Stream( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -197,41 +244,46 @@ private Stream( makeExtensionsImmutable(); } } - 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.
      * 
@@ -240,6 +292,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The stream has been created.
      * 
@@ -248,6 +302,8 @@ public enum State */ CREATED(1), /** + * + * *
      * The stream is running.
      * 
@@ -256,6 +312,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The stream is paused.
      * 
@@ -264,6 +322,8 @@ public enum State */ PAUSED(3), /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -273,6 +333,8 @@ public enum State
      */
     MAINTENANCE(4),
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -282,6 +344,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -290,6 +354,8 @@ public enum State */ FAILED_PERMANENTLY(6), /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -298,6 +364,8 @@ public enum State */ STARTING(7), /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -310,6 +378,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified stream state.
      * 
@@ -318,6 +388,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The stream has been created.
      * 
@@ -326,6 +398,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * The stream is running.
      * 
@@ -334,6 +408,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The stream is paused.
      * 
@@ -342,6 +418,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.
@@ -351,6 +429,8 @@ public enum State
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -360,6 +440,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -368,6 +450,8 @@ public enum State */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -376,6 +460,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.
@@ -385,7 +471,6 @@ public enum State
      */
     public static final int DRAINING_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -410,55 +495,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;
@@ -475,29 +566,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.
      * 
@@ -507,24 +607,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.
      * 
@@ -533,9 +641,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.
@@ -543,30 +654,29 @@ 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;
     }
+
     private BackfillAllStrategy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -585,41 +695,53 @@ private BackfillAllStrategy(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null;
-              if (excludedObjectsCase_ == 1) {
-                subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_).toBuilder();
-              }
-              excludedObjects_ =
-                  input.readMessage(com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_);
-                excludedObjects_ = subBuilder.buildPartial();
+            case 10:
+              {
+                com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null;
+                if (excludedObjectsCase_ == 1) {
+                  subBuilder =
+                      ((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_)
+                          .toBuilder();
+                }
+                excludedObjects_ =
+                    input.readMessage(
+                        com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_);
+                  excludedObjects_ = subBuilder.buildPartial();
+                }
+                excludedObjectsCase_ = 1;
+                break;
               }
-              excludedObjectsCase_ = 1;
-              break;
-            }
-            case 18: {
-              com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null;
-              if (excludedObjectsCase_ == 2) {
-                subBuilder = ((com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_).toBuilder();
+            case 18:
+              {
+                com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder subBuilder = null;
+                if (excludedObjectsCase_ == 2) {
+                  subBuilder =
+                      ((com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_)
+                          .toBuilder();
+                }
+                excludedObjects_ =
+                    input.readMessage(
+                        com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(
+                      (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_);
+                  excludedObjects_ = subBuilder.buildPartial();
+                }
+                excludedObjectsCase_ = 2;
+                break;
               }
-              excludedObjects_ =
-                  input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_);
-                excludedObjects_ = subBuilder.buildPartial();
-              }
-              excludedObjectsCase_ = 2;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -627,35 +749,40 @@ private BackfillAllStrategy(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    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;
       }
@@ -671,30 +798,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 @@ -702,21 +835,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.
      * 
@@ -724,20 +862,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 @@ -745,21 +887,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.
      * 
@@ -767,14 +914,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; @@ -786,8 +935,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_); } @@ -804,12 +952,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -819,22 +969,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: @@ -868,87 +1017,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 @@ -958,6 +1115,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -965,38 +1124,41 @@ 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()
+      // Construct using
+      // com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder()
       private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1006,13 +1168,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();
       }
 
@@ -1027,7 +1190,8 @@ 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);
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy result =
+            new com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy(this);
         if (excludedObjectsCase_ == 1) {
           if (oracleExcludedObjectsBuilder_ == null) {
             result.excludedObjects_ = excludedObjects_;
@@ -1051,58 +1215,67 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy buildPart
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.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.unknownFields);
         onChanged();
@@ -1123,7 +1296,9 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
+                  e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1132,12 +1307,12 @@ public Builder mergeFrom(
         }
         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() {
@@ -1147,15 +1322,20 @@ public Builder clearExcludedObjects() {
         return this;
       }
 
-
       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 @@ -1163,11 +1343,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 @@ -1185,13 +1368,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(); @@ -1205,6 +1391,8 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.Ora return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1223,18 +1411,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; } @@ -1250,6 +1445,8 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.O return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1273,16 +1470,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.
        * 
@@ -1290,7 +1492,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 { @@ -1301,6 +1504,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExclud } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1308,32 +1513,45 @@ 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()); excludedObjects_ = null; } excludedObjectsCase_ = 1; - onChanged();; + onChanged(); + ; return oracleExcludedObjectsBuilder_; } 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 @@ -1341,11 +1559,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 @@ -1363,13 +1584,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(); @@ -1383,6 +1607,8 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.Mysq return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1401,18 +1627,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; } @@ -1428,6 +1661,8 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.My return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1451,16 +1686,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.
        * 
@@ -1468,7 +1708,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 { @@ -1479,6 +1720,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcluded } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1486,23 +1729,30 @@ 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()); excludedObjects_ = null; } excludedObjectsCase_ = 2; - onChanged();; + onChanged(); + ; return mysqlExcludedObjectsBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1515,30 +1765,32 @@ 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 { - return new BackfillAllStrategy(input, extensionRegistry); - } - }; + 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 { + return new BackfillAllStrategy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1550,47 +1802,48 @@ 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; } + private BackfillNoneStrategy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -1609,13 +1862,13 @@ private BackfillNoneStrategy( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1623,27 +1876,30 @@ private BackfillNoneStrategy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -1655,8 +1911,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 { unknownFields.writeTo(output); } @@ -1674,12 +1929,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1698,87 +1954,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 @@ -1788,44 +2052,49 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1833,14 +2102,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 @@ -1854,7 +2125,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; } @@ -1863,46 +2135,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.unknownFields); onChanged(); return this; @@ -1922,7 +2201,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1931,6 +2212,7 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1943,30 +2225,32 @@ 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 { - return new BackfillNoneStrategy(input, extensionRegistry); - } - }; + 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 { + return new BackfillNoneStrategy(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1978,21 +2262,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; } @@ -2008,31 +2295,37 @@ 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; 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 @@ -2041,29 +2334,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 { @@ -2074,11 +2367,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 @@ -2086,11 +2383,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 @@ -2098,11 +2399,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() { @@ -2112,11 +2416,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 @@ -2124,11 +2432,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 @@ -2136,11 +2448,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() { @@ -2148,24 +2463,23 @@ 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, + ""); } - 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_; } @@ -2174,28 +2488,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
    * Labels.
    * 
* * 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.
    * 
@@ -2203,11 +2519,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -2215,16 +2532,16 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, 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.
    * 
@@ -2232,12 +2549,11 @@ public 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(); } @@ -2247,11 +2563,14 @@ public java.lang.String getLabelsOrThrow( public static final int DISPLAY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ @java.lang.Override @@ -2260,29 +2579,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 { @@ -2293,11 +2612,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 @@ -2305,23 +2629,34 @@ 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() { @@ -2331,11 +2666,16 @@ public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfi 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 @@ -2343,64 +2683,88 @@ 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() { + public com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder + getDestinationConfigOrBuilder() { return getDestinationConfig(); } public static final int STATE_FIELD_NUMBER = 8; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.Stream.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.Stream.State result = com.google.cloud.datastream.v1alpha1.Stream.State.valueOf(state_); + com.google.cloud.datastream.v1alpha1.Stream.State result = + com.google.cloud.datastream.v1alpha1.Stream.State.valueOf(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 @@ -2408,22 +2772,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.
@@ -2432,20 +2801,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 @@ -2453,21 +2826,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.
    * 
@@ -2475,9 +2853,10 @@ 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(); } @@ -2485,64 +2864,84 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategyOrBuilder public static final int ERRORS_FIELD_NUMBER = 9; 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; @@ -2554,8 +2953,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_); } @@ -2565,12 +2963,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_); } @@ -2587,10 +2981,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_); } unknownFields.writeTo(output); } @@ -2605,49 +3002,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2657,51 +3052,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: @@ -2764,136 +3150,139 @@ 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() @@ -2901,17 +3290,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getErrorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -2958,9 +3347,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 @@ -2979,7 +3368,8 @@ 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); int from_bitField0_ = bitField0_; result.name_ = name_; if (createTimeBuilder_ == null) { @@ -3038,38 +3428,39 @@ public com.google.cloud.datastream.v1alpha1.Stream 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.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; @@ -3088,8 +3479,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()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -3121,26 +3511,30 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream other) { errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000002); - 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.unknownFields); onChanged(); @@ -3170,12 +3564,12 @@ public Builder mergeFrom( } 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() { @@ -3189,18 +3583,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; @@ -3209,20 +3605,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 { @@ -3230,54 +3627,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -3285,39 +3689,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 createTimeBuilder_ != null || 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. */ 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) { @@ -3333,14 +3756,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(); onChanged(); @@ -3351,17 +3777,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3373,11 +3803,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() { if (createTimeBuilder_ == null) { @@ -3391,48 +3825,64 @@ 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() { - + onChanged(); 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_; @@ -3440,39 +3890,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3488,14 +3957,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(); onChanged(); @@ -3506,17 +3978,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3528,11 +4004,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() { if (updateTimeBuilder_ == null) { @@ -3546,69 +4026,84 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -3620,28 +4115,30 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** + * + * *
      * Labels.
      * 
* * 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.
      * 
@@ -3649,11 +4146,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -3661,16 +4159,17 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, 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.
      * 
@@ -3678,12 +4177,11 @@ public 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(); } @@ -3691,81 +4189,80 @@ public java.lang.String getLabelsOrThrow( } public Builder clearLabels() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableLabels().getMutableMap() - .put(key, value); + internalGetMutableLabels().getMutableMap().put(key, value); 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); 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; @@ -3774,20 +4271,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 { @@ -3795,54 +4293,61 @@ 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) { + public Builder setDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + displayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); 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) { + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; onChanged(); return this; @@ -3850,39 +4355,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 sourceConfigBuilder_ != null || 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. */ 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) { @@ -3898,11 +4422,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) { @@ -3916,17 +4444,23 @@ 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 (sourceConfig_ != null) { sourceConfig_ = - com.google.cloud.datastream.v1alpha1.SourceConfig.newBuilder(sourceConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.SourceConfig.newBuilder(sourceConfig_) + .mergeFrom(value) + .buildPartial(); } else { sourceConfig_ = value; } @@ -3938,11 +4472,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() { if (sourceConfigBuilder_ == null) { @@ -3956,48 +4494,64 @@ 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() { - + onChanged(); 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_; @@ -4005,41 +4559,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 destinationConfigBuilder_ != null || 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. */ 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(); @@ -4053,11 +4627,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) { @@ -4071,17 +4649,24 @@ 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 (destinationConfig_ != null) { destinationConfig_ = - com.google.cloud.datastream.v1alpha1.DestinationConfig.newBuilder(destinationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.DestinationConfig.newBuilder(destinationConfig_) + .mergeFrom(value) + .buildPartial(); } else { destinationConfig_ = value; } @@ -4093,11 +4678,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() { if (destinationConfigBuilder_ == null) { @@ -4111,48 +4700,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() { + 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_; @@ -4160,51 +4767,67 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.Stream.State result = com.google.cloud.datastream.v1alpha1.Stream.State.valueOf(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.valueOf(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. */ @@ -4212,35 +4835,44 @@ public Builder setState(com.google.cloud.datastream.v1alpha1.Stream.State value) if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } 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 @@ -4248,19 +4880,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 { @@ -4271,6 +4907,8 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi } } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4278,7 +4916,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();
@@ -4292,6 +4931,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.
@@ -4311,6 +4952,8 @@ public Builder setBackfillAll(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4318,12 +4961,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;
         }
@@ -4339,6 +4989,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.
@@ -4363,6 +5015,8 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4370,10 +5024,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.
@@ -4382,17 +5039,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.
@@ -4401,32 +5062,46 @@ 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());
         backfillStrategy_ = null;
       }
       backfillStrategyCase_ = 101;
-      onChanged();;
+      onChanged();
+      ;
       return backfillAllBuilder_;
     }
 
     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 @@ -4434,35 +5109,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(); @@ -4476,11 +5162,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) { @@ -4494,18 +5183,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; } @@ -4521,11 +5220,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) { @@ -4544,77 +5246,106 @@ 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; } backfillStrategyCase_ = 102; - onChanged();; + onChanged(); + ; return backfillNoneBuilder_; } private java.util.List errors_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { errors_ = new java.util.ArrayList(errors_); bitField0_ |= 0x00000002; - } + } } 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) { @@ -4624,11 +5355,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) { @@ -4638,11 +5373,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) { @@ -4652,14 +5391,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(); @@ -4673,11 +5415,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) { @@ -4691,11 +5437,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) { @@ -4711,14 +5461,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(); @@ -4732,14 +5485,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()); @@ -4750,11 +5506,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) { @@ -4768,18 +5528,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); @@ -4787,11 +5550,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) { @@ -4804,11 +5571,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) { @@ -4821,39 +5592,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 { @@ -4861,56 +5643,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_ & 0x00000002) != 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_ & 0x00000002) != 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); } @@ -4920,12 +5716,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(); } @@ -4934,16 +5730,16 @@ 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 { - return new Stream(input, extensionRegistry); - } - }; + 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 { + return new Stream(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4958,6 +5754,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java similarity index 67% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java index 573aa551..82cef019 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java +++ b/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.
    * 
@@ -122,135 +168,182 @@ boolean containsLabels( */ /* 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.
@@ -258,78 +351,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java similarity index 69% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java index 94a78a97..eb5443a0 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java @@ -1,36 +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; -/** - * 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; } + private UpdateConnectionProfileRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,45 +63,52 @@ private UpdateConnectionProfileRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; - if (connectionProfile_ != null) { - subBuilder = connectionProfile_.toBuilder(); - } - connectionProfile_ = input.readMessage(com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connectionProfile_); - connectionProfile_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); + } + connectionProfile_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + requestId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,29 +116,33 @@ private UpdateConnectionProfileRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
@@ -126,7 +151,9 @@ private UpdateConnectionProfileRequest(
    * 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 @@ -134,6 +161,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.
@@ -142,7 +171,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 @@ -150,6 +181,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.
@@ -158,7 +191,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() { @@ -168,11 +202,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 @@ -180,32 +219,46 @@ 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() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder + getConnectionProfileOrBuilder() { return getConnectionProfile(); } public static final int REQUEST_ID_FIELD_NUMBER = 3; 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
@@ -221,6 +274,7 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -229,14 +283,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
@@ -252,16 +307,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 { @@ -270,6 +324,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,8 +336,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()); } @@ -302,12 +356,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_); @@ -320,25 +372,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -366,130 +416,137 @@ 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() + // Construct using + // com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -511,14 +568,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 @@ -532,7 +591,8 @@ 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); + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest result = + new com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -552,46 +612,51 @@ public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest build public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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()); } @@ -621,7 +686,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -633,8 +700,13 @@ public Builder mergeFrom( 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.
@@ -643,13 +715,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -658,17 +734,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.
@@ -677,7 +759,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) { @@ -693,6 +776,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.
@@ -701,10 +786,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(); onChanged(); @@ -715,6 +800,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.
@@ -723,13 +810,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -741,6 +829,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.
@@ -749,7 +839,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() { if (updateMaskBuilder_ == null) { @@ -763,6 +854,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.
@@ -771,14 +864,17 @@ 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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -787,17 +883,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.
@@ -806,17 +906,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_; @@ -824,41 +928,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 connectionProfileBuilder_ != null || 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. */ 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(); @@ -872,11 +996,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) { @@ -890,17 +1018,24 @@ 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 (connectionProfile_ != null) { connectionProfile_ = - com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder(connectionProfile_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder(connectionProfile_) + .mergeFrom(value) + .buildPartial(); } else { connectionProfile_ = value; } @@ -912,11 +1047,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() { if (connectionProfileBuilder_ == null) { @@ -930,48 +1069,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() { + 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_; @@ -979,6 +1136,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
@@ -994,13 +1153,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; @@ -1009,6 +1168,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
@@ -1024,15 +1185,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 { @@ -1040,6 +1200,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
@@ -1055,20 +1217,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1084,15 +1248,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1108,23 +1275,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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = 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); } @@ -1134,30 +1301,32 @@ 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 { - return new UpdateConnectionProfileRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateConnectionProfileRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1169,9 +1338,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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java index 8162512c..3cf91734 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java similarity index 73% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java index b6b4f8de..7e965929 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java @@ -1,36 +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.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; } + private UpdateStreamRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,55 +62,61 @@ private UpdateStreamRequest( case 0: done = true; break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + case 10: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datastream.v1alpha1.Stream.Builder subBuilder = null; + if (stream_ != null) { + subBuilder = stream_.toBuilder(); + } + stream_ = + input.readMessage( + com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stream_); + stream_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.cloud.datastream.v1alpha1.Stream.Builder subBuilder = null; - if (stream_ != null) { - subBuilder = stream_.toBuilder(); + requestId_ = s; + break; } - stream_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stream_); - stream_ = subBuilder.buildPartial(); + case 32: + { + validateOnly_ = input.readBool(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 32: { - - validateOnly_ = input.readBool(); - break; - } - case 40: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + force_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,29 +124,33 @@ private UpdateStreamRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
@@ -136,7 +159,9 @@ private UpdateStreamRequest(
    * 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 @@ -144,6 +169,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.
@@ -152,7 +179,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 @@ -160,6 +189,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.
@@ -168,7 +199,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() { @@ -178,11 +210,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 @@ -190,23 +227,34 @@ 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() { @@ -216,6 +264,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() public static final int REQUEST_ID_FIELD_NUMBER = 3; 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
@@ -231,6 +281,7 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -239,14 +290,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
@@ -262,16 +314,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 { @@ -282,12 +333,15 @@ public java.lang.String getRequestId() { public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; 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 @@ -298,11 +352,14 @@ public boolean getValidateOnly() { public static final int FORCE_FIELD_NUMBER = 5; private boolean force_; /** + * + * *
    * Optional. Execute the update without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The force. */ @java.lang.Override @@ -311,6 +368,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +380,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()); } @@ -349,23 +406,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -375,29 +428,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -420,124 +469,128 @@ 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) + unknownFields.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() @@ -545,16 +598,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -580,9 +632,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 @@ -601,7 +653,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); + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest result = + new com.google.cloud.datastream.v1alpha1.UpdateStreamRequest(this); if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; } else { @@ -623,38 +676,39 @@ public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest 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.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; @@ -662,7 +716,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()); } @@ -698,7 +753,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -710,8 +766,13 @@ public Builder mergeFrom( 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.
@@ -720,13 +781,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 updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -735,17 +800,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.
@@ -754,7 +825,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) { @@ -770,6 +842,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.
@@ -778,10 +852,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(); onChanged(); @@ -792,6 +866,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.
@@ -800,13 +876,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -818,6 +895,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.
@@ -826,7 +905,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() { if (updateMaskBuilder_ == null) { @@ -840,6 +920,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.
@@ -848,14 +930,17 @@ 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() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -864,17 +949,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.
@@ -883,17 +972,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_; @@ -901,39 +994,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 streamBuilder_ != null || 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. */ 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) { @@ -949,14 +1061,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(); onChanged(); @@ -967,17 +1082,23 @@ 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 (stream_ != null) { stream_ = - com.google.cloud.datastream.v1alpha1.Stream.newBuilder(stream_).mergeFrom(value).buildPartial(); + com.google.cloud.datastream.v1alpha1.Stream.newBuilder(stream_) + .mergeFrom(value) + .buildPartial(); } else { stream_ = value; } @@ -989,11 +1110,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() { if (streamBuilder_ == null) { @@ -1007,48 +1132,64 @@ 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() { - + onChanged(); 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_; @@ -1056,6 +1197,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
@@ -1071,13 +1214,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; @@ -1086,6 +1229,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
@@ -1101,15 +1246,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 { @@ -1117,6 +1261,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
@@ -1132,20 +1278,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) { + public Builder setRequestId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + requestId_ = value; 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
@@ -1161,15 +1309,18 @@ public Builder setRequestId(
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearRequestId() { - + requestId_ = getDefaultInstance().getRequestId(); 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
@@ -1185,29 +1336,32 @@ 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) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; onChanged(); 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 @@ -1215,44 +1369,53 @@ 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; 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() { - + validateOnly_ = false; onChanged(); 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 @@ -1260,37 +1423,43 @@ 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; 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() { - + force_ = false; 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); } @@ -1300,12 +1469,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(); } @@ -1314,16 +1483,16 @@ 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 { - return new UpdateStreamRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateStreamRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1338,6 +1507,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java index 84c1b730..8129fb19 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java similarity index 74% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java index a6992bfc..c3699e36 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java +++ b/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,16 +38,15 @@ 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; } + private Validation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,40 +66,48 @@ private Validation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + description_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - status_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - message_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + status_ = rawValue; + break; } - message_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.ValidationMessage.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + message_ = + new java.util.ArrayList< + com.google.cloud.datastream.v1alpha1.ValidationMessage>(); + mutable_bitField0_ |= 0x00000001; + } + message_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.ValidationMessage.parser(), + extensionRegistry)); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +115,7 @@ private Validation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { message_ = java.util.Collections.unmodifiableList(message_); @@ -104,29 +124,35 @@ private Validation( makeExtensionsImmutable(); } } - 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.
      * 
@@ -135,6 +161,8 @@ public enum Status */ STATUS_UNSPECIFIED(0), /** + * + * *
      * Validation did not execute.
      * 
@@ -143,6 +171,8 @@ public enum Status */ NOT_EXECUTED(1), /** + * + * *
      * Validation failed.
      * 
@@ -151,6 +181,8 @@ public enum Status */ FAILED(2), /** + * + * *
      * Validation passed.
      * 
@@ -162,6 +194,8 @@ public enum Status ; /** + * + * *
      * Unspecified status.
      * 
@@ -170,6 +204,8 @@ public enum Status */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Validation did not execute.
      * 
@@ -178,6 +214,8 @@ public enum Status */ public static final int NOT_EXECUTED_VALUE = 1; /** + * + * *
      * Validation failed.
      * 
@@ -186,6 +224,8 @@ public enum Status */ public static final int FAILED_VALUE = 2; /** + * + * *
      * Validation passed.
      * 
@@ -194,7 +234,6 @@ public enum Status */ public static final int PASSED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,50 +258,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; @@ -282,11 +322,14 @@ private Status(int value) { public static final int DESCRIPTION_FIELD_NUMBER = 1; private volatile java.lang.Object description_; /** + * + * *
    * A short description of the validation.
    * 
* * string description = 1; + * * @return The description. */ @java.lang.Override @@ -295,29 +338,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 { @@ -328,33 +371,46 @@ public java.lang.String getDescription() { public static final int STATUS_FIELD_NUMBER = 2; private int status_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.Validation.Status getStatus() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.Validation.Status result = com.google.cloud.datastream.v1alpha1.Validation.Status.valueOf(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.valueOf(status_); + return result == null + ? com.google.cloud.datastream.v1alpha1.Validation.Status.UNRECOGNIZED + : result; } public static final int MESSAGE_FIELD_NUMBER = 3; private java.util.List message_; /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -366,6 +422,8 @@ public java.util.List ge return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -373,11 +431,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.
    * 
@@ -389,6 +449,8 @@ public int getMessageCount() { return message_.size(); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -400,6 +462,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind return message_.get(index); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -415,11 +479,14 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag public static final int CODE_FIELD_NUMBER = 4; private volatile java.lang.Object code_; /** + * + * *
    * A custom code identifying this validation.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -428,29 +495,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 { @@ -459,6 +526,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -470,12 +538,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++) { @@ -496,13 +564,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_); @@ -515,20 +582,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -555,114 +620,119 @@ 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() @@ -670,17 +740,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMessageFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -700,9 +770,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 @@ -721,7 +791,8 @@ 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); int from_bitField0_ = bitField0_; result.description_ = description_; result.status_ = status_; @@ -743,38 +814,39 @@ public com.google.cloud.datastream.v1alpha1.Validation 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.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; @@ -782,7 +854,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_; onChanged(); @@ -808,9 +881,10 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Validation other) messageBuilder_ = null; message_ = other.message_; bitField0_ = (bitField0_ & ~0x00000001); - messageBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMessageFieldBuilder() : null; + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMessageFieldBuilder() + : null; } else { messageBuilder_.addAllMessages(other.message_); } @@ -848,22 +922,25 @@ public Builder mergeFrom( } 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; @@ -872,20 +949,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 { @@ -893,54 +971,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * A short description of the validation.
      * 
* * string description = 1; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -948,51 +1033,67 @@ 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. */ public Builder setStatusValue(int value) { - + status_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.Validation.Status result = com.google.cloud.datastream.v1alpha1.Validation.Status.valueOf(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.valueOf(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. */ @@ -1000,39 +1101,50 @@ public Builder setStatus(com.google.cloud.datastream.v1alpha1.Validation.Status if (value == null) { throw new NullPointerException(); } - + status_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; + * * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = 0; onChanged(); return this; } private java.util.List message_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessageIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - message_ = new java.util.ArrayList(message_); + message_ = + new java.util.ArrayList( + message_); bitField0_ |= 0x00000001; - } + } } 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.
      * 
@@ -1047,6 +1159,8 @@ public java.util.List ge } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1061,6 +1175,8 @@ public int getMessageCount() { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1075,6 +1191,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1096,6 +1214,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1114,6 +1234,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1134,6 +1256,8 @@ public Builder addMessage(com.google.cloud.datastream.v1alpha1.ValidationMessage return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1155,6 +1279,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1173,6 +1299,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1191,6 +1319,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1198,11 +1328,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); @@ -1210,6 +1340,8 @@ public Builder addAllMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1227,6 +1359,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1244,6 +1378,8 @@ public Builder removeMessage(int index) { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1255,6 +1391,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage return getMessageFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1264,19 +1402,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 { @@ -1284,6 +1425,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1291,10 +1434,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.
      * 
@@ -1303,30 +1448,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_ & 0x00000001) != 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_ & 0x00000001) != 0), getParentForChildren(), isClean()); message_ = null; } return messageBuilder_; @@ -1334,18 +1485,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; @@ -1354,20 +1507,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 { @@ -1375,61 +1529,68 @@ 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) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * A custom code identifying this validation.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); 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) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = 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); } @@ -1439,12 +1600,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(); } @@ -1453,16 +1614,16 @@ 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 { - return new Validation(input, extensionRegistry); - } - }; + 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 { + return new Validation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1477,6 +1638,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java index e22daf0d..2d2c402e 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java +++ b/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,16 +45,15 @@ 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; } + private ValidationMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,44 +73,49 @@ private ValidationMessage( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - message_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + message_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - level_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + level_ = rawValue; + break; } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = + com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry metadata__ = + input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - code_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + code_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,48 +123,52 @@ private ValidationMessage( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
      * 
@@ -151,6 +177,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -159,6 +187,8 @@ public enum Level */ WARNING(1), /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -170,6 +200,8 @@ public enum Level ; /** + * + * *
      * Unspecified level.
      * 
@@ -178,6 +210,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -186,6 +220,8 @@ public enum Level */ public static final int WARNING_VALUE = 1; /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -194,7 +230,6 @@ public enum Level */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,49 +254,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; @@ -281,11 +318,14 @@ private Level(int value) { public static final int MESSAGE_FIELD_NUMBER = 1; private volatile java.lang.Object message_; /** + * + * *
    * The result of the validation.
    * 
* * string message = 1; + * * @return The message. */ @java.lang.Override @@ -294,29 +334,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 { @@ -327,49 +367,59 @@ public java.lang.String getMessage() { public static final int LEVEL_FIELD_NUMBER = 2; private int level_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.valueOf(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.valueOf(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, + ""); } - 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_; } @@ -378,28 +428,30 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
    * Additional metadata related to the result.
    * 
* * 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.
    * 
@@ -407,11 +459,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -419,16 +472,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, 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.
    * 
@@ -436,12 +490,11 @@ public 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(); } @@ -451,11 +504,14 @@ public java.lang.String getMetadataOrThrow( public static final int CODE_FIELD_NUMBER = 4; private volatile java.lang.Object code_; /** + * + * *
    * A custom code identifying this specific message.
    * 
* * string code = 4; + * * @return The code. */ @java.lang.Override @@ -464,29 +520,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 { @@ -495,6 +551,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -506,20 +563,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_); } @@ -535,19 +589,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_); @@ -560,20 +615,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -601,139 +654,147 @@ 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() @@ -741,16 +802,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -765,9 +825,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 @@ -786,7 +846,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); + com.google.cloud.datastream.v1alpha1.ValidationMessage result = + new com.google.cloud.datastream.v1alpha1.ValidationMessage(this); int from_bitField0_ = bitField0_; result.message_ = message_; result.level_ = level_; @@ -801,38 +862,39 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage 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.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; @@ -840,7 +902,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_; onChanged(); @@ -848,8 +911,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()); if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -873,7 +935,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ValidationMessage) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ValidationMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -882,22 +945,25 @@ public Builder mergeFrom( } 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; @@ -906,20 +972,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 { @@ -927,54 +994,61 @@ 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) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * The result of the validation.
      * 
* * string message = 1; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); 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) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -982,51 +1056,67 @@ 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. */ public Builder setLevelValue(int value) { - + level_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.cloud.datastream.v1alpha1.ValidationMessage.Level result = com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.valueOf(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.valueOf(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. */ @@ -1034,42 +1124,45 @@ public Builder setLevel(com.google.cloud.datastream.v1alpha1.ValidationMessage.L if (value == null) { throw new NullPointerException(); } - + level_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; + * * @return This builder for chaining. */ public Builder clearLevel() { - + level_ = 0; onChanged(); 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() { - onChanged();; + internalGetMutableMetadata() { + onChanged(); + ; 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(); @@ -1081,28 +1174,30 @@ public int getMetadataCount() { return internalGetMetadata().getMap().size(); } /** + * + * *
      * Additional metadata related to the result.
      * 
* * 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.
      * 
@@ -1110,11 +1205,12 @@ public java.util.Map getMetadata() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1122,16 +1218,17 @@ public java.util.Map getMetadataMap() { * map<string, string> metadata = 3; */ @java.lang.Override - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, 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.
      * 
@@ -1139,12 +1236,11 @@ public 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(); } @@ -1152,81 +1248,80 @@ public java.lang.String getMetadataOrThrow( } public Builder clearMetadata() { - 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() { 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"); } + 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"); -} + throw new NullPointerException("map value"); + } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + internalGetMutableMetadata().getMutableMap().put(key, value); 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); 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; @@ -1235,20 +1330,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 { @@ -1256,61 +1352,68 @@ 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) { + public Builder setCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + code_ = value; onChanged(); return this; } /** + * + * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; + * * @return This builder for chaining. */ public Builder clearCode() { - + code_ = getDefaultInstance().getCode(); onChanged(); 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) { + public Builder setCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = 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); } @@ -1320,12 +1423,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(); } @@ -1334,16 +1437,16 @@ 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 { - return new ValidationMessage(input, extensionRegistry); - } - }; + 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 { + return new ValidationMessage(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1358,6 +1461,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java similarity index 65% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java index a3b2d6de..7599bbed 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java +++ b/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.
    * 
@@ -87,38 +117,43 @@ boolean containsMetadata( */ /* 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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java similarity index 73% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java index 3afd6fa6..8dfef25e 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java similarity index 75% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java index 68c62a74..bbf45e90 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java @@ -1,40 +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; } + private ValidationResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,25 @@ private ValidationResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - validations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + validations_.add( + input.readMessage( + com.google.cloud.datastream.v1alpha1.Validation.parser(), extensionRegistry)); + break; } - validations_.add( - input.readMessage(com.google.cloud.datastream.v1alpha1.Validation.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -77,8 +97,7 @@ private ValidationResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { validations_ = java.util.Collections.unmodifiableList(validations_); @@ -87,22 +106,27 @@ private ValidationResult( makeExtensionsImmutable(); } } - 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; private java.util.List validations_; /** + * + * *
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -115,6 +139,8 @@ public java.util.List getValida
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -123,11 +149,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).
@@ -140,6 +168,8 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -152,6 +182,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).
@@ -166,6 +198,7 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -177,8 +210,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));
     }
@@ -192,8 +224,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -203,15 +234,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -233,117 +264,127 @@ 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() @@ -351,17 +392,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getValidationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -375,9 +416,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 @@ -396,7 +437,8 @@ 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); int from_bitField0_ = bitField0_; if (validationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -415,38 +457,39 @@ public com.google.cloud.datastream.v1alpha1.ValidationResult 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.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; @@ -454,7 +497,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()) { @@ -473,9 +517,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_); } @@ -500,7 +545,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datastream.v1alpha1.ValidationResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datastream.v1alpha1.ValidationResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -509,21 +555,29 @@ public Builder mergeFrom( } 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).
@@ -539,6 +593,8 @@ public java.util.List getValida
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -554,6 +610,8 @@ public int getValidationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -569,6 +627,8 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -591,6 +651,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -610,6 +672,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -631,6 +695,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).
@@ -653,6 +719,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -672,6 +740,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -691,6 +761,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -702,8 +774,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);
@@ -711,6 +782,8 @@ public Builder addAllValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -729,6 +802,8 @@ public Builder clearValidations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -747,6 +822,8 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -759,6 +836,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).
@@ -769,11 +848,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).
@@ -781,8 +863,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 {
@@ -790,6 +872,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -798,10 +882,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).
@@ -811,10 +897,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).
@@ -822,27 +910,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);
     }
 
@@ -852,12 +943,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();
   }
@@ -866,16 +957,16 @@ 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 {
-      return new ValidationResult(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new ValidationResult(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -890,6 +981,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
index 383c1067..b43f8e41 100644
--- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
+++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
similarity index 71%
rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
index a59a5ca1..54fd19e8 100644
--- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
+++ b/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,16 +45,15 @@ 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;
   }
+
   private VpcPeeringConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,25 +72,27 @@ private VpcPeeringConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            vpcName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              vpcName_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            subnet_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              subnet_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private VpcPeeringConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -117,29 +141,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 { @@ -150,11 +174,14 @@ public java.lang.String getVpcName() { public static final int SUBNET_FIELD_NUMBER = 2; 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 @@ -163,29 +190,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 { @@ -194,6 +221,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +233,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_); } @@ -236,17 +263,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,96 +294,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.
@@ -365,21 +399,23 @@ 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()
@@ -387,16 +423,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -408,9 +443,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
@@ -429,7 +464,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);
+      com.google.cloud.datastream.v1alpha1.VpcPeeringConfig result =
+          new com.google.cloud.datastream.v1alpha1.VpcPeeringConfig(this);
       result.vpcName_ = vpcName_;
       result.subnet_ = subnet_;
       onBuilt();
@@ -440,38 +476,39 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig 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.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;
@@ -479,7 +516,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_;
         onChanged();
@@ -507,7 +545,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -519,18 +558,20 @@ public Builder mergeFrom(
 
     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; @@ -539,20 +580,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 { @@ -560,54 +602,61 @@ 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) { + public Builder setVpcName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + vpcName_ = value; 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() { - + vpcName_ = getDefaultInstance().getVpcName(); onChanged(); 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) { + public Builder setVpcNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + vpcName_ = value; onChanged(); return this; @@ -615,18 +664,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; @@ -635,20 +686,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 { @@ -656,61 +708,68 @@ 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) { + public Builder setSubnet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + subnet_ = value; 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() { - + subnet_ = getDefaultInstance().getSubnet(); onChanged(); 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) { + public Builder setSubnetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + subnet_ = 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); } @@ -720,12 +779,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(); } @@ -734,16 +793,16 @@ 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 { - return new VpcPeeringConfig(input, extensionRegistry); - } - }; + 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 { + return new VpcPeeringConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -758,6 +817,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java similarity index 60% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java rename to proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java index 88f44375..70db0c12 100644 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java +++ b/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/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto b/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto rename to proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto b/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto similarity index 100% rename from owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto rename to proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRoute.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/AsyncCreateRouteLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoute.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/AsyncCreateStreamLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRoute.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRoute.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deleteroute/SyncDeleteRouteString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/deletestream/SyncDeleteStreamString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/AsyncGetRoute.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRoute.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteRoutename.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getroute/SyncGetRouteString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/AsyncGetStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamStreamname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstream/SyncGetStreamString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/AsyncGetStreamObject.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObject.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectStreamobjectname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/getstreamobject/SyncGetStreamObjectString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutes.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/AsyncListRoutesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutes.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/listroutes/SyncListRoutesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjects.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/AsyncListStreamObjectsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjects.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsStreamname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreamobjects/SyncListStreamObjectsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreams.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/AsyncListStreamsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreams.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/liststreams/SyncListStreamsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/AsyncLookupStreamObject.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/lookupstreamobject/SyncLookupStreamObject.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/AsyncStartBackfillJob.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJob.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobStreamobjectname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/startbackfilljob/SyncStartBackfillJobString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/AsyncStopBackfillJob.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJob.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobStreamobjectname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/stopbackfilljob/SyncStopBackfillJobString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStream.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/AsyncCreateConnectionProfileLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileLocationnameConnectionprofileString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createconnectionprofile/SyncCreateConnectionProfileStringConnectionprofileString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnection.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/AsyncCreatePrivateConnectionLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnection.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionLocationnamePrivateconnectionString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createprivateconnection/SyncCreatePrivateConnectionStringPrivateconnectionString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRoute.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/AsyncCreateRouteLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoute.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRoutePrivateconnectionnameRouteString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createroute/SyncCreateRouteStringRouteString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/AsyncCreateStreamLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamLocationnameStreamString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/createstream/SyncCreateStreamStringStreamString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/AsyncDeleteConnectionProfileLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteconnectionprofile/SyncDeleteConnectionProfileString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnection.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/AsyncDeletePrivateConnectionLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnection.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteprivateconnection/SyncDeletePrivateConnectionString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRoute.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/AsyncDeleteRouteLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRoute.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteRoutename.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deleteroute/SyncDeleteRouteString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/AsyncDeleteStreamLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamStreamname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/deletestream/SyncDeleteStreamString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/AsyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/discoverconnectionprofile/SyncDiscoverConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrors.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/AsyncFetchErrorsLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetcherrors/SyncFetchErrors.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIps.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/AsyncFetchStaticIpsPaged.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIps.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsLocationname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/fetchstaticips/SyncFetchStaticIpsString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/AsyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileConnectionprofilename.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getconnectionprofile/SyncGetConnectionProfileString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/AsyncGetPrivateConnection.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnection.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionPrivateconnectionname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getprivateconnection/SyncGetPrivateConnectionString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/AsyncGetRoute.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRoute.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteRoutename.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getroute/SyncGetRouteString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/AsyncGetStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamStreamname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/getstream/SyncGetStreamString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfiles.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/AsyncListConnectionProfilesPaged.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfiles.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesLocationname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listconnectionprofiles/SyncListConnectionProfilesString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnections.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/AsyncListPrivateConnectionsPaged.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnections.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsLocationname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listprivateconnections/SyncListPrivateConnectionsString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutes.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/AsyncListRoutesPaged.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutes.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesPrivateconnectionname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/listroutes/SyncListRoutesString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreams.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/AsyncListStreamsPaged.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreams.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsLocationname.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/liststreams/SyncListStreamsString.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/AsyncUpdateConnectionProfileLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updateconnectionprofile/SyncUpdateConnectionProfileConnectionprofileFieldmask.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/AsyncUpdateStreamLRO.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStream.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamclient/updatestream/SyncUpdateStreamStreamFieldmask.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/datastreamsettings/getconnectionprofile/SyncGetConnectionProfile.java diff --git a/owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java b/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java similarity index 100% rename from owl-bot-staging/v1alpha1/samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java rename to samples/snippets/generated/com/google/cloud/datastream/v1alpha1/stub/datastreamstubsettings/getconnectionprofile/SyncGetConnectionProfile.java