From 609f61d0810bc58c64c7637147e9a3873bc06e53 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 1 Feb 2022 09:49:24 +0000 Subject: [PATCH 1/4] feat: Adding public Datastream client based on v1 API version: https://cloud.google.com/datastream/docs PiperOrigin-RevId: 425538443 Source-Link: https://github.com/googleapis/googleapis/commit/07cb2ca17029dbd47ce640ed4d9b169fd5afa698 Source-Link: https://github.com/googleapis/googleapis-gen/commit/66d72baf59afe47c026154bf8ebd27bf29c3e554 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjZkNzJiYWY1OWFmZTQ3YzAyNjE1NGJmOGViZDI3YmYyOWMzZTU1NCJ9 --- .../datastream/v1alpha1/DatastreamGrpc.java | 2768 --------- .../cloud/datastream/v1/DatastreamClient.java | 3809 ++++++++++++ .../datastream/v1/DatastreamSettings.java | 630 ++ .../cloud/datastream/v1/gapic_metadata.json | 99 + .../cloud/datastream/v1/package-info.java | 39 + .../datastream/v1/stub/DatastreamStub.java | 304 + .../v1/stub/DatastreamStubSettings.java | 1904 ++++++ .../stub/GrpcDatastreamCallableFactory.java | 113 + .../v1/stub/GrpcDatastreamStub.java | 1259 ++++ .../datastream/v1/DatastreamClientTest.java | 2398 ++++++++ .../cloud/datastream/v1/MockDatastream.java | 59 + .../datastream/v1/MockDatastreamImpl.java | 586 ++ .../google/cloud/location/MockLocations.java | 59 + .../cloud/location/MockLocationsImpl.java | 101 + .../cloud/datastream/v1/DatastreamGrpc.java | 2399 ++++++++ .../cloud/datastream/v1/AvroFileFormat.java | 427 ++ .../v1/AvroFileFormatOrBuilder.java | 9 + .../cloud/datastream/v1/BackfillJob.java | 1973 +++++++ .../datastream/v1/BackfillJobOrBuilder.java | 145 + .../datastream/v1/ConnectionProfile.java | 3273 +++++++++++ .../datastream/v1/ConnectionProfileName.java | 231 + .../v1/ConnectionProfileOrBuilder.java | 323 + .../v1/CreateConnectionProfileRequest.java | 1397 +++++ ...eateConnectionProfileRequestOrBuilder.java | 137 + .../v1/CreatePrivateConnectionRequest.java | 1231 ++++ ...eatePrivateConnectionRequestOrBuilder.java | 116 + .../datastream/v1/CreateRouteRequest.java | 1231 ++++ .../v1/CreateRouteRequestOrBuilder.java | 116 + .../datastream/v1/CreateStreamRequest.java | 1397 +++++ .../v1/CreateStreamRequestOrBuilder.java | 137 + .../cloud/datastream/v1/DatastreamProto.java | 735 +++ .../v1/DatastreamResourcesProto.java | 790 +++ .../v1/DeleteConnectionProfileRequest.java | 829 +++ ...leteConnectionProfileRequestOrBuilder.java | 69 + .../v1/DeletePrivateConnectionRequest.java | 914 +++ ...letePrivateConnectionRequestOrBuilder.java | 80 + .../datastream/v1/DeleteRouteRequest.java | 829 +++ .../v1/DeleteRouteRequestOrBuilder.java | 69 + .../datastream/v1/DeleteStreamRequest.java | 829 +++ .../v1/DeleteStreamRequestOrBuilder.java | 69 + .../datastream/v1/DestinationConfig.java | 931 +++ .../v1/DestinationConfigOrBuilder.java | 60 + .../v1/DiscoverConnectionProfileRequest.java | 2050 +++++++ ...overConnectionProfileRequestOrBuilder.java | 187 + .../v1/DiscoverConnectionProfileResponse.java | 1020 ++++ ...verConnectionProfileResponseOrBuilder.java | 65 + .../com/google/cloud/datastream/v1/Error.java | 1498 +++++ .../cloud/datastream/v1/ErrorOrBuilder.java | 152 + .../datastream/v1/FetchStaticIpsRequest.java | 853 +++ .../v1/FetchStaticIpsRequestOrBuilder.java | 63 + .../datastream/v1/FetchStaticIpsResponse.java | 847 +++ .../v1/FetchStaticIpsResponseOrBuilder.java | 72 + .../v1/ForwardSshTunnelConnectivity.java | 1340 +++++ ...ForwardSshTunnelConnectivityOrBuilder.java | 119 + .../datastream/v1/GcsDestinationConfig.java | 1514 +++++ .../v1/GcsDestinationConfigOrBuilder.java | 125 + .../cloud/datastream/v1/GcsProfile.java | 759 +++ .../datastream/v1/GcsProfileOrBuilder.java | 49 + .../v1/GetConnectionProfileRequest.java | 593 ++ .../GetConnectionProfileRequestOrBuilder.java | 29 + .../v1/GetPrivateConnectionRequest.java | 593 ++ .../GetPrivateConnectionRequestOrBuilder.java | 29 + .../cloud/datastream/v1/GetRouteRequest.java | 593 ++ .../v1/GetRouteRequestOrBuilder.java | 29 + .../datastream/v1/GetStreamObjectRequest.java | 593 ++ .../v1/GetStreamObjectRequestOrBuilder.java | 29 + .../cloud/datastream/v1/GetStreamRequest.java | 593 ++ .../v1/GetStreamRequestOrBuilder.java | 29 + .../cloud/datastream/v1/JsonFileFormat.java | 965 +++ .../v1/JsonFileFormatOrBuilder.java | 47 + .../v1/ListConnectionProfilesRequest.java | 1200 ++++ ...istConnectionProfilesRequestOrBuilder.java | 107 + .../v1/ListConnectionProfilesResponse.java | 1287 ++++ ...stConnectionProfilesResponseOrBuilder.java | 116 + .../v1/ListPrivateConnectionsRequest.java | 1211 ++++ ...istPrivateConnectionsRequestOrBuilder.java | 110 + .../v1/ListPrivateConnectionsResponse.java | 1287 ++++ ...stPrivateConnectionsResponseOrBuilder.java | 116 + .../datastream/v1/ListRoutesRequest.java | 1211 ++++ .../v1/ListRoutesRequestOrBuilder.java | 110 + .../datastream/v1/ListRoutesResponse.java | 1287 ++++ .../v1/ListRoutesResponseOrBuilder.java | 116 + .../v1/ListStreamObjectsRequest.java | 871 +++ .../v1/ListStreamObjectsRequestOrBuilder.java | 68 + .../v1/ListStreamObjectsResponse.java | 1036 ++++ .../ListStreamObjectsResponseOrBuilder.java | 73 + .../datastream/v1/ListStreamsRequest.java | 1200 ++++ .../v1/ListStreamsRequestOrBuilder.java | 107 + .../datastream/v1/ListStreamsResponse.java | 1287 ++++ .../v1/ListStreamsResponseOrBuilder.java | 116 + .../cloud/datastream/v1/LocationName.java | 192 + .../v1/LookupStreamObjectRequest.java | 831 +++ .../LookupStreamObjectRequestOrBuilder.java | 56 + .../cloud/datastream/v1/MysqlColumn.java | 1254 ++++ .../datastream/v1/MysqlColumnOrBuilder.java | 111 + .../cloud/datastream/v1/MysqlDatabase.java | 1036 ++++ .../datastream/v1/MysqlDatabaseOrBuilder.java | 73 + .../cloud/datastream/v1/MysqlProfile.java | 1241 ++++ .../datastream/v1/MysqlProfileOrBuilder.java | 106 + .../cloud/datastream/v1/MysqlRdbms.java | 870 +++ .../datastream/v1/MysqlRdbmsOrBuilder.java | 53 + .../datastream/v1/MysqlSourceConfig.java | 899 +++ .../v1/MysqlSourceConfigOrBuilder.java | 63 + .../cloud/datastream/v1/MysqlSslConfig.java | 1203 ++++ .../v1/MysqlSslConfigOrBuilder.java | 109 + .../cloud/datastream/v1/MysqlTable.java | 1082 ++++ .../datastream/v1/MysqlTableOrBuilder.java | 83 + .../datastream/v1/OperationMetadata.java | 1892 ++++++ .../v1/OperationMetadataOrBuilder.java | 183 + .../cloud/datastream/v1/OracleColumn.java | 1407 +++++ .../datastream/v1/OracleColumnOrBuilder.java | 129 + .../cloud/datastream/v1/OracleProfile.java | 1501 +++++ .../datastream/v1/OracleProfileOrBuilder.java | 153 + .../cloud/datastream/v1/OracleRdbms.java | 870 +++ .../datastream/v1/OracleRdbmsOrBuilder.java | 53 + .../cloud/datastream/v1/OracleSchema.java | 1036 ++++ .../datastream/v1/OracleSchemaOrBuilder.java | 73 + .../datastream/v1/OracleSourceConfig.java | 899 +++ .../v1/OracleSourceConfigOrBuilder.java | 63 + .../cloud/datastream/v1/OracleTable.java | 1082 ++++ .../datastream/v1/OracleTableOrBuilder.java | 83 + .../datastream/v1/PrivateConnection.java | 2367 ++++++++ .../datastream/v1/PrivateConnectionName.java | 231 + .../v1/PrivateConnectionOrBuilder.java | 233 + .../datastream/v1/PrivateConnectivity.java | 600 ++ .../v1/PrivateConnectivityOrBuilder.java | 31 + .../com/google/cloud/datastream/v1/Route.java | 1809 ++++++ .../google/cloud/datastream/v1/RouteName.java | 269 + .../cloud/datastream/v1/RouteOrBuilder.java | 187 + .../cloud/datastream/v1/SourceConfig.java | 1193 ++++ .../datastream/v1/SourceConfigOrBuilder.java | 87 + .../datastream/v1/SourceObjectIdentifier.java | 2616 +++++++++ .../v1/SourceObjectIdentifierOrBuilder.java | 65 + .../v1/StartBackfillJobRequest.java | 593 ++ .../v1/StartBackfillJobRequestOrBuilder.java | 29 + .../v1/StartBackfillJobResponse.java | 663 +++ .../v1/StartBackfillJobResponseOrBuilder.java | 36 + .../v1/StaticServiceIpConnectivity.java | 427 ++ .../StaticServiceIpConnectivityOrBuilder.java | 9 + .../datastream/v1/StopBackfillJobRequest.java | 595 ++ .../v1/StopBackfillJobRequestOrBuilder.java | 29 + .../v1/StopBackfillJobResponse.java | 663 +++ .../v1/StopBackfillJobResponseOrBuilder.java | 36 + .../google/cloud/datastream/v1/Stream.java | 5186 +++++++++++++++++ .../cloud/datastream/v1/StreamName.java | 223 + .../cloud/datastream/v1/StreamObject.java | 2146 +++++++ .../cloud/datastream/v1/StreamObjectName.java | 257 + .../datastream/v1/StreamObjectOrBuilder.java | 201 + .../cloud/datastream/v1/StreamOrBuilder.java | 371 ++ .../v1/UpdateConnectionProfileRequest.java | 1349 +++++ ...dateConnectionProfileRequestOrBuilder.java | 136 + .../datastream/v1/UpdateStreamRequest.java | 1349 +++++ .../v1/UpdateStreamRequestOrBuilder.java | 136 + .../cloud/datastream/v1/Validation.java | 1488 +++++ .../datastream/v1/ValidationMessage.java | 1358 +++++ .../v1/ValidationMessageOrBuilder.java | 122 + .../datastream/v1/ValidationOrBuilder.java | 112 + .../cloud/datastream/v1/ValidationResult.java | 893 +++ .../v1/ValidationResultOrBuilder.java | 58 + .../cloud/datastream/v1/VpcPeeringConfig.java | 768 +++ .../v1/VpcPeeringConfigOrBuilder.java | 51 + .../cloud/datastream/v1/datastream.proto | 1036 ++++ .../datastream/v1/datastream_resources.proto | 836 +++ .../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 + .../v1alpha1/DatastreamClientTest.java | 0 .../datastream/v1alpha1/MockDatastream.java | 0 .../v1alpha1/MockDatastreamImpl.java | 0 .../datastream/v1alpha1/DatastreamGrpc.java | 2059 +++++++ .../datastream/v1alpha1/AvroFileFormat.java | 235 +- .../v1alpha1/AvroFileFormatOrBuilder.java | 9 + .../CloudDatastreamResourcesProto.java | 715 +++ .../v1alpha1/CloudDatastreamServiceProto.java | 640 ++ .../v1alpha1/ConnectionProfile.java | 2051 +++---- .../v1alpha1/ConnectionProfileName.java | 0 .../v1alpha1/ConnectionProfileOrBuilder.java | 194 +- .../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 | 85 +- .../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 | 828 +-- .../GcsDestinationConfigOrBuilder.java | 75 +- .../datastream/v1alpha1/GcsFileFormat.java | 80 +- .../cloud/datastream/v1alpha1/GcsProfile.java | 383 +- .../v1alpha1/GcsProfileOrBuilder.java | 36 +- .../v1alpha1/GetConnectionProfileRequest.java | 367 +- .../GetConnectionProfileRequestOrBuilder.java | 29 + .../v1alpha1/GetPrivateConnectionRequest.java | 367 +- .../GetPrivateConnectionRequestOrBuilder.java | 29 + .../datastream/v1alpha1/GetRouteRequest.java | 339 +- .../v1alpha1/GetRouteRequestOrBuilder.java | 29 + .../datastream/v1alpha1/GetStreamRequest.java | 346 +- .../v1alpha1/GetStreamRequestOrBuilder.java | 29 + .../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 | 9 + .../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 | 144 +- .../v1alpha1/PrivateConnectivity.java | 300 +- .../PrivateConnectivityOrBuilder.java | 21 + .../cloud/datastream/v1alpha1/Route.java | 1037 ++-- .../cloud/datastream/v1alpha1/RouteName.java | 0 .../datastream/v1alpha1/RouteOrBuilder.java | 114 +- .../datastream/v1alpha1/SchemaFileFormat.java | 86 +- .../datastream/v1alpha1/SourceConfig.java | 640 +- .../v1alpha1/SourceConfigOrBuilder.java | 52 +- .../v1alpha1/StaticServiceIpConnectivity.java | 259 +- .../StaticServiceIpConnectivityOrBuilder.java | 9 + .../cloud/datastream/v1alpha1/Stream.java | 2830 ++++----- .../cloud/datastream/v1alpha1/StreamName.java | 0 .../datastream/v1alpha1/StreamOrBuilder.java | 208 +- .../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 | 74 +- .../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 .../v1alpha1/AvroFileFormatOrBuilder.java | 24 - .../CloudDatastreamResourcesProto.java | 835 --- .../v1alpha1/CloudDatastreamServiceProto.java | 699 --- .../GetConnectionProfileRequestOrBuilder.java | 54 - .../GetPrivateConnectionRequestOrBuilder.java | 54 - .../v1alpha1/GetRouteRequestOrBuilder.java | 54 - .../v1alpha1/GetStreamRequestOrBuilder.java | 54 - .../NoConnectivitySettingsOrBuilder.java | 24 - .../PrivateConnectivityOrBuilder.java | 38 - .../StaticServiceIpConnectivityOrBuilder.java | 24 - 318 files changed, 128630 insertions(+), 30912 deletions(-) delete mode 100644 grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java create mode 100644 owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamResourcesProto.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto create mode 100644 owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java (98%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java (97%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json (100%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java (100%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java (100%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java (98%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java (100%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java (99%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java (100%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java (100%) rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java (100%) create mode 100644 owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java (67%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfile.java (64%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java (100%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java (74%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java (64%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java (55%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java (77%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java (51%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java (73%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java (62%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java (55%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java (76%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java (63%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java (60%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java (62%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java (62%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java (65%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java (64%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java (64%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java (74%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java (64%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java (73%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java (100%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java (73%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java (74%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java (66%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java (75%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java (75%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java (77%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java (76%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java (66%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java (75%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java (74%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java (71%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java (76%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java (63%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java (100%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java (69%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java (100%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java (68%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java (72%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java (63%) create mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java (100%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java (67%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java (75%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java (73%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java (78%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java (74%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java (65%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java (64%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java (73%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java (75%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java (69%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java (70%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java (60%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto (100%) rename {proto-google-cloud-datastream-v1alpha1 => owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1}/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto (100%) delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java delete mode 100644 proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java 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 deleted file mode 100644 index d1c53d48..00000000 --- a/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ /dev/null @@ -1,2768 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datastream.v1alpha1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Datastream service
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datastream/v1alpha1/datastream.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DatastreamGrpc { - - private DatastreamGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datastream.v1alpha1.Datastream"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectionProfiles", - requestType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse> - getListConnectionProfilesMethod; - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getListConnectionProfilesMethod = DatastreamGrpc.getListConnectionProfilesMethod) - == null) { - DatastreamGrpc.getListConnectionProfilesMethod = - getListConnectionProfilesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListConnectionProfiles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListConnectionProfiles")) - .build(); - } - } - } - return getListConnectionProfilesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getGetConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ConnectionProfile.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getGetConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.ConnectionProfile> - getGetConnectionProfileMethod; - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetConnectionProfileMethod = DatastreamGrpc.getGetConnectionProfileMethod) - == null) { - DatastreamGrpc.getGetConnectionProfileMethod = - getGetConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ConnectionProfile - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetConnectionProfile")) - .build(); - } - } - } - return getGetConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest, - com.google.longrunning.Operation> - getCreateConnectionProfileMethod; - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateConnectionProfileMethod = DatastreamGrpc.getCreateConnectionProfileMethod) - == null) { - DatastreamGrpc.getCreateConnectionProfileMethod = - getCreateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("CreateConnectionProfile")) - .build(); - } - } - } - return getCreateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest, - com.google.longrunning.Operation> - getUpdateConnectionProfileMethod; - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateConnectionProfileMethod = DatastreamGrpc.getUpdateConnectionProfileMethod) - == null) { - DatastreamGrpc.getUpdateConnectionProfileMethod = - getUpdateConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("UpdateConnectionProfile")) - .build(); - } - } - } - return getUpdateConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest, - com.google.longrunning.Operation> - getDeleteConnectionProfileMethod; - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteConnectionProfileMethod = DatastreamGrpc.getDeleteConnectionProfileMethod) - == null) { - DatastreamGrpc.getDeleteConnectionProfileMethod = - getDeleteConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DeleteConnectionProfile")) - .build(); - } - } - } - return getDeleteConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DiscoverConnectionProfile", - requestType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse> - getDiscoverConnectionProfileMethod; - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDiscoverConnectionProfileMethod = DatastreamGrpc.getDiscoverConnectionProfileMethod) - == null) { - DatastreamGrpc.getDiscoverConnectionProfileMethod = - getDiscoverConnectionProfileMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DiscoverConnectionProfile")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DiscoverConnectionProfile")) - .build(); - } - } - } - return getDiscoverConnectionProfileMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - getListStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListStreams", - requestType = com.google.cloud.datastream.v1alpha1.ListStreamsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - getListStreamsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListStreamsRequest, - com.google.cloud.datastream.v1alpha1.ListStreamsResponse> - getListStreamsMethod; - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListStreamsMethod = DatastreamGrpc.getListStreamsMethod) == null) { - DatastreamGrpc.getListStreamsMethod = - getListStreamsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListStreamsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListStreamsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListStreams")) - .build(); - } - } - } - return getListStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream> - getGetStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetStream", - requestType = com.google.cloud.datastream.v1alpha1.GetStreamRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.Stream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream> - getGetStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetStreamRequest, - com.google.cloud.datastream.v1alpha1.Stream> - getGetStreamMethod; - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetStreamMethod = DatastreamGrpc.getGetStreamMethod) == null) { - DatastreamGrpc.getGetStreamMethod = - getGetStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetStream")) - .build(); - } - } - } - return getGetStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation> - getCreateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateStream", - requestType = com.google.cloud.datastream.v1alpha1.CreateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation> - getCreateStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateStreamRequest, - com.google.longrunning.Operation> - getCreateStreamMethod; - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateStreamMethod = DatastreamGrpc.getCreateStreamMethod) == null) { - DatastreamGrpc.getCreateStreamMethod = - getCreateStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateStream")) - .build(); - } - } - } - return getCreateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation> - getUpdateStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateStream", - requestType = com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation> - getUpdateStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest, - com.google.longrunning.Operation> - getUpdateStreamMethod; - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getUpdateStreamMethod = DatastreamGrpc.getUpdateStreamMethod) == null) { - DatastreamGrpc.getUpdateStreamMethod = - getUpdateStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("UpdateStream")) - .build(); - } - } - } - return getUpdateStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation> - getDeleteStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteStream", - requestType = com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation> - getDeleteStreamMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest, - com.google.longrunning.Operation> - getDeleteStreamMethod; - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteStreamMethod = DatastreamGrpc.getDeleteStreamMethod) == null) { - DatastreamGrpc.getDeleteStreamMethod = - getDeleteStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteStream")) - .build(); - } - } - } - return getDeleteStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, com.google.longrunning.Operation> - getFetchErrorsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchErrors", - requestType = com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, com.google.longrunning.Operation> - getFetchErrorsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest, - com.google.longrunning.Operation> - getFetchErrorsMethod; - if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchErrorsMethod = DatastreamGrpc.getFetchErrorsMethod) == null) { - DatastreamGrpc.getFetchErrorsMethod = - getFetchErrorsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchErrors")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchErrorsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchErrors")) - .build(); - } - } - } - return getFetchErrorsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - getFetchStaticIpsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchStaticIps", - requestType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - getFetchStaticIpsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest, - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse> - getFetchStaticIpsMethod; - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getFetchStaticIpsMethod = DatastreamGrpc.getFetchStaticIpsMethod) == null) { - DatastreamGrpc.getFetchStaticIpsMethod = - getFetchStaticIpsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchStaticIps")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("FetchStaticIps")) - .build(); - } - } - } - return getFetchStaticIpsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest, - com.google.longrunning.Operation> - getCreatePrivateConnectionMethod; - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreatePrivateConnectionMethod = DatastreamGrpc.getCreatePrivateConnectionMethod) - == null) { - DatastreamGrpc.getCreatePrivateConnectionMethod = - getCreatePrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreatePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("CreatePrivateConnection")) - .build(); - } - } - } - return getCreatePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getGetPrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.PrivateConnection.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getGetPrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest, - com.google.cloud.datastream.v1alpha1.PrivateConnection> - getGetPrivateConnectionMethod; - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetPrivateConnectionMethod = DatastreamGrpc.getGetPrivateConnectionMethod) - == null) { - DatastreamGrpc.getGetPrivateConnectionMethod = - getGetPrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetPrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.PrivateConnection - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("GetPrivateConnection")) - .build(); - } - } - } - return getGetPrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPrivateConnections", - requestType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse> - getListPrivateConnectionsMethod; - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getListPrivateConnectionsMethod = DatastreamGrpc.getListPrivateConnectionsMethod) - == null) { - DatastreamGrpc.getListPrivateConnectionsMethod = - getListPrivateConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListPrivateConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("ListPrivateConnections")) - .build(); - } - } - } - return getListPrivateConnectionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePrivateConnection", - requestType = com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest, - com.google.longrunning.Operation> - getDeletePrivateConnectionMethod; - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) - == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeletePrivateConnectionMethod = DatastreamGrpc.getDeletePrivateConnectionMethod) - == null) { - DatastreamGrpc.getDeletePrivateConnectionMethod = - getDeletePrivateConnectionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeletePrivateConnection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DatastreamMethodDescriptorSupplier("DeletePrivateConnection")) - .build(); - } - } - } - return getDeletePrivateConnectionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRoute", - requestType = com.google.cloud.datastream.v1alpha1.CreateRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, com.google.longrunning.Operation> - getCreateRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.CreateRouteRequest, - com.google.longrunning.Operation> - getCreateRouteMethod; - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getCreateRouteMethod = DatastreamGrpc.getCreateRouteMethod) == null) { - DatastreamGrpc.getCreateRouteMethod = - getCreateRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.CreateRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("CreateRoute")) - .build(); - } - } - } - return getCreateRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route> - getGetRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRoute", - requestType = com.google.cloud.datastream.v1alpha1.GetRouteRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.Route.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route> - getGetRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.GetRouteRequest, - com.google.cloud.datastream.v1alpha1.Route> - getGetRouteMethod; - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getGetRouteMethod = DatastreamGrpc.getGetRouteMethod) == null) { - DatastreamGrpc.getGetRouteMethod = - getGetRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.GetRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("GetRoute")) - .build(); - } - } - } - return getGetRouteMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - getListRoutesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRoutes", - requestType = com.google.cloud.datastream.v1alpha1.ListRoutesRequest.class, - responseType = com.google.cloud.datastream.v1alpha1.ListRoutesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - getListRoutesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.ListRoutesRequest, - com.google.cloud.datastream.v1alpha1.ListRoutesResponse> - getListRoutesMethod; - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getListRoutesMethod = DatastreamGrpc.getListRoutesMethod) == null) { - DatastreamGrpc.getListRoutesMethod = - getListRoutesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoutes")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListRoutesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.ListRoutesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("ListRoutes")) - .build(); - } - } - } - return getListRoutesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRoute", - requestType = com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, com.google.longrunning.Operation> - getDeleteRouteMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest, - com.google.longrunning.Operation> - getDeleteRouteMethod; - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - synchronized (DatastreamGrpc.class) { - if ((getDeleteRouteMethod = DatastreamGrpc.getDeleteRouteMethod) == null) { - DatastreamGrpc.getDeleteRouteMethod = - getDeleteRouteMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRoute")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DatastreamMethodDescriptorSupplier("DeleteRoute")) - .build(); - } - } - } - return getDeleteRouteMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DatastreamStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamStub(channel, callOptions); - } - }; - return DatastreamStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DatastreamBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamBlockingStub(channel, callOptions); - } - }; - return DatastreamBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DatastreamFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DatastreamFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DatastreamFutureStub(channel, callOptions); - } - }; - return DatastreamFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Datastream service
-   * 
- */ - public 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/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java new file mode 100644 index 00000000..06e33102 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamClient.java @@ -0,0 +1,3809 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.datastream.v1.stub.DatastreamStub; +import com.google.cloud.datastream.v1.stub.DatastreamStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Datastream service + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+ *   ConnectionProfileName name =
+ *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+ *   ConnectionProfile response = datastreamClient.getConnectionProfile(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the DatastreamClient object to clean up resources such as + * threads. In the example above, try-with-resources is used, which automatically calls close(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. 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. + *
  2. 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. + *
  3. 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. + *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of DatastreamSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * DatastreamSettings datastreamSettings =
+ *     DatastreamSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * DatastreamSettings datastreamSettings =
+ *     DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class DatastreamClient implements BackgroundResource { + private final DatastreamSettings settings; + private final DatastreamStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of DatastreamClient with default settings. */ + public static final DatastreamClient create() throws IOException { + return create(DatastreamSettings.newBuilder().build()); + } + + /** + * Constructs an instance of DatastreamClient, using the given settings. The channels are created + * based on the settings passed in, or defaults for any settings that are not set. + */ + public static final DatastreamClient create(DatastreamSettings settings) throws IOException { + return new DatastreamClient(settings); + } + + /** + * Constructs an instance of DatastreamClient, using the given stub for making calls. This is for + * advanced usage - prefer using create(DatastreamSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final DatastreamClient create(DatastreamStub stub) { + return new DatastreamClient(stub); + } + + /** + * Constructs an instance of DatastreamClient, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ + protected DatastreamClient(DatastreamSettings settings) throws IOException { + this.settings = settings; + this.stub = ((DatastreamStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected DatastreamClient(DatastreamStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final DatastreamSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public DatastreamStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list connection profiles created in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (ConnectionProfile element :
+   *       datastreamClient.listConnectionProfiles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of connection profiles. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectionProfilesPagedResponse listConnectionProfiles(LocationName parent) { + ListConnectionProfilesRequest request = + ListConnectionProfilesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConnectionProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list connection profiles created in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (ConnectionProfile element :
+   *       datastreamClient.listConnectionProfiles(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of connection profiles. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectionProfilesPagedResponse listConnectionProfiles(String parent) { + ListConnectionProfilesRequest request = + ListConnectionProfilesRequest.newBuilder().setParent(parent).build(); + return listConnectionProfiles(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list connection profiles created in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListConnectionProfilesRequest request =
+   *       ListConnectionProfilesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (ConnectionProfile element :
+   *       datastreamClient.listConnectionProfiles(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConnectionProfilesPagedResponse listConnectionProfiles( + ListConnectionProfilesRequest request) { + return listConnectionProfilesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list connection profiles created in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListConnectionProfilesRequest request =
+   *       ListConnectionProfilesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.listConnectionProfilesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ConnectionProfile element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConnectionProfilesPagedCallable() { + return stub.listConnectionProfilesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list connection profiles created in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListConnectionProfilesRequest request =
+   *       ListConnectionProfilesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListConnectionProfilesResponse response =
+   *         datastreamClient.listConnectionProfilesCallable().call(request);
+   *     for (ConnectionProfile element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConnectionProfilesCallable() { + return stub.listConnectionProfilesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ConnectionProfileName name =
+   *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+   *   ConnectionProfile response = datastreamClient.getConnectionProfile(name);
+   * }
+   * }
+ * + * @param name Required. The name of the connection profile resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConnectionProfile getConnectionProfile(ConnectionProfileName name) { + GetConnectionProfileRequest request = + GetConnectionProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getConnectionProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
+   *   ConnectionProfile response = datastreamClient.getConnectionProfile(name);
+   * }
+   * }
+ * + * @param name Required. The name of the connection profile resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConnectionProfile getConnectionProfile(String name) { + GetConnectionProfileRequest request = + GetConnectionProfileRequest.newBuilder().setName(name).build(); + return getConnectionProfile(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetConnectionProfileRequest request =
+   *       GetConnectionProfileRequest.newBuilder()
+   *           .setName(
+   *               ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+   *                   .toString())
+   *           .build();
+   *   ConnectionProfile response = datastreamClient.getConnectionProfile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConnectionProfile getConnectionProfile(GetConnectionProfileRequest request) { + return getConnectionProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetConnectionProfileRequest request =
+   *       GetConnectionProfileRequest.newBuilder()
+   *           .setName(
+   *               ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.getConnectionProfileCallable().futureCall(request);
+   *   // Do something.
+   *   ConnectionProfile response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getConnectionProfileCallable() { + return stub.getConnectionProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a connection profile in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
+   *   String connectionProfileId = "connectionProfileId597575526";
+   *   ConnectionProfile response =
+   *       datastreamClient
+   *           .createConnectionProfileAsync(parent, connectionProfile, connectionProfileId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of ConnectionProfiles. + * @param connectionProfile Required. The connection profile resource to create. + * @param connectionProfileId Required. The connection profile identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createConnectionProfileAsync( + LocationName parent, ConnectionProfile connectionProfile, String connectionProfileId) { + CreateConnectionProfileRequest request = + CreateConnectionProfileRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConnectionProfile(connectionProfile) + .setConnectionProfileId(connectionProfileId) + .build(); + return createConnectionProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a connection profile in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
+   *   String connectionProfileId = "connectionProfileId597575526";
+   *   ConnectionProfile response =
+   *       datastreamClient
+   *           .createConnectionProfileAsync(parent, connectionProfile, connectionProfileId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of ConnectionProfiles. + * @param connectionProfile Required. The connection profile resource to create. + * @param connectionProfileId Required. The connection profile identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createConnectionProfileAsync( + String parent, ConnectionProfile connectionProfile, String connectionProfileId) { + CreateConnectionProfileRequest request = + CreateConnectionProfileRequest.newBuilder() + .setParent(parent) + .setConnectionProfile(connectionProfile) + .setConnectionProfileId(connectionProfileId) + .build(); + return createConnectionProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a connection profile in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateConnectionProfileRequest request =
+   *       CreateConnectionProfileRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConnectionProfileId("connectionProfileId597575526")
+   *           .setConnectionProfile(ConnectionProfile.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ConnectionProfile response = datastreamClient.createConnectionProfileAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createConnectionProfileAsync( + CreateConnectionProfileRequest request) { + return createConnectionProfileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a connection profile in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateConnectionProfileRequest request =
+   *       CreateConnectionProfileRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConnectionProfileId("connectionProfileId597575526")
+   *           .setConnectionProfile(ConnectionProfile.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.createConnectionProfileOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ConnectionProfile response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + createConnectionProfileOperationCallable() { + return stub.createConnectionProfileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a connection profile in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateConnectionProfileRequest request =
+   *       CreateConnectionProfileRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConnectionProfileId("connectionProfileId597575526")
+   *           .setConnectionProfile(ConnectionProfile.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.createConnectionProfileCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createConnectionProfileCallable() { + return stub.createConnectionProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the parameters of a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ConnectionProfile response =
+   *       datastreamClient.updateConnectionProfileAsync(connectionProfile, updateMask).get();
+   * }
+   * }
+ * + * @param connectionProfile Required. The connection profile to update. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * ConnectionProfile resource by the update. The fields specified in the update_mask are + * relative to the resource, not the full request. A field will be overwritten if it is in the + * mask. If the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateConnectionProfileAsync( + ConnectionProfile connectionProfile, FieldMask updateMask) { + UpdateConnectionProfileRequest request = + UpdateConnectionProfileRequest.newBuilder() + .setConnectionProfile(connectionProfile) + .setUpdateMask(updateMask) + .build(); + return updateConnectionProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the parameters of a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   UpdateConnectionProfileRequest request =
+   *       UpdateConnectionProfileRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConnectionProfile(ConnectionProfile.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ConnectionProfile response = datastreamClient.updateConnectionProfileAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateConnectionProfileAsync( + UpdateConnectionProfileRequest request) { + return updateConnectionProfileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the parameters of a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   UpdateConnectionProfileRequest request =
+   *       UpdateConnectionProfileRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConnectionProfile(ConnectionProfile.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.updateConnectionProfileOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ConnectionProfile response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + updateConnectionProfileOperationCallable() { + return stub.updateConnectionProfileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the parameters of a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   UpdateConnectionProfileRequest request =
+   *       UpdateConnectionProfileRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setConnectionProfile(ConnectionProfile.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.updateConnectionProfileCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateConnectionProfileCallable() { + return stub.updateConnectionProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ConnectionProfileName name =
+   *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+   *   datastreamClient.deleteConnectionProfileAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the connection profile resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConnectionProfileAsync( + ConnectionProfileName name) { + DeleteConnectionProfileRequest request = + DeleteConnectionProfileRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteConnectionProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]").toString();
+   *   datastreamClient.deleteConnectionProfileAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the connection profile resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConnectionProfileAsync(String name) { + DeleteConnectionProfileRequest request = + DeleteConnectionProfileRequest.newBuilder().setName(name).build(); + return deleteConnectionProfileAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteConnectionProfileRequest request =
+   *       DeleteConnectionProfileRequest.newBuilder()
+   *           .setName(
+   *               ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   datastreamClient.deleteConnectionProfileAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteConnectionProfileAsync( + DeleteConnectionProfileRequest request) { + return deleteConnectionProfileOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteConnectionProfileRequest request =
+   *       DeleteConnectionProfileRequest.newBuilder()
+   *           .setName(
+   *               ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.deleteConnectionProfileOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteConnectionProfileOperationCallable() { + return stub.deleteConnectionProfileOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a connection profile. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteConnectionProfileRequest request =
+   *       DeleteConnectionProfileRequest.newBuilder()
+   *           .setName(
+   *               ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.deleteConnectionProfileCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteConnectionProfileCallable() { + return stub.deleteConnectionProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DiscoverConnectionProfileRequest request =
+   *       DiscoverConnectionProfileRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   DiscoverConnectionProfileResponse response =
+   *       datastreamClient.discoverConnectionProfile(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DiscoverConnectionProfileResponse discoverConnectionProfile( + DiscoverConnectionProfileRequest request) { + return discoverConnectionProfileCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * 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. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DiscoverConnectionProfileRequest request =
+   *       DiscoverConnectionProfileRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.discoverConnectionProfileCallable().futureCall(request);
+   *   // Do something.
+   *   DiscoverConnectionProfileResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + discoverConnectionProfileCallable() { + return stub.discoverConnectionProfileCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list streams in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Stream element : datastreamClient.listStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of streams. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStreamsPagedResponse listStreams(LocationName parent) { + ListStreamsRequest request = + ListStreamsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list streams in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Stream element : datastreamClient.listStreams(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of streams. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStreamsPagedResponse listStreams(String parent) { + ListStreamsRequest request = ListStreamsRequest.newBuilder().setParent(parent).build(); + return listStreams(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list streams in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListStreamsRequest request =
+   *       ListStreamsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Stream element : datastreamClient.listStreams(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStreamsPagedResponse listStreams(ListStreamsRequest request) { + return listStreamsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list streams in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListStreamsRequest request =
+   *       ListStreamsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = datastreamClient.listStreamsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Stream element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listStreamsPagedCallable() { + return stub.listStreamsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list streams in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListStreamsRequest request =
+   *       ListStreamsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListStreamsResponse response = datastreamClient.listStreamsCallable().call(request);
+   *     for (Stream element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listStreamsCallable() { + return stub.listStreamsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
+   *   Stream response = datastreamClient.getStream(name);
+   * }
+   * }
+ * + * @param name Required. The name of the stream resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Stream getStream(StreamName name) { + GetStreamRequest request = + GetStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
+   *   Stream response = datastreamClient.getStream(name);
+   * }
+   * }
+ * + * @param name Required. The name of the stream resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Stream getStream(String name) { + GetStreamRequest request = GetStreamRequest.newBuilder().setName(name).build(); + return getStream(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetStreamRequest request =
+   *       GetStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .build();
+   *   Stream response = datastreamClient.getStream(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Stream getStream(GetStreamRequest request) { + return getStreamCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetStreamRequest request =
+   *       GetStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .build();
+   *   ApiFuture future = datastreamClient.getStreamCallable().futureCall(request);
+   *   // Do something.
+   *   Stream response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getStreamCallable() { + return stub.getStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Stream stream = Stream.newBuilder().build();
+   *   String streamId = "streamId1790933179";
+   *   Stream response = datastreamClient.createStreamAsync(parent, stream, streamId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of streams. + * @param stream Required. The stream resource to create. + * @param streamId Required. The stream identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createStreamAsync( + LocationName parent, Stream stream, String streamId) { + CreateStreamRequest request = + CreateStreamRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setStream(stream) + .setStreamId(streamId) + .build(); + return createStreamAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Stream stream = Stream.newBuilder().build();
+   *   String streamId = "streamId1790933179";
+   *   Stream response = datastreamClient.createStreamAsync(parent, stream, streamId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of streams. + * @param stream Required. The stream resource to create. + * @param streamId Required. The stream identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createStreamAsync( + String parent, Stream stream, String streamId) { + CreateStreamRequest request = + CreateStreamRequest.newBuilder() + .setParent(parent) + .setStream(stream) + .setStreamId(streamId) + .build(); + return createStreamAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateStreamRequest request =
+   *       CreateStreamRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setStreamId("streamId1790933179")
+   *           .setStream(Stream.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   Stream response = datastreamClient.createStreamAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createStreamAsync( + CreateStreamRequest request) { + return createStreamOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateStreamRequest request =
+   *       CreateStreamRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setStreamId("streamId1790933179")
+   *           .setStream(Stream.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.createStreamOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Stream response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createStreamOperationCallable() { + return stub.createStreamOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateStreamRequest request =
+   *       CreateStreamRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setStreamId("streamId1790933179")
+   *           .setStream(Stream.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = datastreamClient.createStreamCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createStreamCallable() { + return stub.createStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the configuration of a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   Stream stream = Stream.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Stream response = datastreamClient.updateStreamAsync(stream, updateMask).get();
+   * }
+   * }
+ * + * @param stream Required. The stream resource to update. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * stream resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateStreamAsync( + Stream stream, FieldMask updateMask) { + UpdateStreamRequest request = + UpdateStreamRequest.newBuilder().setStream(stream).setUpdateMask(updateMask).build(); + return updateStreamAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the configuration of a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   UpdateStreamRequest request =
+   *       UpdateStreamRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setStream(Stream.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   Stream response = datastreamClient.updateStreamAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateStreamAsync( + UpdateStreamRequest request) { + return updateStreamOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the configuration of a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   UpdateStreamRequest request =
+   *       UpdateStreamRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setStream(Stream.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.updateStreamOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Stream response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateStreamOperationCallable() { + return stub.updateStreamOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to update the configuration of a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   UpdateStreamRequest request =
+   *       UpdateStreamRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setStream(Stream.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .setValidateOnly(true)
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future = datastreamClient.updateStreamCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateStreamCallable() { + return stub.updateStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
+   *   datastreamClient.deleteStreamAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the stream resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteStreamAsync(StreamName name) { + DeleteStreamRequest request = + DeleteStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteStreamAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
+   *   datastreamClient.deleteStreamAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the stream resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteStreamAsync(String name) { + DeleteStreamRequest request = DeleteStreamRequest.newBuilder().setName(name).build(); + return deleteStreamAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteStreamRequest request =
+   *       DeleteStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   datastreamClient.deleteStreamAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteStreamAsync( + DeleteStreamRequest request) { + return deleteStreamOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteStreamRequest request =
+   *       DeleteStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.deleteStreamOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteStreamOperationCallable() { + return stub.deleteStreamOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteStreamRequest request =
+   *       DeleteStreamRequest.newBuilder()
+   *           .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = datastreamClient.deleteStreamCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteStreamCallable() { + return stub.deleteStreamCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StreamObjectName name =
+   *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]");
+   *   StreamObject response = datastreamClient.getStreamObject(name);
+   * }
+   * }
+ * + * @param name Required. The name of the stream object resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamObject getStreamObject(StreamObjectName name) { + GetStreamObjectRequest request = + GetStreamObjectRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getStreamObject(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString();
+   *   StreamObject response = datastreamClient.getStreamObject(name);
+   * }
+   * }
+ * + * @param name Required. The name of the stream object resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamObject getStreamObject(String name) { + GetStreamObjectRequest request = GetStreamObjectRequest.newBuilder().setName(name).build(); + return getStreamObject(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetStreamObjectRequest request =
+   *       GetStreamObjectRequest.newBuilder()
+   *           .setName(
+   *               StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString())
+   *           .build();
+   *   StreamObject response = datastreamClient.getStreamObject(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamObject getStreamObject(GetStreamObjectRequest request) { + return getStreamObjectCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetStreamObjectRequest request =
+   *       GetStreamObjectRequest.newBuilder()
+   *           .setName(
+   *               StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.getStreamObjectCallable().futureCall(request);
+   *   // Do something.
+   *   StreamObject response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getStreamObjectCallable() { + return stub.getStreamObjectCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to look up a stream object by its source object identifier. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LookupStreamObjectRequest request =
+   *       LookupStreamObjectRequest.newBuilder()
+   *           .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setSourceObjectIdentifier(SourceObjectIdentifier.newBuilder().build())
+   *           .build();
+   *   StreamObject response = datastreamClient.lookupStreamObject(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StreamObject lookupStreamObject(LookupStreamObjectRequest request) { + return lookupStreamObjectCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to look up a stream object by its source object identifier. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LookupStreamObjectRequest request =
+   *       LookupStreamObjectRequest.newBuilder()
+   *           .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setSourceObjectIdentifier(SourceObjectIdentifier.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.lookupStreamObjectCallable().futureCall(request);
+   *   // Do something.
+   *   StreamObject response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable lookupStreamObjectCallable() { + return stub.lookupStreamObjectCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list the objects of a specific stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StreamName parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]");
+   *   for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent stream that owns the collection of objects. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStreamObjectsPagedResponse listStreamObjects(StreamName parent) { + ListStreamObjectsRequest request = + ListStreamObjectsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listStreamObjects(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list the objects of a specific stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString();
+   *   for (StreamObject element : datastreamClient.listStreamObjects(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent stream that owns the collection of objects. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStreamObjectsPagedResponse listStreamObjects(String parent) { + ListStreamObjectsRequest request = + ListStreamObjectsRequest.newBuilder().setParent(parent).build(); + return listStreamObjects(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list the objects of a specific stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListStreamObjectsRequest request =
+   *       ListStreamObjectsRequest.newBuilder()
+   *           .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (StreamObject element : datastreamClient.listStreamObjects(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListStreamObjectsPagedResponse listStreamObjects(ListStreamObjectsRequest request) { + return listStreamObjectsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list the objects of a specific stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListStreamObjectsRequest request =
+   *       ListStreamObjectsRequest.newBuilder()
+   *           .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.listStreamObjectsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (StreamObject element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listStreamObjectsPagedCallable() { + return stub.listStreamObjectsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list the objects of a specific stream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListStreamObjectsRequest request =
+   *       ListStreamObjectsRequest.newBuilder()
+   *           .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListStreamObjectsResponse response =
+   *         datastreamClient.listStreamObjectsCallable().call(request);
+   *     for (StreamObject element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listStreamObjectsCallable() { + return stub.listStreamObjectsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StreamObjectName object =
+   *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]");
+   *   StartBackfillJobResponse response = datastreamClient.startBackfillJob(object);
+   * }
+   * }
+ * + * @param object Required. The name of the stream object resource to start a backfill job for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StartBackfillJobResponse startBackfillJob(StreamObjectName object) { + StartBackfillJobRequest request = + StartBackfillJobRequest.newBuilder() + .setObject(object == null ? null : object.toString()) + .build(); + return startBackfillJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String object =
+   *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString();
+   *   StartBackfillJobResponse response = datastreamClient.startBackfillJob(object);
+   * }
+   * }
+ * + * @param object Required. The name of the stream object resource to start a backfill job for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StartBackfillJobResponse startBackfillJob(String object) { + StartBackfillJobRequest request = + StartBackfillJobRequest.newBuilder().setObject(object).build(); + return startBackfillJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StartBackfillJobRequest request =
+   *       StartBackfillJobRequest.newBuilder()
+   *           .setObject(
+   *               StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString())
+   *           .build();
+   *   StartBackfillJobResponse response = datastreamClient.startBackfillJob(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StartBackfillJobResponse startBackfillJob(StartBackfillJobRequest request) { + return startBackfillJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to start a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StartBackfillJobRequest request =
+   *       StartBackfillJobRequest.newBuilder()
+   *           .setObject(
+   *               StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.startBackfillJobCallable().futureCall(request);
+   *   // Do something.
+   *   StartBackfillJobResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + startBackfillJobCallable() { + return stub.startBackfillJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to stop a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StreamObjectName object =
+   *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]");
+   *   StopBackfillJobResponse response = datastreamClient.stopBackfillJob(object);
+   * }
+   * }
+ * + * @param object Required. The name of the stream object resource to stop the backfill job for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StopBackfillJobResponse stopBackfillJob(StreamObjectName object) { + StopBackfillJobRequest request = + StopBackfillJobRequest.newBuilder() + .setObject(object == null ? null : object.toString()) + .build(); + return stopBackfillJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to stop a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String object =
+   *       StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString();
+   *   StopBackfillJobResponse response = datastreamClient.stopBackfillJob(object);
+   * }
+   * }
+ * + * @param object Required. The name of the stream object resource to stop the backfill job for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StopBackfillJobResponse stopBackfillJob(String object) { + StopBackfillJobRequest request = StopBackfillJobRequest.newBuilder().setObject(object).build(); + return stopBackfillJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to stop a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StopBackfillJobRequest request =
+   *       StopBackfillJobRequest.newBuilder()
+   *           .setObject(
+   *               StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString())
+   *           .build();
+   *   StopBackfillJobResponse response = datastreamClient.stopBackfillJob(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final StopBackfillJobResponse stopBackfillJob(StopBackfillJobRequest request) { + return stopBackfillJobCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to stop a backfill job for the specified stream object. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   StopBackfillJobRequest request =
+   *       StopBackfillJobRequest.newBuilder()
+   *           .setObject(
+   *               StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.stopBackfillJobCallable().futureCall(request);
+   *   // Do something.
+   *   StopBackfillJobResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + stopBackfillJobCallable() { + return stub.stopBackfillJobCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The FetchStaticIps API call exposes the static IP addresses used by Datastream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName name = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The resource name for the location for which static IPs should be + * returned. Must be in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchStaticIpsPagedResponse fetchStaticIps(LocationName name) { + FetchStaticIpsRequest request = + FetchStaticIpsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return fetchStaticIps(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The FetchStaticIps API call exposes the static IP addresses used by Datastream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (String element : datastreamClient.fetchStaticIps(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The resource name for the location for which static IPs should be + * returned. Must be in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchStaticIpsPagedResponse fetchStaticIps(String name) { + FetchStaticIpsRequest request = FetchStaticIpsRequest.newBuilder().setName(name).build(); + return fetchStaticIps(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The FetchStaticIps API call exposes the static IP addresses used by Datastream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   FetchStaticIpsRequest request =
+   *       FetchStaticIpsRequest.newBuilder()
+   *           .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : datastreamClient.fetchStaticIps(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchStaticIpsPagedResponse fetchStaticIps(FetchStaticIpsRequest request) { + return fetchStaticIpsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The FetchStaticIps API call exposes the static IP addresses used by Datastream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   FetchStaticIpsRequest request =
+   *       FetchStaticIpsRequest.newBuilder()
+   *           .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future = datastreamClient.fetchStaticIpsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchStaticIpsPagedCallable() { + return stub.fetchStaticIpsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * The FetchStaticIps API call exposes the static IP addresses used by Datastream. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   FetchStaticIpsRequest request =
+   *       FetchStaticIpsRequest.newBuilder()
+   *           .setName(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     FetchStaticIpsResponse response = datastreamClient.fetchStaticIpsCallable().call(request);
+   *     for (String element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + fetchStaticIpsCallable() { + return stub.fetchStaticIpsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+   *   String privateConnectionId = "privateConnectionId-1926654532";
+   *   PrivateConnection response =
+   *       datastreamClient
+   *           .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of PrivateConnections. + * @param privateConnection Required. The Private Connectivity resource to create. + * @param privateConnectionId Required. The private connectivity identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateConnectionAsync( + LocationName parent, PrivateConnection privateConnection, String privateConnectionId) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setPrivateConnection(privateConnection) + .setPrivateConnectionId(privateConnectionId) + .build(); + return createPrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   PrivateConnection privateConnection = PrivateConnection.newBuilder().build();
+   *   String privateConnectionId = "privateConnectionId-1926654532";
+   *   PrivateConnection response =
+   *       datastreamClient
+   *           .createPrivateConnectionAsync(parent, privateConnection, privateConnectionId)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of PrivateConnections. + * @param privateConnection Required. The Private Connectivity resource to create. + * @param privateConnectionId Required. The private connectivity identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateConnectionAsync( + String parent, PrivateConnection privateConnection, String privateConnectionId) { + CreatePrivateConnectionRequest request = + CreatePrivateConnectionRequest.newBuilder() + .setParent(parent) + .setPrivateConnection(privateConnection) + .setPrivateConnectionId(privateConnectionId) + .build(); + return createPrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   PrivateConnection response = datastreamClient.createPrivateConnectionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createPrivateConnectionAsync( + CreatePrivateConnectionRequest request) { + return createPrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.createPrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationCallable() { + return stub.createPrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreatePrivateConnectionRequest request =
+   *       CreatePrivateConnectionRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrivateConnectionId("privateConnectionId-1926654532")
+   *           .setPrivateConnection(PrivateConnection.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.createPrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createPrivateConnectionCallable() { + return stub.createPrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   PrivateConnectionName name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   PrivateConnection response = datastreamClient.getPrivateConnection(name);
+   * }
+   * }
+ * + * @param name Required. The name of the private connectivity configuration to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(PrivateConnectionName name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getPrivateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   PrivateConnection response = datastreamClient.getPrivateConnection(name);
+   * }
+   * }
+ * + * @param name Required. The name of the private connectivity configuration to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(String name) { + GetPrivateConnectionRequest request = + GetPrivateConnectionRequest.newBuilder().setName(name).build(); + return getPrivateConnection(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetPrivateConnectionRequest request =
+   *       GetPrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   PrivateConnection response = datastreamClient.getPrivateConnection(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final PrivateConnection getPrivateConnection(GetPrivateConnectionRequest request) { + return getPrivateConnectionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetPrivateConnectionRequest request =
+   *       GetPrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.getPrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   PrivateConnection response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getPrivateConnectionCallable() { + return stub.getPrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list private connectivity configurations in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (PrivateConnection element :
+   *       datastreamClient.listPrivateConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of private connectivity + * configurations. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections(LocationName parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listPrivateConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list private connectivity configurations in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (PrivateConnection element :
+   *       datastreamClient.listPrivateConnections(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of private connectivity + * configurations. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections(String parent) { + ListPrivateConnectionsRequest request = + ListPrivateConnectionsRequest.newBuilder().setParent(parent).build(); + return listPrivateConnections(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list private connectivity configurations in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (PrivateConnection element :
+   *       datastreamClient.listPrivateConnections(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListPrivateConnectionsPagedResponse listPrivateConnections( + ListPrivateConnectionsRequest request) { + return listPrivateConnectionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list private connectivity configurations in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.listPrivateConnectionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (PrivateConnection element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateConnectionsPagedCallable() { + return stub.listPrivateConnectionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list private connectivity configurations in a project and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListPrivateConnectionsRequest request =
+   *       ListPrivateConnectionsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListPrivateConnectionsResponse response =
+   *         datastreamClient.listPrivateConnectionsCallable().call(request);
+   *     for (PrivateConnection element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listPrivateConnectionsCallable() { + return stub.listPrivateConnectionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   PrivateConnectionName name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   datastreamClient.deletePrivateConnectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the private connectivity configuration to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync( + PrivateConnectionName name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deletePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   datastreamClient.deletePrivateConnectionAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the private connectivity configuration to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync(String name) { + DeletePrivateConnectionRequest request = + DeletePrivateConnectionRequest.newBuilder().setName(name).build(); + return deletePrivateConnectionAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   datastreamClient.deletePrivateConnectionAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deletePrivateConnectionAsync( + DeletePrivateConnectionRequest request) { + return deletePrivateConnectionOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.deletePrivateConnectionOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deletePrivateConnectionOperationCallable() { + return stub.deletePrivateConnectionOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a private connectivity configuration. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeletePrivateConnectionRequest request =
+   *       DeletePrivateConnectionRequest.newBuilder()
+   *           .setName(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.deletePrivateConnectionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deletePrivateConnectionCallable() { + return stub.deletePrivateConnectionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a route for a private connectivity configuration in a project and + * location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   PrivateConnectionName parent =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   Route route = Route.newBuilder().build();
+   *   String routeId = "routeId1385647428";
+   *   Route response = datastreamClient.createRouteAsync(parent, route, routeId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of Routes. + * @param route Required. The Route resource to create. + * @param routeId Required. The Route identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createRouteAsync( + PrivateConnectionName parent, Route route, String routeId) { + CreateRouteRequest request = + CreateRouteRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setRoute(route) + .setRouteId(routeId) + .build(); + return createRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a route for a private connectivity configuration in a project and + * location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   Route route = Route.newBuilder().build();
+   *   String routeId = "routeId1385647428";
+   *   Route response = datastreamClient.createRouteAsync(parent, route, routeId).get();
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of Routes. + * @param route Required. The Route resource to create. + * @param routeId Required. The Route identifier. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createRouteAsync( + String parent, Route route, String routeId) { + CreateRouteRequest request = + CreateRouteRequest.newBuilder() + .setParent(parent) + .setRoute(route) + .setRouteId(routeId) + .build(); + return createRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a route for a private connectivity configuration in a project and + * location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateRouteRequest request =
+   *       CreateRouteRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRouteId("routeId1385647428")
+   *           .setRoute(Route.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   Route response = datastreamClient.createRouteAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createRouteAsync( + CreateRouteRequest request) { + return createRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a route for a private connectivity configuration in a project and + * location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateRouteRequest request =
+   *       CreateRouteRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRouteId("routeId1385647428")
+   *           .setRoute(Route.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.createRouteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Route response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createRouteOperationCallable() { + return stub.createRouteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to create a route for a private connectivity configuration in a project and + * location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   CreateRouteRequest request =
+   *       CreateRouteRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setRouteId("routeId1385647428")
+   *           .setRoute(Route.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = datastreamClient.createRouteCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createRouteCallable() { + return stub.createRouteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]");
+   *   Route response = datastreamClient.getRoute(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Route resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Route getRoute(RouteName name) { + GetRouteRequest request = + GetRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getRoute(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString();
+   *   Route response = datastreamClient.getRoute(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Route resource to get. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Route getRoute(String name) { + GetRouteRequest request = GetRouteRequest.newBuilder().setName(name).build(); + return getRoute(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetRouteRequest request =
+   *       GetRouteRequest.newBuilder()
+   *           .setName(
+   *               RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]")
+   *                   .toString())
+   *           .build();
+   *   Route response = datastreamClient.getRoute(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Route getRoute(GetRouteRequest request) { + return getRouteCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to get details about a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetRouteRequest request =
+   *       GetRouteRequest.newBuilder()
+   *           .setName(
+   *               RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = datastreamClient.getRouteCallable().futureCall(request);
+   *   // Do something.
+   *   Route response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getRouteCallable() { + return stub.getRouteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list routes created for a private connectivity configuration in a project + * and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   PrivateConnectionName parent =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]");
+   *   for (Route element : datastreamClient.listRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of Routess. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRoutesPagedResponse listRoutes(PrivateConnectionName parent) { + ListRoutesRequest request = + ListRoutesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list routes created for a private connectivity configuration in a project + * and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String parent =
+   *       PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]").toString();
+   *   for (Route element : datastreamClient.listRoutes(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent that owns the collection of Routess. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRoutesPagedResponse listRoutes(String parent) { + ListRoutesRequest request = ListRoutesRequest.newBuilder().setParent(parent).build(); + return listRoutes(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list routes created for a private connectivity configuration in a project + * and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListRoutesRequest request =
+   *       ListRoutesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Route element : datastreamClient.listRoutes(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRoutesPagedResponse listRoutes(ListRoutesRequest request) { + return listRoutesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list routes created for a private connectivity configuration in a project + * and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListRoutesRequest request =
+   *       ListRoutesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = datastreamClient.listRoutesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Route element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listRoutesPagedCallable() { + return stub.listRoutesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to list routes created for a private connectivity configuration in a project + * and location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListRoutesRequest request =
+   *       ListRoutesRequest.newBuilder()
+   *           .setParent(
+   *               PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListRoutesResponse response = datastreamClient.listRoutesCallable().call(request);
+   *     for (Route element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listRoutesCallable() { + return stub.listRoutesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]");
+   *   datastreamClient.deleteRouteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Route resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRouteAsync(RouteName name) { + DeleteRouteRequest request = + DeleteRouteRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   String name =
+   *       RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]").toString();
+   *   datastreamClient.deleteRouteAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The name of the Route resource to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRouteAsync(String name) { + DeleteRouteRequest request = DeleteRouteRequest.newBuilder().setName(name).build(); + return deleteRouteAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteRouteRequest request =
+   *       DeleteRouteRequest.newBuilder()
+   *           .setName(
+   *               RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   datastreamClient.deleteRouteAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteRouteAsync( + DeleteRouteRequest request) { + return deleteRouteOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteRouteRequest request =
+   *       DeleteRouteRequest.newBuilder()
+   *           .setName(
+   *               RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       datastreamClient.deleteRouteOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteRouteOperationCallable() { + return stub.deleteRouteOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Use this method to delete a route. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   DeleteRouteRequest request =
+   *       DeleteRouteRequest.newBuilder()
+   *           .setName(
+   *               RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future = datastreamClient.deleteRouteCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteRouteCallable() { + return stub.deleteRouteCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : datastreamClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       datastreamClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = datastreamClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = datastreamClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = datastreamClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListConnectionProfilesPagedResponse + extends AbstractPagedListResponse< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConnectionProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListConnectionProfilesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { + super(page, ListConnectionProfilesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConnectionProfilesPage + extends AbstractPage< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesPage> { + + private ListConnectionProfilesPage( + PageContext< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> + context, + ListConnectionProfilesResponse response) { + super(context, response); + } + + private static ListConnectionProfilesPage createEmptyPage() { + return new ListConnectionProfilesPage(null, null); + } + + @Override + protected ListConnectionProfilesPage createPage( + PageContext< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> + context, + ListConnectionProfilesResponse response) { + return new ListConnectionProfilesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConnectionProfilesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesPage, ListConnectionProfilesFixedSizeCollection> { + + private ListConnectionProfilesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConnectionProfilesFixedSizeCollection createEmptyCollection() { + return new ListConnectionProfilesFixedSizeCollection(null, 0); + } + + @Override + protected ListConnectionProfilesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConnectionProfilesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListStreamsPagedResponse + extends AbstractPagedListResponse< + ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListStreamsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListStreamsPagedResponse(ListStreamsPage page) { + super(page, ListStreamsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListStreamsPage + extends AbstractPage { + + private ListStreamsPage( + PageContext context, + ListStreamsResponse response) { + super(context, response); + } + + private static ListStreamsPage createEmptyPage() { + return new ListStreamsPage(null, null); + } + + @Override + protected ListStreamsPage createPage( + PageContext context, + ListStreamsResponse response) { + return new ListStreamsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListStreamsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsFixedSizeCollection> { + + private ListStreamsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListStreamsFixedSizeCollection createEmptyCollection() { + return new ListStreamsFixedSizeCollection(null, 0); + } + + @Override + protected ListStreamsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListStreamsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListStreamObjectsPagedResponse + extends AbstractPagedListResponse< + ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, ListStreamObjectsPage, + ListStreamObjectsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListStreamObjectsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListStreamObjectsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListStreamObjectsPagedResponse(ListStreamObjectsPage page) { + super(page, ListStreamObjectsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListStreamObjectsPage + extends AbstractPage< + ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, + ListStreamObjectsPage> { + + private ListStreamObjectsPage( + PageContext context, + ListStreamObjectsResponse response) { + super(context, response); + } + + private static ListStreamObjectsPage createEmptyPage() { + return new ListStreamObjectsPage(null, null); + } + + @Override + protected ListStreamObjectsPage createPage( + PageContext context, + ListStreamObjectsResponse response) { + return new ListStreamObjectsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListStreamObjectsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, ListStreamObjectsPage, + ListStreamObjectsFixedSizeCollection> { + + private ListStreamObjectsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListStreamObjectsFixedSizeCollection createEmptyCollection() { + return new ListStreamObjectsFixedSizeCollection(null, 0); + } + + @Override + protected ListStreamObjectsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListStreamObjectsFixedSizeCollection(pages, collectionSize); + } + } + + public static class FetchStaticIpsPagedResponse + extends AbstractPagedListResponse< + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchStaticIpsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchStaticIpsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchStaticIpsPagedResponse(FetchStaticIpsPage page) { + super(page, FetchStaticIpsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchStaticIpsPage + extends AbstractPage< + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage> { + + private FetchStaticIpsPage( + PageContext context, + FetchStaticIpsResponse response) { + super(context, response); + } + + private static FetchStaticIpsPage createEmptyPage() { + return new FetchStaticIpsPage(null, null); + } + + @Override + protected FetchStaticIpsPage createPage( + PageContext context, + FetchStaticIpsResponse response) { + return new FetchStaticIpsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchStaticIpsFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsFixedSizeCollection> { + + private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchStaticIpsFixedSizeCollection createEmptyCollection() { + return new FetchStaticIpsFixedSizeCollection(null, 0); + } + + @Override + protected FetchStaticIpsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchStaticIpsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListPrivateConnectionsPagedResponse + extends AbstractPagedListResponse< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListPrivateConnectionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListPrivateConnectionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { + super(page, ListPrivateConnectionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListPrivateConnectionsPage + extends AbstractPage< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsPage> { + + private ListPrivateConnectionsPage( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ListPrivateConnectionsResponse response) { + super(context, response); + } + + private static ListPrivateConnectionsPage createEmptyPage() { + return new ListPrivateConnectionsPage(null, null); + } + + @Override + protected ListPrivateConnectionsPage createPage( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ListPrivateConnectionsResponse response) { + return new ListPrivateConnectionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListPrivateConnectionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { + + private ListPrivateConnectionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListPrivateConnectionsFixedSizeCollection createEmptyCollection() { + return new ListPrivateConnectionsFixedSizeCollection(null, 0); + } + + @Override + protected ListPrivateConnectionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListPrivateConnectionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListRoutesPagedResponse + extends AbstractPagedListResponse< + ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRoutesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListRoutesPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListRoutesPagedResponse(ListRoutesPage page) { + super(page, ListRoutesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRoutesPage + extends AbstractPage { + + private ListRoutesPage( + PageContext context, + ListRoutesResponse response) { + super(context, response); + } + + private static ListRoutesPage createEmptyPage() { + return new ListRoutesPage(null, null); + } + + @Override + protected ListRoutesPage createPage( + PageContext context, + ListRoutesResponse response) { + return new ListRoutesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRoutesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesFixedSizeCollection> { + + private ListRoutesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRoutesFixedSizeCollection createEmptyCollection() { + return new ListRoutesFixedSizeCollection(null, 0); + } + + @Override + protected ListRoutesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRoutesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java new file mode 100644 index 00000000..8ecbbb12 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/DatastreamSettings.java @@ -0,0 +1,630 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.cloud.datastream.v1.DatastreamClient.FetchStaticIpsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListLocationsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListPrivateConnectionsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListRoutesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamObjectsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +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; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DatastreamClient}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getConnectionProfile to 30 seconds: + * + *

{@code
+ * DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder();
+ * datastreamSettingsBuilder
+ *     .getConnectionProfileSettings()
+ *     .setRetrySettings(
+ *         datastreamSettingsBuilder
+ *             .getConnectionProfileSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DatastreamSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listConnectionProfiles. */ + public PagedCallSettings< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + listConnectionProfilesSettings() { + return ((DatastreamStubSettings) getStubSettings()).listConnectionProfilesSettings(); + } + + /** Returns the object with the settings used for calls to getConnectionProfile. */ + public UnaryCallSettings + getConnectionProfileSettings() { + return ((DatastreamStubSettings) getStubSettings()).getConnectionProfileSettings(); + } + + /** Returns the object with the settings used for calls to createConnectionProfile. */ + public UnaryCallSettings + createConnectionProfileSettings() { + return ((DatastreamStubSettings) getStubSettings()).createConnectionProfileSettings(); + } + + /** Returns the object with the settings used for calls to createConnectionProfile. */ + public OperationCallSettings + createConnectionProfileOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).createConnectionProfileOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateConnectionProfile. */ + public UnaryCallSettings + updateConnectionProfileSettings() { + return ((DatastreamStubSettings) getStubSettings()).updateConnectionProfileSettings(); + } + + /** Returns the object with the settings used for calls to updateConnectionProfile. */ + public OperationCallSettings + updateConnectionProfileOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).updateConnectionProfileOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteConnectionProfile. */ + public UnaryCallSettings + deleteConnectionProfileSettings() { + return ((DatastreamStubSettings) getStubSettings()).deleteConnectionProfileSettings(); + } + + /** Returns the object with the settings used for calls to deleteConnectionProfile. */ + public OperationCallSettings + deleteConnectionProfileOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).deleteConnectionProfileOperationSettings(); + } + + /** Returns the object with the settings used for calls to discoverConnectionProfile. */ + public UnaryCallSettings + discoverConnectionProfileSettings() { + return ((DatastreamStubSettings) getStubSettings()).discoverConnectionProfileSettings(); + } + + /** Returns the object with the settings used for calls to listStreams. */ + public PagedCallSettings + listStreamsSettings() { + return ((DatastreamStubSettings) getStubSettings()).listStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getStream. */ + public UnaryCallSettings getStreamSettings() { + return ((DatastreamStubSettings) getStubSettings()).getStreamSettings(); + } + + /** Returns the object with the settings used for calls to createStream. */ + public UnaryCallSettings createStreamSettings() { + return ((DatastreamStubSettings) getStubSettings()).createStreamSettings(); + } + + /** Returns the object with the settings used for calls to createStream. */ + public OperationCallSettings + createStreamOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).createStreamOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateStream. */ + public UnaryCallSettings updateStreamSettings() { + return ((DatastreamStubSettings) getStubSettings()).updateStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateStream. */ + public OperationCallSettings + updateStreamOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).updateStreamOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteStream. */ + public UnaryCallSettings deleteStreamSettings() { + return ((DatastreamStubSettings) getStubSettings()).deleteStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteStream. */ + public OperationCallSettings + deleteStreamOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).deleteStreamOperationSettings(); + } + + /** Returns the object with the settings used for calls to getStreamObject. */ + public UnaryCallSettings getStreamObjectSettings() { + return ((DatastreamStubSettings) getStubSettings()).getStreamObjectSettings(); + } + + /** Returns the object with the settings used for calls to lookupStreamObject. */ + public UnaryCallSettings lookupStreamObjectSettings() { + return ((DatastreamStubSettings) getStubSettings()).lookupStreamObjectSettings(); + } + + /** Returns the object with the settings used for calls to listStreamObjects. */ + public PagedCallSettings< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + listStreamObjectsSettings() { + return ((DatastreamStubSettings) getStubSettings()).listStreamObjectsSettings(); + } + + /** Returns the object with the settings used for calls to startBackfillJob. */ + public UnaryCallSettings + startBackfillJobSettings() { + return ((DatastreamStubSettings) getStubSettings()).startBackfillJobSettings(); + } + + /** Returns the object with the settings used for calls to stopBackfillJob. */ + public UnaryCallSettings + stopBackfillJobSettings() { + return ((DatastreamStubSettings) getStubSettings()).stopBackfillJobSettings(); + } + + /** Returns the object with the settings used for calls to fetchStaticIps. */ + public PagedCallSettings< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return ((DatastreamStubSettings) getStubSettings()).fetchStaticIpsSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings + createPrivateConnectionSettings() { + return ((DatastreamStubSettings) getStubSettings()).createPrivateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public OperationCallSettings + createPrivateConnectionOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).createPrivateConnectionOperationSettings(); + } + + /** Returns the object with the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings + getPrivateConnectionSettings() { + return ((DatastreamStubSettings) getStubSettings()).getPrivateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to listPrivateConnections. */ + public PagedCallSettings< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return ((DatastreamStubSettings) getStubSettings()).listPrivateConnectionsSettings(); + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings + deletePrivateConnectionSettings() { + return ((DatastreamStubSettings) getStubSettings()).deletePrivateConnectionSettings(); + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public OperationCallSettings + deletePrivateConnectionOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).deletePrivateConnectionOperationSettings(); + } + + /** Returns the object with the settings used for calls to createRoute. */ + public UnaryCallSettings createRouteSettings() { + return ((DatastreamStubSettings) getStubSettings()).createRouteSettings(); + } + + /** Returns the object with the settings used for calls to createRoute. */ + public OperationCallSettings + createRouteOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).createRouteOperationSettings(); + } + + /** Returns the object with the settings used for calls to getRoute. */ + public UnaryCallSettings getRouteSettings() { + return ((DatastreamStubSettings) getStubSettings()).getRouteSettings(); + } + + /** Returns the object with the settings used for calls to listRoutes. */ + public PagedCallSettings + listRoutesSettings() { + return ((DatastreamStubSettings) getStubSettings()).listRoutesSettings(); + } + + /** Returns the object with the settings used for calls to deleteRoute. */ + public UnaryCallSettings deleteRouteSettings() { + return ((DatastreamStubSettings) getStubSettings()).deleteRouteSettings(); + } + + /** Returns the object with the settings used for calls to deleteRoute. */ + public OperationCallSettings + deleteRouteOperationSettings() { + return ((DatastreamStubSettings) getStubSettings()).deleteRouteOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((DatastreamStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((DatastreamStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final DatastreamSettings create(DatastreamStubSettings stub) throws IOException { + return new DatastreamSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return DatastreamStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return DatastreamStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DatastreamStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return DatastreamStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return DatastreamStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return DatastreamStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return DatastreamStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DatastreamSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for DatastreamSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(DatastreamStubSettings.newBuilder(clientContext)); + } + + protected Builder(DatastreamSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(DatastreamStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(DatastreamStubSettings.newBuilder()); + } + + public DatastreamStubSettings.Builder getStubSettingsBuilder() { + return ((DatastreamStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listConnectionProfiles. */ + public PagedCallSettings.Builder< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + listConnectionProfilesSettings() { + return getStubSettingsBuilder().listConnectionProfilesSettings(); + } + + /** Returns the builder for the settings used for calls to getConnectionProfile. */ + public UnaryCallSettings.Builder + getConnectionProfileSettings() { + return getStubSettingsBuilder().getConnectionProfileSettings(); + } + + /** Returns the builder for the settings used for calls to createConnectionProfile. */ + public UnaryCallSettings.Builder + createConnectionProfileSettings() { + return getStubSettingsBuilder().createConnectionProfileSettings(); + } + + /** Returns the builder for the settings used for calls to createConnectionProfile. */ + public OperationCallSettings.Builder< + CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + createConnectionProfileOperationSettings() { + return getStubSettingsBuilder().createConnectionProfileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateConnectionProfile. */ + public UnaryCallSettings.Builder + updateConnectionProfileSettings() { + return getStubSettingsBuilder().updateConnectionProfileSettings(); + } + + /** Returns the builder for the settings used for calls to updateConnectionProfile. */ + public OperationCallSettings.Builder< + UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + updateConnectionProfileOperationSettings() { + return getStubSettingsBuilder().updateConnectionProfileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConnectionProfile. */ + public UnaryCallSettings.Builder + deleteConnectionProfileSettings() { + return getStubSettingsBuilder().deleteConnectionProfileSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConnectionProfile. */ + public OperationCallSettings.Builder + deleteConnectionProfileOperationSettings() { + return getStubSettingsBuilder().deleteConnectionProfileOperationSettings(); + } + + /** Returns the builder for the settings used for calls to discoverConnectionProfile. */ + public UnaryCallSettings.Builder< + DiscoverConnectionProfileRequest, DiscoverConnectionProfileResponse> + discoverConnectionProfileSettings() { + return getStubSettingsBuilder().discoverConnectionProfileSettings(); + } + + /** Returns the builder for the settings used for calls to listStreams. */ + public PagedCallSettings.Builder< + ListStreamsRequest, ListStreamsResponse, ListStreamsPagedResponse> + listStreamsSettings() { + return getStubSettingsBuilder().listStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getStream. */ + public UnaryCallSettings.Builder getStreamSettings() { + return getStubSettingsBuilder().getStreamSettings(); + } + + /** Returns the builder for the settings used for calls to createStream. */ + public UnaryCallSettings.Builder createStreamSettings() { + return getStubSettingsBuilder().createStreamSettings(); + } + + /** Returns the builder for the settings used for calls to createStream. */ + public OperationCallSettings.Builder + createStreamOperationSettings() { + return getStubSettingsBuilder().createStreamOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateStream. */ + public UnaryCallSettings.Builder updateStreamSettings() { + return getStubSettingsBuilder().updateStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateStream. */ + public OperationCallSettings.Builder + updateStreamOperationSettings() { + return getStubSettingsBuilder().updateStreamOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteStream. */ + public UnaryCallSettings.Builder deleteStreamSettings() { + return getStubSettingsBuilder().deleteStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteStream. */ + public OperationCallSettings.Builder + deleteStreamOperationSettings() { + return getStubSettingsBuilder().deleteStreamOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getStreamObject. */ + public UnaryCallSettings.Builder + getStreamObjectSettings() { + return getStubSettingsBuilder().getStreamObjectSettings(); + } + + /** Returns the builder for the settings used for calls to lookupStreamObject. */ + public UnaryCallSettings.Builder + lookupStreamObjectSettings() { + return getStubSettingsBuilder().lookupStreamObjectSettings(); + } + + /** Returns the builder for the settings used for calls to listStreamObjects. */ + public PagedCallSettings.Builder< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + listStreamObjectsSettings() { + return getStubSettingsBuilder().listStreamObjectsSettings(); + } + + /** Returns the builder for the settings used for calls to startBackfillJob. */ + public UnaryCallSettings.Builder + startBackfillJobSettings() { + return getStubSettingsBuilder().startBackfillJobSettings(); + } + + /** Returns the builder for the settings used for calls to stopBackfillJob. */ + public UnaryCallSettings.Builder + stopBackfillJobSettings() { + return getStubSettingsBuilder().stopBackfillJobSettings(); + } + + /** Returns the builder for the settings used for calls to fetchStaticIps. */ + public PagedCallSettings.Builder< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return getStubSettingsBuilder().fetchStaticIpsSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings.Builder + createPrivateConnectionSettings() { + return getStubSettingsBuilder().createPrivateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + public OperationCallSettings.Builder< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings() { + return getStubSettingsBuilder().createPrivateConnectionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings.Builder + getPrivateConnectionSettings() { + return getStubSettingsBuilder().getPrivateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to listPrivateConnections. */ + public PagedCallSettings.Builder< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return getStubSettingsBuilder().listPrivateConnectionsSettings(); + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings.Builder + deletePrivateConnectionSettings() { + return getStubSettingsBuilder().deletePrivateConnectionSettings(); + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + public OperationCallSettings.Builder + deletePrivateConnectionOperationSettings() { + return getStubSettingsBuilder().deletePrivateConnectionOperationSettings(); + } + + /** Returns the builder for the settings used for calls to createRoute. */ + public UnaryCallSettings.Builder createRouteSettings() { + return getStubSettingsBuilder().createRouteSettings(); + } + + /** Returns the builder for the settings used for calls to createRoute. */ + public OperationCallSettings.Builder + createRouteOperationSettings() { + return getStubSettingsBuilder().createRouteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getRoute. */ + public UnaryCallSettings.Builder getRouteSettings() { + return getStubSettingsBuilder().getRouteSettings(); + } + + /** Returns the builder for the settings used for calls to listRoutes. */ + public PagedCallSettings.Builder + listRoutesSettings() { + return getStubSettingsBuilder().listRoutesSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRoute. */ + public UnaryCallSettings.Builder deleteRouteSettings() { + return getStubSettingsBuilder().deleteRouteSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRoute. */ + public OperationCallSettings.Builder + deleteRouteOperationSettings() { + return getStubSettingsBuilder().deleteRouteOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public DatastreamSettings build() throws IOException { + return new DatastreamSettings(this); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json new file mode 100644 index 00000000..92f5a0e0 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/gapic_metadata.json @@ -0,0 +1,99 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.datastream.v1", + "libraryPackage": "com.google.cloud.datastream.v1", + "services": { + "Datastream": { + "clients": { + "grpc": { + "libraryClient": "DatastreamClient", + "rpcs": { + "CreateConnectionProfile": { + "methods": ["createConnectionProfileAsync", "createConnectionProfileAsync", "createConnectionProfileAsync", "createConnectionProfileOperationCallable", "createConnectionProfileCallable"] + }, + "CreatePrivateConnection": { + "methods": ["createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionAsync", "createPrivateConnectionOperationCallable", "createPrivateConnectionCallable"] + }, + "CreateRoute": { + "methods": ["createRouteAsync", "createRouteAsync", "createRouteAsync", "createRouteOperationCallable", "createRouteCallable"] + }, + "CreateStream": { + "methods": ["createStreamAsync", "createStreamAsync", "createStreamAsync", "createStreamOperationCallable", "createStreamCallable"] + }, + "DeleteConnectionProfile": { + "methods": ["deleteConnectionProfileAsync", "deleteConnectionProfileAsync", "deleteConnectionProfileAsync", "deleteConnectionProfileOperationCallable", "deleteConnectionProfileCallable"] + }, + "DeletePrivateConnection": { + "methods": ["deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionAsync", "deletePrivateConnectionOperationCallable", "deletePrivateConnectionCallable"] + }, + "DeleteRoute": { + "methods": ["deleteRouteAsync", "deleteRouteAsync", "deleteRouteAsync", "deleteRouteOperationCallable", "deleteRouteCallable"] + }, + "DeleteStream": { + "methods": ["deleteStreamAsync", "deleteStreamAsync", "deleteStreamAsync", "deleteStreamOperationCallable", "deleteStreamCallable"] + }, + "DiscoverConnectionProfile": { + "methods": ["discoverConnectionProfile", "discoverConnectionProfileCallable"] + }, + "FetchStaticIps": { + "methods": ["fetchStaticIps", "fetchStaticIps", "fetchStaticIps", "fetchStaticIpsPagedCallable", "fetchStaticIpsCallable"] + }, + "GetConnectionProfile": { + "methods": ["getConnectionProfile", "getConnectionProfile", "getConnectionProfile", "getConnectionProfileCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetPrivateConnection": { + "methods": ["getPrivateConnection", "getPrivateConnection", "getPrivateConnection", "getPrivateConnectionCallable"] + }, + "GetRoute": { + "methods": ["getRoute", "getRoute", "getRoute", "getRouteCallable"] + }, + "GetStream": { + "methods": ["getStream", "getStream", "getStream", "getStreamCallable"] + }, + "GetStreamObject": { + "methods": ["getStreamObject", "getStreamObject", "getStreamObject", "getStreamObjectCallable"] + }, + "ListConnectionProfiles": { + "methods": ["listConnectionProfiles", "listConnectionProfiles", "listConnectionProfiles", "listConnectionProfilesPagedCallable", "listConnectionProfilesCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListPrivateConnections": { + "methods": ["listPrivateConnections", "listPrivateConnections", "listPrivateConnections", "listPrivateConnectionsPagedCallable", "listPrivateConnectionsCallable"] + }, + "ListRoutes": { + "methods": ["listRoutes", "listRoutes", "listRoutes", "listRoutesPagedCallable", "listRoutesCallable"] + }, + "ListStreamObjects": { + "methods": ["listStreamObjects", "listStreamObjects", "listStreamObjects", "listStreamObjectsPagedCallable", "listStreamObjectsCallable"] + }, + "ListStreams": { + "methods": ["listStreams", "listStreams", "listStreams", "listStreamsPagedCallable", "listStreamsCallable"] + }, + "LookupStreamObject": { + "methods": ["lookupStreamObject", "lookupStreamObjectCallable"] + }, + "StartBackfillJob": { + "methods": ["startBackfillJob", "startBackfillJob", "startBackfillJob", "startBackfillJobCallable"] + }, + "StopBackfillJob": { + "methods": ["stopBackfillJob", "stopBackfillJob", "stopBackfillJob", "stopBackfillJobCallable"] + }, + "UpdateConnectionProfile": { + "methods": ["updateConnectionProfileAsync", "updateConnectionProfileAsync", "updateConnectionProfileOperationCallable", "updateConnectionProfileCallable"] + }, + "UpdateStream": { + "methods": ["updateStreamAsync", "updateStreamAsync", "updateStreamOperationCallable", "updateStreamCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java new file mode 100644 index 00000000..4c97aacd --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/package-info.java @@ -0,0 +1,39 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Datastream API + * + *

The interfaces provided are listed below, along with usage samples. + * + *

======================= DatastreamClient ======================= + * + *

Service Description: Datastream service + * + *

Sample for DatastreamClient: + * + *

{@code
+ * try (DatastreamClient datastreamClient = DatastreamClient.create()) {
+ *   ConnectionProfileName name =
+ *       ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
+ *   ConnectionProfile response = datastreamClient.getConnectionProfile(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.datastream.v1; + +import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java new file mode 100644 index 00000000..d2daac8c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStub.java @@ -0,0 +1,304 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.datastream.v1.DatastreamClient.FetchStaticIpsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListLocationsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListPrivateConnectionsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListRoutesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamObjectsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.datastream.v1.ConnectionProfile; +import com.google.cloud.datastream.v1.CreateConnectionProfileRequest; +import com.google.cloud.datastream.v1.CreatePrivateConnectionRequest; +import com.google.cloud.datastream.v1.CreateRouteRequest; +import com.google.cloud.datastream.v1.CreateStreamRequest; +import com.google.cloud.datastream.v1.DeleteConnectionProfileRequest; +import com.google.cloud.datastream.v1.DeletePrivateConnectionRequest; +import com.google.cloud.datastream.v1.DeleteRouteRequest; +import com.google.cloud.datastream.v1.DeleteStreamRequest; +import com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest; +import com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse; +import com.google.cloud.datastream.v1.FetchStaticIpsRequest; +import com.google.cloud.datastream.v1.FetchStaticIpsResponse; +import com.google.cloud.datastream.v1.GetConnectionProfileRequest; +import com.google.cloud.datastream.v1.GetPrivateConnectionRequest; +import com.google.cloud.datastream.v1.GetRouteRequest; +import com.google.cloud.datastream.v1.GetStreamObjectRequest; +import com.google.cloud.datastream.v1.GetStreamRequest; +import com.google.cloud.datastream.v1.ListConnectionProfilesRequest; +import com.google.cloud.datastream.v1.ListConnectionProfilesResponse; +import com.google.cloud.datastream.v1.ListPrivateConnectionsRequest; +import com.google.cloud.datastream.v1.ListPrivateConnectionsResponse; +import com.google.cloud.datastream.v1.ListRoutesRequest; +import com.google.cloud.datastream.v1.ListRoutesResponse; +import com.google.cloud.datastream.v1.ListStreamObjectsRequest; +import com.google.cloud.datastream.v1.ListStreamObjectsResponse; +import com.google.cloud.datastream.v1.ListStreamsRequest; +import com.google.cloud.datastream.v1.ListStreamsResponse; +import com.google.cloud.datastream.v1.LookupStreamObjectRequest; +import com.google.cloud.datastream.v1.OperationMetadata; +import com.google.cloud.datastream.v1.PrivateConnection; +import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.StartBackfillJobRequest; +import com.google.cloud.datastream.v1.StartBackfillJobResponse; +import com.google.cloud.datastream.v1.StopBackfillJobRequest; +import com.google.cloud.datastream.v1.StopBackfillJobResponse; +import com.google.cloud.datastream.v1.Stream; +import com.google.cloud.datastream.v1.StreamObject; +import com.google.cloud.datastream.v1.UpdateConnectionProfileRequest; +import com.google.cloud.datastream.v1.UpdateStreamRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the Datastream service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class DatastreamStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public UnaryCallable + listConnectionProfilesPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listConnectionProfilesPagedCallable()"); + } + + public UnaryCallable + listConnectionProfilesCallable() { + throw new UnsupportedOperationException("Not implemented: listConnectionProfilesCallable()"); + } + + public UnaryCallable + getConnectionProfileCallable() { + throw new UnsupportedOperationException("Not implemented: getConnectionProfileCallable()"); + } + + public OperationCallable + createConnectionProfileOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createConnectionProfileOperationCallable()"); + } + + public UnaryCallable + createConnectionProfileCallable() { + throw new UnsupportedOperationException("Not implemented: createConnectionProfileCallable()"); + } + + public OperationCallable + updateConnectionProfileOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateConnectionProfileOperationCallable()"); + } + + public UnaryCallable + updateConnectionProfileCallable() { + throw new UnsupportedOperationException("Not implemented: updateConnectionProfileCallable()"); + } + + public OperationCallable + deleteConnectionProfileOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteConnectionProfileOperationCallable()"); + } + + public UnaryCallable + deleteConnectionProfileCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConnectionProfileCallable()"); + } + + public UnaryCallable + discoverConnectionProfileCallable() { + throw new UnsupportedOperationException("Not implemented: discoverConnectionProfileCallable()"); + } + + public UnaryCallable listStreamsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listStreamsPagedCallable()"); + } + + public UnaryCallable listStreamsCallable() { + throw new UnsupportedOperationException("Not implemented: listStreamsCallable()"); + } + + public UnaryCallable getStreamCallable() { + throw new UnsupportedOperationException("Not implemented: getStreamCallable()"); + } + + public OperationCallable + createStreamOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createStreamOperationCallable()"); + } + + public UnaryCallable createStreamCallable() { + throw new UnsupportedOperationException("Not implemented: createStreamCallable()"); + } + + public OperationCallable + updateStreamOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateStreamOperationCallable()"); + } + + public UnaryCallable updateStreamCallable() { + throw new UnsupportedOperationException("Not implemented: updateStreamCallable()"); + } + + public OperationCallable + deleteStreamOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteStreamOperationCallable()"); + } + + public UnaryCallable deleteStreamCallable() { + throw new UnsupportedOperationException("Not implemented: deleteStreamCallable()"); + } + + public UnaryCallable getStreamObjectCallable() { + throw new UnsupportedOperationException("Not implemented: getStreamObjectCallable()"); + } + + public UnaryCallable lookupStreamObjectCallable() { + throw new UnsupportedOperationException("Not implemented: lookupStreamObjectCallable()"); + } + + public UnaryCallable + listStreamObjectsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listStreamObjectsPagedCallable()"); + } + + public UnaryCallable + listStreamObjectsCallable() { + throw new UnsupportedOperationException("Not implemented: listStreamObjectsCallable()"); + } + + public UnaryCallable + startBackfillJobCallable() { + throw new UnsupportedOperationException("Not implemented: startBackfillJobCallable()"); + } + + public UnaryCallable stopBackfillJobCallable() { + throw new UnsupportedOperationException("Not implemented: stopBackfillJobCallable()"); + } + + public UnaryCallable + fetchStaticIpsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: fetchStaticIpsPagedCallable()"); + } + + public UnaryCallable fetchStaticIpsCallable() { + throw new UnsupportedOperationException("Not implemented: fetchStaticIpsCallable()"); + } + + public OperationCallable + createPrivateConnectionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createPrivateConnectionOperationCallable()"); + } + + public UnaryCallable + createPrivateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: createPrivateConnectionCallable()"); + } + + public UnaryCallable + getPrivateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: getPrivateConnectionCallable()"); + } + + public UnaryCallable + listPrivateConnectionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listPrivateConnectionsPagedCallable()"); + } + + public UnaryCallable + listPrivateConnectionsCallable() { + throw new UnsupportedOperationException("Not implemented: listPrivateConnectionsCallable()"); + } + + public OperationCallable + deletePrivateConnectionOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deletePrivateConnectionOperationCallable()"); + } + + public UnaryCallable + deletePrivateConnectionCallable() { + throw new UnsupportedOperationException("Not implemented: deletePrivateConnectionCallable()"); + } + + public OperationCallable + createRouteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createRouteOperationCallable()"); + } + + public UnaryCallable createRouteCallable() { + throw new UnsupportedOperationException("Not implemented: createRouteCallable()"); + } + + public UnaryCallable getRouteCallable() { + throw new UnsupportedOperationException("Not implemented: getRouteCallable()"); + } + + public UnaryCallable listRoutesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listRoutesPagedCallable()"); + } + + public UnaryCallable listRoutesCallable() { + throw new UnsupportedOperationException("Not implemented: listRoutesCallable()"); + } + + public OperationCallable + deleteRouteOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRouteOperationCallable()"); + } + + public UnaryCallable deleteRouteCallable() { + throw new UnsupportedOperationException("Not implemented: deleteRouteCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java new file mode 100644 index 00000000..4897a3a9 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/DatastreamStubSettings.java @@ -0,0 +1,1904 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.datastream.v1.DatastreamClient.FetchStaticIpsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListLocationsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListPrivateConnectionsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListRoutesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamObjectsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.datastream.v1.ConnectionProfile; +import com.google.cloud.datastream.v1.CreateConnectionProfileRequest; +import com.google.cloud.datastream.v1.CreatePrivateConnectionRequest; +import com.google.cloud.datastream.v1.CreateRouteRequest; +import com.google.cloud.datastream.v1.CreateStreamRequest; +import com.google.cloud.datastream.v1.DeleteConnectionProfileRequest; +import com.google.cloud.datastream.v1.DeletePrivateConnectionRequest; +import com.google.cloud.datastream.v1.DeleteRouteRequest; +import com.google.cloud.datastream.v1.DeleteStreamRequest; +import com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest; +import com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse; +import com.google.cloud.datastream.v1.FetchStaticIpsRequest; +import com.google.cloud.datastream.v1.FetchStaticIpsResponse; +import com.google.cloud.datastream.v1.GetConnectionProfileRequest; +import com.google.cloud.datastream.v1.GetPrivateConnectionRequest; +import com.google.cloud.datastream.v1.GetRouteRequest; +import com.google.cloud.datastream.v1.GetStreamObjectRequest; +import com.google.cloud.datastream.v1.GetStreamRequest; +import com.google.cloud.datastream.v1.ListConnectionProfilesRequest; +import com.google.cloud.datastream.v1.ListConnectionProfilesResponse; +import com.google.cloud.datastream.v1.ListPrivateConnectionsRequest; +import com.google.cloud.datastream.v1.ListPrivateConnectionsResponse; +import com.google.cloud.datastream.v1.ListRoutesRequest; +import com.google.cloud.datastream.v1.ListRoutesResponse; +import com.google.cloud.datastream.v1.ListStreamObjectsRequest; +import com.google.cloud.datastream.v1.ListStreamObjectsResponse; +import com.google.cloud.datastream.v1.ListStreamsRequest; +import com.google.cloud.datastream.v1.ListStreamsResponse; +import com.google.cloud.datastream.v1.LookupStreamObjectRequest; +import com.google.cloud.datastream.v1.OperationMetadata; +import com.google.cloud.datastream.v1.PrivateConnection; +import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.StartBackfillJobRequest; +import com.google.cloud.datastream.v1.StartBackfillJobResponse; +import com.google.cloud.datastream.v1.StopBackfillJobRequest; +import com.google.cloud.datastream.v1.StopBackfillJobResponse; +import com.google.cloud.datastream.v1.Stream; +import com.google.cloud.datastream.v1.StreamObject; +import com.google.cloud.datastream.v1.UpdateConnectionProfileRequest; +import com.google.cloud.datastream.v1.UpdateStreamRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.threeten.bp.Duration; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link DatastreamStub}. + * + *

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 builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getConnectionProfile to 30 seconds: + * + *

{@code
+ * DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder();
+ * datastreamSettingsBuilder
+ *     .getConnectionProfileSettings()
+ *     .setRetrySettings(
+ *         datastreamSettingsBuilder
+ *             .getConnectionProfileSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.build();
+ * }
+ */ +@Generated("by gapic-generator-java") +public class DatastreamStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + listConnectionProfilesSettings; + private final UnaryCallSettings + getConnectionProfileSettings; + private final UnaryCallSettings + createConnectionProfileSettings; + private final OperationCallSettings< + CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + createConnectionProfileOperationSettings; + private final UnaryCallSettings + updateConnectionProfileSettings; + private final OperationCallSettings< + UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + updateConnectionProfileOperationSettings; + private final UnaryCallSettings + deleteConnectionProfileSettings; + private final OperationCallSettings + deleteConnectionProfileOperationSettings; + private final UnaryCallSettings< + DiscoverConnectionProfileRequest, DiscoverConnectionProfileResponse> + discoverConnectionProfileSettings; + private final PagedCallSettings + listStreamsSettings; + private final UnaryCallSettings getStreamSettings; + private final UnaryCallSettings createStreamSettings; + private final OperationCallSettings + createStreamOperationSettings; + private final UnaryCallSettings updateStreamSettings; + private final OperationCallSettings + updateStreamOperationSettings; + private final UnaryCallSettings deleteStreamSettings; + private final OperationCallSettings + deleteStreamOperationSettings; + private final UnaryCallSettings getStreamObjectSettings; + private final UnaryCallSettings + lookupStreamObjectSettings; + private final PagedCallSettings< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + listStreamObjectsSettings; + private final UnaryCallSettings + startBackfillJobSettings; + private final UnaryCallSettings + stopBackfillJobSettings; + private final PagedCallSettings< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings; + private final UnaryCallSettings + createPrivateConnectionSettings; + private final OperationCallSettings< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings; + private final UnaryCallSettings + getPrivateConnectionSettings; + private final PagedCallSettings< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings; + private final UnaryCallSettings + deletePrivateConnectionSettings; + private final OperationCallSettings + deletePrivateConnectionOperationSettings; + private final UnaryCallSettings createRouteSettings; + private final OperationCallSettings + createRouteOperationSettings; + private final UnaryCallSettings getRouteSettings; + private final PagedCallSettings + listRoutesSettings; + private final UnaryCallSettings deleteRouteSettings; + private final OperationCallSettings + deleteRouteOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> + LIST_CONNECTION_PROFILES_PAGE_STR_DESC = + new PagedListDescriptor< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConnectionProfilesRequest injectToken( + ListConnectionProfilesRequest payload, String token) { + return ListConnectionProfilesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConnectionProfilesRequest injectPageSize( + ListConnectionProfilesRequest payload, int pageSize) { + return ListConnectionProfilesRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListConnectionProfilesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConnectionProfilesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListConnectionProfilesResponse payload) { + return payload.getConnectionProfilesList() == null + ? ImmutableList.of() + : payload.getConnectionProfilesList(); + } + }; + + private static final PagedListDescriptor + LIST_STREAMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListStreamsRequest injectToken(ListStreamsRequest payload, String token) { + return ListStreamsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListStreamsRequest injectPageSize(ListStreamsRequest payload, int pageSize) { + return ListStreamsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListStreamsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListStreamsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListStreamsResponse payload) { + return payload.getStreamsList() == null + ? ImmutableList.of() + : payload.getStreamsList(); + } + }; + + private static final PagedListDescriptor< + ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject> + LIST_STREAM_OBJECTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListStreamObjectsRequest injectToken( + ListStreamObjectsRequest payload, String token) { + return ListStreamObjectsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListStreamObjectsRequest injectPageSize( + ListStreamObjectsRequest payload, int pageSize) { + return ListStreamObjectsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListStreamObjectsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListStreamObjectsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListStreamObjectsResponse payload) { + return payload.getStreamObjectsList() == null + ? ImmutableList.of() + : payload.getStreamObjectsList(); + } + }; + + private static final PagedListDescriptor + FETCH_STATIC_IPS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchStaticIpsRequest injectToken(FetchStaticIpsRequest payload, String token) { + return FetchStaticIpsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FetchStaticIpsRequest injectPageSize( + FetchStaticIpsRequest payload, int pageSize) { + return FetchStaticIpsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(FetchStaticIpsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchStaticIpsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FetchStaticIpsResponse payload) { + return payload.getStaticIpsList() == null + ? ImmutableList.of() + : payload.getStaticIpsList(); + } + }; + + private static final PagedListDescriptor< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> + LIST_PRIVATE_CONNECTIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListPrivateConnectionsRequest injectToken( + ListPrivateConnectionsRequest payload, String token) { + return ListPrivateConnectionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListPrivateConnectionsRequest injectPageSize( + ListPrivateConnectionsRequest payload, int pageSize) { + return ListPrivateConnectionsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListPrivateConnectionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListPrivateConnectionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListPrivateConnectionsResponse payload) { + return payload.getPrivateConnectionsList() == null + ? ImmutableList.of() + : payload.getPrivateConnectionsList(); + } + }; + + private static final PagedListDescriptor + LIST_ROUTES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRoutesRequest injectToken(ListRoutesRequest payload, String token) { + return ListRoutesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRoutesRequest injectPageSize(ListRoutesRequest payload, int pageSize) { + return ListRoutesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListRoutesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRoutesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListRoutesResponse payload) { + return payload.getRoutesList() == null + ? ImmutableList.of() + : payload.getRoutesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + LIST_CONNECTION_PROFILES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListConnectionProfilesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ConnectionProfile> + pageContext = + PageContext.create( + callable, LIST_CONNECTION_PROFILES_PAGE_STR_DESC, request, context); + return ListConnectionProfilesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListStreamsRequest, ListStreamsResponse, ListStreamsPagedResponse> + LIST_STREAMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListStreamsRequest, ListStreamsResponse, ListStreamsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListStreamsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_STREAMS_PAGE_STR_DESC, request, context); + return ListStreamsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + LIST_STREAM_OBJECTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListStreamObjectsRequest, ListStreamObjectsResponse, + ListStreamObjectsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListStreamObjectsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_STREAM_OBJECTS_PAGE_STR_DESC, request, context); + return ListStreamObjectsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + FETCH_STATIC_IPS_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + FetchStaticIpsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, FETCH_STATIC_IPS_PAGE_STR_DESC, request, context); + return FetchStaticIpsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListPrivateConnectionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + PrivateConnection> + pageContext = + PageContext.create( + callable, LIST_PRIVATE_CONNECTIONS_PAGE_STR_DESC, request, context); + return ListPrivateConnectionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListRoutesRequest, ListRoutesResponse, ListRoutesPagedResponse> + LIST_ROUTES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRoutesRequest, ListRoutesResponse, ListRoutesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListRoutesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ROUTES_PAGE_STR_DESC, request, context); + return ListRoutesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listConnectionProfiles. */ + public PagedCallSettings< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + listConnectionProfilesSettings() { + return listConnectionProfilesSettings; + } + + /** Returns the object with the settings used for calls to getConnectionProfile. */ + public UnaryCallSettings + getConnectionProfileSettings() { + return getConnectionProfileSettings; + } + + /** Returns the object with the settings used for calls to createConnectionProfile. */ + public UnaryCallSettings + createConnectionProfileSettings() { + return createConnectionProfileSettings; + } + + /** Returns the object with the settings used for calls to createConnectionProfile. */ + public OperationCallSettings + createConnectionProfileOperationSettings() { + return createConnectionProfileOperationSettings; + } + + /** Returns the object with the settings used for calls to updateConnectionProfile. */ + public UnaryCallSettings + updateConnectionProfileSettings() { + return updateConnectionProfileSettings; + } + + /** Returns the object with the settings used for calls to updateConnectionProfile. */ + public OperationCallSettings + updateConnectionProfileOperationSettings() { + return updateConnectionProfileOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteConnectionProfile. */ + public UnaryCallSettings + deleteConnectionProfileSettings() { + return deleteConnectionProfileSettings; + } + + /** Returns the object with the settings used for calls to deleteConnectionProfile. */ + public OperationCallSettings + deleteConnectionProfileOperationSettings() { + return deleteConnectionProfileOperationSettings; + } + + /** Returns the object with the settings used for calls to discoverConnectionProfile. */ + public UnaryCallSettings + discoverConnectionProfileSettings() { + return discoverConnectionProfileSettings; + } + + /** Returns the object with the settings used for calls to listStreams. */ + public PagedCallSettings + listStreamsSettings() { + return listStreamsSettings; + } + + /** Returns the object with the settings used for calls to getStream. */ + public UnaryCallSettings getStreamSettings() { + return getStreamSettings; + } + + /** Returns the object with the settings used for calls to createStream. */ + public UnaryCallSettings createStreamSettings() { + return createStreamSettings; + } + + /** Returns the object with the settings used for calls to createStream. */ + public OperationCallSettings + createStreamOperationSettings() { + return createStreamOperationSettings; + } + + /** Returns the object with the settings used for calls to updateStream. */ + public UnaryCallSettings updateStreamSettings() { + return updateStreamSettings; + } + + /** Returns the object with the settings used for calls to updateStream. */ + public OperationCallSettings + updateStreamOperationSettings() { + return updateStreamOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteStream. */ + public UnaryCallSettings deleteStreamSettings() { + return deleteStreamSettings; + } + + /** Returns the object with the settings used for calls to deleteStream. */ + public OperationCallSettings + deleteStreamOperationSettings() { + return deleteStreamOperationSettings; + } + + /** Returns the object with the settings used for calls to getStreamObject. */ + public UnaryCallSettings getStreamObjectSettings() { + return getStreamObjectSettings; + } + + /** Returns the object with the settings used for calls to lookupStreamObject. */ + public UnaryCallSettings lookupStreamObjectSettings() { + return lookupStreamObjectSettings; + } + + /** Returns the object with the settings used for calls to listStreamObjects. */ + public PagedCallSettings< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + listStreamObjectsSettings() { + return listStreamObjectsSettings; + } + + /** Returns the object with the settings used for calls to startBackfillJob. */ + public UnaryCallSettings + startBackfillJobSettings() { + return startBackfillJobSettings; + } + + /** Returns the object with the settings used for calls to stopBackfillJob. */ + public UnaryCallSettings + stopBackfillJobSettings() { + return stopBackfillJobSettings; + } + + /** Returns the object with the settings used for calls to fetchStaticIps. */ + public PagedCallSettings< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return fetchStaticIpsSettings; + } + + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings + createPrivateConnectionSettings() { + return createPrivateConnectionSettings; + } + + /** Returns the object with the settings used for calls to createPrivateConnection. */ + public OperationCallSettings + createPrivateConnectionOperationSettings() { + return createPrivateConnectionOperationSettings; + } + + /** Returns the object with the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings + getPrivateConnectionSettings() { + return getPrivateConnectionSettings; + } + + /** Returns the object with the settings used for calls to listPrivateConnections. */ + public PagedCallSettings< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return listPrivateConnectionsSettings; + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings + deletePrivateConnectionSettings() { + return deletePrivateConnectionSettings; + } + + /** Returns the object with the settings used for calls to deletePrivateConnection. */ + public OperationCallSettings + deletePrivateConnectionOperationSettings() { + return deletePrivateConnectionOperationSettings; + } + + /** Returns the object with the settings used for calls to createRoute. */ + public UnaryCallSettings createRouteSettings() { + return createRouteSettings; + } + + /** Returns the object with the settings used for calls to createRoute. */ + public OperationCallSettings + createRouteOperationSettings() { + return createRouteOperationSettings; + } + + /** Returns the object with the settings used for calls to getRoute. */ + public UnaryCallSettings getRouteSettings() { + return getRouteSettings; + } + + /** Returns the object with the settings used for calls to listRoutes. */ + public PagedCallSettings + listRoutesSettings() { + return listRoutesSettings; + } + + /** Returns the object with the settings used for calls to deleteRoute. */ + public UnaryCallSettings deleteRouteSettings() { + return deleteRouteSettings; + } + + /** Returns the object with the settings used for calls to deleteRoute. */ + public OperationCallSettings + deleteRouteOperationSettings() { + return deleteRouteOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public DatastreamStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcDatastreamStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return "datastream.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "datastream.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(DatastreamStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected DatastreamStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listConnectionProfilesSettings = settingsBuilder.listConnectionProfilesSettings().build(); + getConnectionProfileSettings = settingsBuilder.getConnectionProfileSettings().build(); + createConnectionProfileSettings = settingsBuilder.createConnectionProfileSettings().build(); + createConnectionProfileOperationSettings = + settingsBuilder.createConnectionProfileOperationSettings().build(); + updateConnectionProfileSettings = settingsBuilder.updateConnectionProfileSettings().build(); + updateConnectionProfileOperationSettings = + settingsBuilder.updateConnectionProfileOperationSettings().build(); + deleteConnectionProfileSettings = settingsBuilder.deleteConnectionProfileSettings().build(); + deleteConnectionProfileOperationSettings = + settingsBuilder.deleteConnectionProfileOperationSettings().build(); + discoverConnectionProfileSettings = settingsBuilder.discoverConnectionProfileSettings().build(); + listStreamsSettings = settingsBuilder.listStreamsSettings().build(); + getStreamSettings = settingsBuilder.getStreamSettings().build(); + createStreamSettings = settingsBuilder.createStreamSettings().build(); + createStreamOperationSettings = settingsBuilder.createStreamOperationSettings().build(); + updateStreamSettings = settingsBuilder.updateStreamSettings().build(); + updateStreamOperationSettings = settingsBuilder.updateStreamOperationSettings().build(); + deleteStreamSettings = settingsBuilder.deleteStreamSettings().build(); + deleteStreamOperationSettings = settingsBuilder.deleteStreamOperationSettings().build(); + getStreamObjectSettings = settingsBuilder.getStreamObjectSettings().build(); + lookupStreamObjectSettings = settingsBuilder.lookupStreamObjectSettings().build(); + listStreamObjectsSettings = settingsBuilder.listStreamObjectsSettings().build(); + startBackfillJobSettings = settingsBuilder.startBackfillJobSettings().build(); + stopBackfillJobSettings = settingsBuilder.stopBackfillJobSettings().build(); + fetchStaticIpsSettings = settingsBuilder.fetchStaticIpsSettings().build(); + createPrivateConnectionSettings = settingsBuilder.createPrivateConnectionSettings().build(); + createPrivateConnectionOperationSettings = + settingsBuilder.createPrivateConnectionOperationSettings().build(); + getPrivateConnectionSettings = settingsBuilder.getPrivateConnectionSettings().build(); + listPrivateConnectionsSettings = settingsBuilder.listPrivateConnectionsSettings().build(); + deletePrivateConnectionSettings = settingsBuilder.deletePrivateConnectionSettings().build(); + deletePrivateConnectionOperationSettings = + settingsBuilder.deletePrivateConnectionOperationSettings().build(); + createRouteSettings = settingsBuilder.createRouteSettings().build(); + createRouteOperationSettings = settingsBuilder.createRouteOperationSettings().build(); + getRouteSettings = settingsBuilder.getRouteSettings().build(); + listRoutesSettings = settingsBuilder.listRoutesSettings().build(); + deleteRouteSettings = settingsBuilder.deleteRouteSettings().build(); + deleteRouteOperationSettings = settingsBuilder.deleteRouteOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + /** Builder for DatastreamStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + listConnectionProfilesSettings; + private final UnaryCallSettings.Builder + getConnectionProfileSettings; + private final UnaryCallSettings.Builder + createConnectionProfileSettings; + private final OperationCallSettings.Builder< + CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + createConnectionProfileOperationSettings; + private final UnaryCallSettings.Builder + updateConnectionProfileSettings; + private final OperationCallSettings.Builder< + UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + updateConnectionProfileOperationSettings; + private final UnaryCallSettings.Builder + deleteConnectionProfileSettings; + private final OperationCallSettings.Builder< + DeleteConnectionProfileRequest, Empty, OperationMetadata> + deleteConnectionProfileOperationSettings; + private final UnaryCallSettings.Builder< + DiscoverConnectionProfileRequest, DiscoverConnectionProfileResponse> + discoverConnectionProfileSettings; + private final PagedCallSettings.Builder< + ListStreamsRequest, ListStreamsResponse, ListStreamsPagedResponse> + listStreamsSettings; + private final UnaryCallSettings.Builder getStreamSettings; + private final UnaryCallSettings.Builder createStreamSettings; + private final OperationCallSettings.Builder + createStreamOperationSettings; + private final UnaryCallSettings.Builder updateStreamSettings; + private final OperationCallSettings.Builder + updateStreamOperationSettings; + private final UnaryCallSettings.Builder deleteStreamSettings; + private final OperationCallSettings.Builder + deleteStreamOperationSettings; + private final UnaryCallSettings.Builder + getStreamObjectSettings; + private final UnaryCallSettings.Builder + lookupStreamObjectSettings; + private final PagedCallSettings.Builder< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + listStreamObjectsSettings; + private final UnaryCallSettings.Builder + startBackfillJobSettings; + private final UnaryCallSettings.Builder + stopBackfillJobSettings; + private final PagedCallSettings.Builder< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings; + private final UnaryCallSettings.Builder + createPrivateConnectionSettings; + private final OperationCallSettings.Builder< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings; + private final UnaryCallSettings.Builder + getPrivateConnectionSettings; + private final PagedCallSettings.Builder< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings; + private final UnaryCallSettings.Builder + deletePrivateConnectionSettings; + private final OperationCallSettings.Builder< + DeletePrivateConnectionRequest, Empty, OperationMetadata> + deletePrivateConnectionOperationSettings; + private final UnaryCallSettings.Builder createRouteSettings; + private final OperationCallSettings.Builder + createRouteOperationSettings; + private final UnaryCallSettings.Builder getRouteSettings; + private final PagedCallSettings.Builder< + ListRoutesRequest, ListRoutesResponse, ListRoutesPagedResponse> + listRoutesSettings; + private final UnaryCallSettings.Builder deleteRouteSettings; + private final OperationCallSettings.Builder + deleteRouteOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelay(Duration.ofMillis(10000L)) + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listConnectionProfilesSettings = + PagedCallSettings.newBuilder(LIST_CONNECTION_PROFILES_PAGE_STR_FACT); + getConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConnectionProfileOperationSettings = OperationCallSettings.newBuilder(); + updateConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateConnectionProfileOperationSettings = OperationCallSettings.newBuilder(); + deleteConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConnectionProfileOperationSettings = OperationCallSettings.newBuilder(); + discoverConnectionProfileSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listStreamsSettings = PagedCallSettings.newBuilder(LIST_STREAMS_PAGE_STR_FACT); + getStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createStreamOperationSettings = OperationCallSettings.newBuilder(); + updateStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateStreamOperationSettings = OperationCallSettings.newBuilder(); + deleteStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteStreamOperationSettings = OperationCallSettings.newBuilder(); + getStreamObjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + lookupStreamObjectSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listStreamObjectsSettings = PagedCallSettings.newBuilder(LIST_STREAM_OBJECTS_PAGE_STR_FACT); + startBackfillJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + stopBackfillJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + fetchStaticIpsSettings = PagedCallSettings.newBuilder(FETCH_STATIC_IPS_PAGE_STR_FACT); + createPrivateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createPrivateConnectionOperationSettings = OperationCallSettings.newBuilder(); + getPrivateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listPrivateConnectionsSettings = + PagedCallSettings.newBuilder(LIST_PRIVATE_CONNECTIONS_PAGE_STR_FACT); + deletePrivateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deletePrivateConnectionOperationSettings = OperationCallSettings.newBuilder(); + createRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createRouteOperationSettings = OperationCallSettings.newBuilder(); + getRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listRoutesSettings = PagedCallSettings.newBuilder(LIST_ROUTES_PAGE_STR_FACT); + deleteRouteSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteRouteOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listConnectionProfilesSettings, + getConnectionProfileSettings, + createConnectionProfileSettings, + updateConnectionProfileSettings, + deleteConnectionProfileSettings, + discoverConnectionProfileSettings, + listStreamsSettings, + getStreamSettings, + createStreamSettings, + updateStreamSettings, + deleteStreamSettings, + getStreamObjectSettings, + lookupStreamObjectSettings, + listStreamObjectsSettings, + startBackfillJobSettings, + stopBackfillJobSettings, + fetchStaticIpsSettings, + createPrivateConnectionSettings, + getPrivateConnectionSettings, + listPrivateConnectionsSettings, + deletePrivateConnectionSettings, + createRouteSettings, + getRouteSettings, + listRoutesSettings, + deleteRouteSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(DatastreamStubSettings settings) { + super(settings); + + listConnectionProfilesSettings = settings.listConnectionProfilesSettings.toBuilder(); + getConnectionProfileSettings = settings.getConnectionProfileSettings.toBuilder(); + createConnectionProfileSettings = settings.createConnectionProfileSettings.toBuilder(); + createConnectionProfileOperationSettings = + settings.createConnectionProfileOperationSettings.toBuilder(); + updateConnectionProfileSettings = settings.updateConnectionProfileSettings.toBuilder(); + updateConnectionProfileOperationSettings = + settings.updateConnectionProfileOperationSettings.toBuilder(); + deleteConnectionProfileSettings = settings.deleteConnectionProfileSettings.toBuilder(); + deleteConnectionProfileOperationSettings = + settings.deleteConnectionProfileOperationSettings.toBuilder(); + discoverConnectionProfileSettings = settings.discoverConnectionProfileSettings.toBuilder(); + listStreamsSettings = settings.listStreamsSettings.toBuilder(); + getStreamSettings = settings.getStreamSettings.toBuilder(); + createStreamSettings = settings.createStreamSettings.toBuilder(); + createStreamOperationSettings = settings.createStreamOperationSettings.toBuilder(); + updateStreamSettings = settings.updateStreamSettings.toBuilder(); + updateStreamOperationSettings = settings.updateStreamOperationSettings.toBuilder(); + deleteStreamSettings = settings.deleteStreamSettings.toBuilder(); + deleteStreamOperationSettings = settings.deleteStreamOperationSettings.toBuilder(); + getStreamObjectSettings = settings.getStreamObjectSettings.toBuilder(); + lookupStreamObjectSettings = settings.lookupStreamObjectSettings.toBuilder(); + listStreamObjectsSettings = settings.listStreamObjectsSettings.toBuilder(); + startBackfillJobSettings = settings.startBackfillJobSettings.toBuilder(); + stopBackfillJobSettings = settings.stopBackfillJobSettings.toBuilder(); + fetchStaticIpsSettings = settings.fetchStaticIpsSettings.toBuilder(); + createPrivateConnectionSettings = settings.createPrivateConnectionSettings.toBuilder(); + createPrivateConnectionOperationSettings = + settings.createPrivateConnectionOperationSettings.toBuilder(); + getPrivateConnectionSettings = settings.getPrivateConnectionSettings.toBuilder(); + listPrivateConnectionsSettings = settings.listPrivateConnectionsSettings.toBuilder(); + deletePrivateConnectionSettings = settings.deletePrivateConnectionSettings.toBuilder(); + deletePrivateConnectionOperationSettings = + settings.deletePrivateConnectionOperationSettings.toBuilder(); + createRouteSettings = settings.createRouteSettings.toBuilder(); + createRouteOperationSettings = settings.createRouteOperationSettings.toBuilder(); + getRouteSettings = settings.getRouteSettings.toBuilder(); + listRoutesSettings = settings.listRoutesSettings.toBuilder(); + deleteRouteSettings = settings.deleteRouteSettings.toBuilder(); + deleteRouteOperationSettings = settings.deleteRouteOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listConnectionProfilesSettings, + getConnectionProfileSettings, + createConnectionProfileSettings, + updateConnectionProfileSettings, + deleteConnectionProfileSettings, + discoverConnectionProfileSettings, + listStreamsSettings, + getStreamSettings, + createStreamSettings, + updateStreamSettings, + deleteStreamSettings, + getStreamObjectSettings, + lookupStreamObjectSettings, + listStreamObjectsSettings, + startBackfillJobSettings, + stopBackfillJobSettings, + fetchStaticIpsSettings, + createPrivateConnectionSettings, + getPrivateConnectionSettings, + listPrivateConnectionsSettings, + deletePrivateConnectionSettings, + createRouteSettings, + getRouteSettings, + listRoutesSettings, + deleteRouteSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listConnectionProfilesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getConnectionProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createConnectionProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateConnectionProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteConnectionProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .discoverConnectionProfileSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listStreamsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteStreamSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getStreamObjectSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .lookupStreamObjectSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listStreamObjectsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .startBackfillJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .stopBackfillJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .fetchStaticIpsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createPrivateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getPrivateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listPrivateConnectionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deletePrivateConnectionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .createRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listRoutesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteRouteSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createConnectionProfileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConnectionProfile.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateConnectionProfileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(ConnectionProfile.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteConnectionProfileOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createStreamOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Stream.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateStreamOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Stream.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteStreamOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createPrivateConnectionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(PrivateConnection.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deletePrivateConnectionOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createRouteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Route.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteRouteOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listConnectionProfiles. */ + public PagedCallSettings.Builder< + ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesPagedResponse> + listConnectionProfilesSettings() { + return listConnectionProfilesSettings; + } + + /** Returns the builder for the settings used for calls to getConnectionProfile. */ + public UnaryCallSettings.Builder + getConnectionProfileSettings() { + return getConnectionProfileSettings; + } + + /** Returns the builder for the settings used for calls to createConnectionProfile. */ + public UnaryCallSettings.Builder + createConnectionProfileSettings() { + return createConnectionProfileSettings; + } + + /** Returns the builder for the settings used for calls to createConnectionProfile. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + createConnectionProfileOperationSettings() { + return createConnectionProfileOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateConnectionProfile. */ + public UnaryCallSettings.Builder + updateConnectionProfileSettings() { + return updateConnectionProfileSettings; + } + + /** Returns the builder for the settings used for calls to updateConnectionProfile. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + updateConnectionProfileOperationSettings() { + return updateConnectionProfileOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteConnectionProfile. */ + public UnaryCallSettings.Builder + deleteConnectionProfileSettings() { + return deleteConnectionProfileSettings; + } + + /** Returns the builder for the settings used for calls to deleteConnectionProfile. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteConnectionProfileOperationSettings() { + return deleteConnectionProfileOperationSettings; + } + + /** Returns the builder for the settings used for calls to discoverConnectionProfile. */ + public UnaryCallSettings.Builder< + DiscoverConnectionProfileRequest, DiscoverConnectionProfileResponse> + discoverConnectionProfileSettings() { + return discoverConnectionProfileSettings; + } + + /** Returns the builder for the settings used for calls to listStreams. */ + public PagedCallSettings.Builder< + ListStreamsRequest, ListStreamsResponse, ListStreamsPagedResponse> + listStreamsSettings() { + return listStreamsSettings; + } + + /** Returns the builder for the settings used for calls to getStream. */ + public UnaryCallSettings.Builder getStreamSettings() { + return getStreamSettings; + } + + /** Returns the builder for the settings used for calls to createStream. */ + public UnaryCallSettings.Builder createStreamSettings() { + return createStreamSettings; + } + + /** Returns the builder for the settings used for calls to createStream. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createStreamOperationSettings() { + return createStreamOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateStream. */ + public UnaryCallSettings.Builder updateStreamSettings() { + return updateStreamSettings; + } + + /** Returns the builder for the settings used for calls to updateStream. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateStreamOperationSettings() { + return updateStreamOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteStream. */ + public UnaryCallSettings.Builder deleteStreamSettings() { + return deleteStreamSettings; + } + + /** Returns the builder for the settings used for calls to deleteStream. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteStreamOperationSettings() { + return deleteStreamOperationSettings; + } + + /** Returns the builder for the settings used for calls to getStreamObject. */ + public UnaryCallSettings.Builder + getStreamObjectSettings() { + return getStreamObjectSettings; + } + + /** Returns the builder for the settings used for calls to lookupStreamObject. */ + public UnaryCallSettings.Builder + lookupStreamObjectSettings() { + return lookupStreamObjectSettings; + } + + /** Returns the builder for the settings used for calls to listStreamObjects. */ + public PagedCallSettings.Builder< + ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> + listStreamObjectsSettings() { + return listStreamObjectsSettings; + } + + /** Returns the builder for the settings used for calls to startBackfillJob. */ + public UnaryCallSettings.Builder + startBackfillJobSettings() { + return startBackfillJobSettings; + } + + /** Returns the builder for the settings used for calls to stopBackfillJob. */ + public UnaryCallSettings.Builder + stopBackfillJobSettings() { + return stopBackfillJobSettings; + } + + /** Returns the builder for the settings used for calls to fetchStaticIps. */ + public PagedCallSettings.Builder< + FetchStaticIpsRequest, FetchStaticIpsResponse, FetchStaticIpsPagedResponse> + fetchStaticIpsSettings() { + return fetchStaticIpsSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + public UnaryCallSettings.Builder + createPrivateConnectionSettings() { + return createPrivateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to createPrivateConnection. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationSettings() { + return createPrivateConnectionOperationSettings; + } + + /** Returns the builder for the settings used for calls to getPrivateConnection. */ + public UnaryCallSettings.Builder + getPrivateConnectionSettings() { + return getPrivateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to listPrivateConnections. */ + public PagedCallSettings.Builder< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsPagedResponse> + listPrivateConnectionsSettings() { + return listPrivateConnectionsSettings; + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + public UnaryCallSettings.Builder + deletePrivateConnectionSettings() { + return deletePrivateConnectionSettings; + } + + /** Returns the builder for the settings used for calls to deletePrivateConnection. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deletePrivateConnectionOperationSettings() { + return deletePrivateConnectionOperationSettings; + } + + /** Returns the builder for the settings used for calls to createRoute. */ + public UnaryCallSettings.Builder createRouteSettings() { + return createRouteSettings; + } + + /** Returns the builder for the settings used for calls to createRoute. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createRouteOperationSettings() { + return createRouteOperationSettings; + } + + /** Returns the builder for the settings used for calls to getRoute. */ + public UnaryCallSettings.Builder getRouteSettings() { + return getRouteSettings; + } + + /** Returns the builder for the settings used for calls to listRoutes. */ + public PagedCallSettings.Builder + listRoutesSettings() { + return listRoutesSettings; + } + + /** Returns the builder for the settings used for calls to deleteRoute. */ + public UnaryCallSettings.Builder deleteRouteSettings() { + return deleteRouteSettings; + } + + /** Returns the builder for the settings used for calls to deleteRoute. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteRouteOperationSettings() { + return deleteRouteOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public DatastreamStubSettings build() throws IOException { + return new DatastreamStubSettings(this); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java new file mode 100644 index 00000000..0c0e3670 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the Datastream service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcDatastreamCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java new file mode 100644 index 00000000..a664cabc --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/GrpcDatastreamStub.java @@ -0,0 +1,1259 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.stub; + +import static com.google.cloud.datastream.v1.DatastreamClient.FetchStaticIpsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListLocationsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListPrivateConnectionsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListRoutesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamObjectsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.datastream.v1.ConnectionProfile; +import com.google.cloud.datastream.v1.CreateConnectionProfileRequest; +import com.google.cloud.datastream.v1.CreatePrivateConnectionRequest; +import com.google.cloud.datastream.v1.CreateRouteRequest; +import com.google.cloud.datastream.v1.CreateStreamRequest; +import com.google.cloud.datastream.v1.DeleteConnectionProfileRequest; +import com.google.cloud.datastream.v1.DeletePrivateConnectionRequest; +import com.google.cloud.datastream.v1.DeleteRouteRequest; +import com.google.cloud.datastream.v1.DeleteStreamRequest; +import com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest; +import com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse; +import com.google.cloud.datastream.v1.FetchStaticIpsRequest; +import com.google.cloud.datastream.v1.FetchStaticIpsResponse; +import com.google.cloud.datastream.v1.GetConnectionProfileRequest; +import com.google.cloud.datastream.v1.GetPrivateConnectionRequest; +import com.google.cloud.datastream.v1.GetRouteRequest; +import com.google.cloud.datastream.v1.GetStreamObjectRequest; +import com.google.cloud.datastream.v1.GetStreamRequest; +import com.google.cloud.datastream.v1.ListConnectionProfilesRequest; +import com.google.cloud.datastream.v1.ListConnectionProfilesResponse; +import com.google.cloud.datastream.v1.ListPrivateConnectionsRequest; +import com.google.cloud.datastream.v1.ListPrivateConnectionsResponse; +import com.google.cloud.datastream.v1.ListRoutesRequest; +import com.google.cloud.datastream.v1.ListRoutesResponse; +import com.google.cloud.datastream.v1.ListStreamObjectsRequest; +import com.google.cloud.datastream.v1.ListStreamObjectsResponse; +import com.google.cloud.datastream.v1.ListStreamsRequest; +import com.google.cloud.datastream.v1.ListStreamsResponse; +import com.google.cloud.datastream.v1.LookupStreamObjectRequest; +import com.google.cloud.datastream.v1.OperationMetadata; +import com.google.cloud.datastream.v1.PrivateConnection; +import com.google.cloud.datastream.v1.Route; +import com.google.cloud.datastream.v1.StartBackfillJobRequest; +import com.google.cloud.datastream.v1.StartBackfillJobResponse; +import com.google.cloud.datastream.v1.StopBackfillJobRequest; +import com.google.cloud.datastream.v1.StopBackfillJobResponse; +import com.google.cloud.datastream.v1.Stream; +import com.google.cloud.datastream.v1.StreamObject; +import com.google.cloud.datastream.v1.UpdateConnectionProfileRequest; +import com.google.cloud.datastream.v1.UpdateStreamRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +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; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the Datastream service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcDatastreamStub extends DatastreamStub { + private static final MethodDescriptor< + ListConnectionProfilesRequest, ListConnectionProfilesResponse> + listConnectionProfilesMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/ListConnectionProfiles") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConnectionProfilesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConnectionProfilesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConnectionProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/GetConnectionProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConnectionProfile.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConnectionProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/CreateConnectionProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateConnectionProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/UpdateConnectionProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConnectionProfileMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/DeleteConnectionProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + DiscoverConnectionProfileRequest, DiscoverConnectionProfileResponse> + discoverConnectionProfileMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/DiscoverConnectionProfile") + .setRequestMarshaller( + ProtoUtils.marshaller(DiscoverConnectionProfileRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DiscoverConnectionProfileResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listStreamsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/ListStreams") + .setRequestMarshaller(ProtoUtils.marshaller(ListStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListStreamsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/GetStream") + .setRequestMarshaller(ProtoUtils.marshaller(GetStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Stream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/CreateStream") + .setRequestMarshaller(ProtoUtils.marshaller(CreateStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/UpdateStream") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/DeleteStream") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getStreamObjectMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/GetStreamObject") + .setRequestMarshaller( + ProtoUtils.marshaller(GetStreamObjectRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(StreamObject.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + lookupStreamObjectMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/LookupStreamObject") + .setRequestMarshaller( + ProtoUtils.marshaller(LookupStreamObjectRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(StreamObject.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listStreamObjectsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/ListStreamObjects") + .setRequestMarshaller( + ProtoUtils.marshaller(ListStreamObjectsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListStreamObjectsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + startBackfillJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/StartBackfillJob") + .setRequestMarshaller( + ProtoUtils.marshaller(StartBackfillJobRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StartBackfillJobResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + stopBackfillJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/StopBackfillJob") + .setRequestMarshaller( + ProtoUtils.marshaller(StopBackfillJobRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StopBackfillJobResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + fetchStaticIpsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/FetchStaticIps") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchStaticIpsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchStaticIpsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createPrivateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/CreatePrivateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getPrivateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/GetPrivateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(GetPrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(PrivateConnection.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse> + listPrivateConnectionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/ListPrivateConnections") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPrivateConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPrivateConnectionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePrivateConnectionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/DeletePrivateConnection") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePrivateConnectionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor createRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/CreateRoute") + .setRequestMarshaller(ProtoUtils.marshaller(CreateRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/GetRoute") + .setRequestMarshaller(ProtoUtils.marshaller(GetRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Route.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listRoutesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/ListRoutes") + .setRequestMarshaller(ProtoUtils.marshaller(ListRoutesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListRoutesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteRouteMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.datastream.v1.Datastream/DeleteRoute") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteRouteRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private final UnaryCallable + listConnectionProfilesCallable; + private final UnaryCallable + listConnectionProfilesPagedCallable; + private final UnaryCallable + getConnectionProfileCallable; + private final UnaryCallable + createConnectionProfileCallable; + private final OperationCallable< + CreateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + createConnectionProfileOperationCallable; + private final UnaryCallable + updateConnectionProfileCallable; + private final OperationCallable< + UpdateConnectionProfileRequest, ConnectionProfile, OperationMetadata> + updateConnectionProfileOperationCallable; + private final UnaryCallable + deleteConnectionProfileCallable; + private final OperationCallable + deleteConnectionProfileOperationCallable; + private final UnaryCallable + discoverConnectionProfileCallable; + private final UnaryCallable listStreamsCallable; + private final UnaryCallable + listStreamsPagedCallable; + private final UnaryCallable getStreamCallable; + private final UnaryCallable createStreamCallable; + private final OperationCallable + createStreamOperationCallable; + private final UnaryCallable updateStreamCallable; + private final OperationCallable + updateStreamOperationCallable; + private final UnaryCallable deleteStreamCallable; + private final OperationCallable + deleteStreamOperationCallable; + private final UnaryCallable getStreamObjectCallable; + private final UnaryCallable lookupStreamObjectCallable; + private final UnaryCallable + listStreamObjectsCallable; + private final UnaryCallable + listStreamObjectsPagedCallable; + private final UnaryCallable + startBackfillJobCallable; + private final UnaryCallable + stopBackfillJobCallable; + private final UnaryCallable fetchStaticIpsCallable; + private final UnaryCallable + fetchStaticIpsPagedCallable; + private final UnaryCallable + createPrivateConnectionCallable; + private final OperationCallable< + CreatePrivateConnectionRequest, PrivateConnection, OperationMetadata> + createPrivateConnectionOperationCallable; + private final UnaryCallable + getPrivateConnectionCallable; + private final UnaryCallable + listPrivateConnectionsCallable; + private final UnaryCallable + listPrivateConnectionsPagedCallable; + private final UnaryCallable + deletePrivateConnectionCallable; + private final OperationCallable + deletePrivateConnectionOperationCallable; + private final UnaryCallable createRouteCallable; + private final OperationCallable + createRouteOperationCallable; + private final UnaryCallable getRouteCallable; + private final UnaryCallable listRoutesCallable; + private final UnaryCallable listRoutesPagedCallable; + private final UnaryCallable deleteRouteCallable; + private final OperationCallable + deleteRouteOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcDatastreamStub create(DatastreamStubSettings settings) + throws IOException { + return new GrpcDatastreamStub(settings, ClientContext.create(settings)); + } + + public static final GrpcDatastreamStub create(ClientContext clientContext) throws IOException { + return new GrpcDatastreamStub(DatastreamStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcDatastreamStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcDatastreamStub( + DatastreamStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcDatastreamStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDatastreamStub(DatastreamStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcDatastreamCallableFactory()); + } + + /** + * Constructs an instance of GrpcDatastreamStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcDatastreamStub( + DatastreamStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listConnectionProfilesTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listConnectionProfilesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getConnectionProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConnectionProfileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createConnectionProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConnectionProfileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateConnectionProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConnectionProfileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "connection_profile.name", + String.valueOf(request.getConnectionProfile().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteConnectionProfileTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectionProfileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + discoverConnectionProfileTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(discoverConnectionProfileMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings listStreamsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listStreamsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("stream.name", String.valueOf(request.getStream().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteStreamMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getStreamObjectTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getStreamObjectMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings lookupStreamObjectTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(lookupStreamObjectMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + listStreamObjectsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listStreamObjectsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + startBackfillJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(startBackfillJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("object", String.valueOf(request.getObject())); + return params.build(); + }) + .build(); + GrpcCallSettings + stopBackfillJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(stopBackfillJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("object", String.valueOf(request.getObject())); + return params.build(); + }) + .build(); + GrpcCallSettings + fetchStaticIpsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(fetchStaticIpsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + createPrivateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPrivateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + getPrivateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPrivateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listPrivateConnectionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listPrivateConnectionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deletePrivateConnectionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePrivateConnectionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRouteMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getRouteMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listRoutesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listRoutesMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteRouteTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRouteMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + + this.listConnectionProfilesCallable = + callableFactory.createUnaryCallable( + listConnectionProfilesTransportSettings, + settings.listConnectionProfilesSettings(), + clientContext); + this.listConnectionProfilesPagedCallable = + callableFactory.createPagedCallable( + listConnectionProfilesTransportSettings, + settings.listConnectionProfilesSettings(), + clientContext); + this.getConnectionProfileCallable = + callableFactory.createUnaryCallable( + getConnectionProfileTransportSettings, + settings.getConnectionProfileSettings(), + clientContext); + this.createConnectionProfileCallable = + callableFactory.createUnaryCallable( + createConnectionProfileTransportSettings, + settings.createConnectionProfileSettings(), + clientContext); + this.createConnectionProfileOperationCallable = + callableFactory.createOperationCallable( + createConnectionProfileTransportSettings, + settings.createConnectionProfileOperationSettings(), + clientContext, + operationsStub); + this.updateConnectionProfileCallable = + callableFactory.createUnaryCallable( + updateConnectionProfileTransportSettings, + settings.updateConnectionProfileSettings(), + clientContext); + this.updateConnectionProfileOperationCallable = + callableFactory.createOperationCallable( + updateConnectionProfileTransportSettings, + settings.updateConnectionProfileOperationSettings(), + clientContext, + operationsStub); + this.deleteConnectionProfileCallable = + callableFactory.createUnaryCallable( + deleteConnectionProfileTransportSettings, + settings.deleteConnectionProfileSettings(), + clientContext); + this.deleteConnectionProfileOperationCallable = + callableFactory.createOperationCallable( + deleteConnectionProfileTransportSettings, + settings.deleteConnectionProfileOperationSettings(), + clientContext, + operationsStub); + this.discoverConnectionProfileCallable = + callableFactory.createUnaryCallable( + discoverConnectionProfileTransportSettings, + settings.discoverConnectionProfileSettings(), + clientContext); + this.listStreamsCallable = + callableFactory.createUnaryCallable( + listStreamsTransportSettings, settings.listStreamsSettings(), clientContext); + this.listStreamsPagedCallable = + callableFactory.createPagedCallable( + listStreamsTransportSettings, settings.listStreamsSettings(), clientContext); + this.getStreamCallable = + callableFactory.createUnaryCallable( + getStreamTransportSettings, settings.getStreamSettings(), clientContext); + this.createStreamCallable = + callableFactory.createUnaryCallable( + createStreamTransportSettings, settings.createStreamSettings(), clientContext); + this.createStreamOperationCallable = + callableFactory.createOperationCallable( + createStreamTransportSettings, + settings.createStreamOperationSettings(), + clientContext, + operationsStub); + this.updateStreamCallable = + callableFactory.createUnaryCallable( + updateStreamTransportSettings, settings.updateStreamSettings(), clientContext); + this.updateStreamOperationCallable = + callableFactory.createOperationCallable( + updateStreamTransportSettings, + settings.updateStreamOperationSettings(), + clientContext, + operationsStub); + this.deleteStreamCallable = + callableFactory.createUnaryCallable( + deleteStreamTransportSettings, settings.deleteStreamSettings(), clientContext); + this.deleteStreamOperationCallable = + callableFactory.createOperationCallable( + deleteStreamTransportSettings, + settings.deleteStreamOperationSettings(), + clientContext, + operationsStub); + this.getStreamObjectCallable = + callableFactory.createUnaryCallable( + getStreamObjectTransportSettings, settings.getStreamObjectSettings(), clientContext); + this.lookupStreamObjectCallable = + callableFactory.createUnaryCallable( + lookupStreamObjectTransportSettings, + settings.lookupStreamObjectSettings(), + clientContext); + this.listStreamObjectsCallable = + callableFactory.createUnaryCallable( + listStreamObjectsTransportSettings, + settings.listStreamObjectsSettings(), + clientContext); + this.listStreamObjectsPagedCallable = + callableFactory.createPagedCallable( + listStreamObjectsTransportSettings, + settings.listStreamObjectsSettings(), + clientContext); + this.startBackfillJobCallable = + callableFactory.createUnaryCallable( + startBackfillJobTransportSettings, settings.startBackfillJobSettings(), clientContext); + this.stopBackfillJobCallable = + callableFactory.createUnaryCallable( + stopBackfillJobTransportSettings, settings.stopBackfillJobSettings(), clientContext); + this.fetchStaticIpsCallable = + callableFactory.createUnaryCallable( + fetchStaticIpsTransportSettings, settings.fetchStaticIpsSettings(), clientContext); + this.fetchStaticIpsPagedCallable = + callableFactory.createPagedCallable( + fetchStaticIpsTransportSettings, settings.fetchStaticIpsSettings(), clientContext); + this.createPrivateConnectionCallable = + callableFactory.createUnaryCallable( + createPrivateConnectionTransportSettings, + settings.createPrivateConnectionSettings(), + clientContext); + this.createPrivateConnectionOperationCallable = + callableFactory.createOperationCallable( + createPrivateConnectionTransportSettings, + settings.createPrivateConnectionOperationSettings(), + clientContext, + operationsStub); + this.getPrivateConnectionCallable = + callableFactory.createUnaryCallable( + getPrivateConnectionTransportSettings, + settings.getPrivateConnectionSettings(), + clientContext); + this.listPrivateConnectionsCallable = + callableFactory.createUnaryCallable( + listPrivateConnectionsTransportSettings, + settings.listPrivateConnectionsSettings(), + clientContext); + this.listPrivateConnectionsPagedCallable = + callableFactory.createPagedCallable( + listPrivateConnectionsTransportSettings, + settings.listPrivateConnectionsSettings(), + clientContext); + this.deletePrivateConnectionCallable = + callableFactory.createUnaryCallable( + deletePrivateConnectionTransportSettings, + settings.deletePrivateConnectionSettings(), + clientContext); + this.deletePrivateConnectionOperationCallable = + callableFactory.createOperationCallable( + deletePrivateConnectionTransportSettings, + settings.deletePrivateConnectionOperationSettings(), + clientContext, + operationsStub); + this.createRouteCallable = + callableFactory.createUnaryCallable( + createRouteTransportSettings, settings.createRouteSettings(), clientContext); + this.createRouteOperationCallable = + callableFactory.createOperationCallable( + createRouteTransportSettings, + settings.createRouteOperationSettings(), + clientContext, + operationsStub); + this.getRouteCallable = + callableFactory.createUnaryCallable( + getRouteTransportSettings, settings.getRouteSettings(), clientContext); + this.listRoutesCallable = + callableFactory.createUnaryCallable( + listRoutesTransportSettings, settings.listRoutesSettings(), clientContext); + this.listRoutesPagedCallable = + callableFactory.createPagedCallable( + listRoutesTransportSettings, settings.listRoutesSettings(), clientContext); + this.deleteRouteCallable = + callableFactory.createUnaryCallable( + deleteRouteTransportSettings, settings.deleteRouteSettings(), clientContext); + this.deleteRouteOperationCallable = + callableFactory.createOperationCallable( + deleteRouteTransportSettings, + settings.deleteRouteOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listConnectionProfilesCallable() { + return listConnectionProfilesCallable; + } + + @Override + public UnaryCallable + listConnectionProfilesPagedCallable() { + return listConnectionProfilesPagedCallable; + } + + @Override + public UnaryCallable + getConnectionProfileCallable() { + return getConnectionProfileCallable; + } + + @Override + public UnaryCallable + createConnectionProfileCallable() { + return createConnectionProfileCallable; + } + + @Override + public OperationCallable + createConnectionProfileOperationCallable() { + return createConnectionProfileOperationCallable; + } + + @Override + public UnaryCallable + updateConnectionProfileCallable() { + return updateConnectionProfileCallable; + } + + @Override + public OperationCallable + updateConnectionProfileOperationCallable() { + return updateConnectionProfileOperationCallable; + } + + @Override + public UnaryCallable + deleteConnectionProfileCallable() { + return deleteConnectionProfileCallable; + } + + @Override + public OperationCallable + deleteConnectionProfileOperationCallable() { + return deleteConnectionProfileOperationCallable; + } + + @Override + public UnaryCallable + discoverConnectionProfileCallable() { + return discoverConnectionProfileCallable; + } + + @Override + public UnaryCallable listStreamsCallable() { + return listStreamsCallable; + } + + @Override + public UnaryCallable listStreamsPagedCallable() { + return listStreamsPagedCallable; + } + + @Override + public UnaryCallable getStreamCallable() { + return getStreamCallable; + } + + @Override + public UnaryCallable createStreamCallable() { + return createStreamCallable; + } + + @Override + public OperationCallable + createStreamOperationCallable() { + return createStreamOperationCallable; + } + + @Override + public UnaryCallable updateStreamCallable() { + return updateStreamCallable; + } + + @Override + public OperationCallable + updateStreamOperationCallable() { + return updateStreamOperationCallable; + } + + @Override + public UnaryCallable deleteStreamCallable() { + return deleteStreamCallable; + } + + @Override + public OperationCallable + deleteStreamOperationCallable() { + return deleteStreamOperationCallable; + } + + @Override + public UnaryCallable getStreamObjectCallable() { + return getStreamObjectCallable; + } + + @Override + public UnaryCallable lookupStreamObjectCallable() { + return lookupStreamObjectCallable; + } + + @Override + public UnaryCallable + listStreamObjectsCallable() { + return listStreamObjectsCallable; + } + + @Override + public UnaryCallable + listStreamObjectsPagedCallable() { + return listStreamObjectsPagedCallable; + } + + @Override + public UnaryCallable + startBackfillJobCallable() { + return startBackfillJobCallable; + } + + @Override + public UnaryCallable stopBackfillJobCallable() { + return stopBackfillJobCallable; + } + + @Override + public UnaryCallable fetchStaticIpsCallable() { + return fetchStaticIpsCallable; + } + + @Override + public UnaryCallable + fetchStaticIpsPagedCallable() { + return fetchStaticIpsPagedCallable; + } + + @Override + public UnaryCallable + createPrivateConnectionCallable() { + return createPrivateConnectionCallable; + } + + @Override + public OperationCallable + createPrivateConnectionOperationCallable() { + return createPrivateConnectionOperationCallable; + } + + @Override + public UnaryCallable + getPrivateConnectionCallable() { + return getPrivateConnectionCallable; + } + + @Override + public UnaryCallable + listPrivateConnectionsCallable() { + return listPrivateConnectionsCallable; + } + + @Override + public UnaryCallable + listPrivateConnectionsPagedCallable() { + return listPrivateConnectionsPagedCallable; + } + + @Override + public UnaryCallable + deletePrivateConnectionCallable() { + return deletePrivateConnectionCallable; + } + + @Override + public OperationCallable + deletePrivateConnectionOperationCallable() { + return deletePrivateConnectionOperationCallable; + } + + @Override + public UnaryCallable createRouteCallable() { + return createRouteCallable; + } + + @Override + public OperationCallable + createRouteOperationCallable() { + return createRouteOperationCallable; + } + + @Override + public UnaryCallable getRouteCallable() { + return getRouteCallable; + } + + @Override + public UnaryCallable listRoutesCallable() { + return listRoutesCallable; + } + + @Override + public UnaryCallable listRoutesPagedCallable() { + return listRoutesPagedCallable; + } + + @Override + public UnaryCallable deleteRouteCallable() { + return deleteRouteCallable; + } + + @Override + public OperationCallable + deleteRouteOperationCallable() { + return deleteRouteOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java new file mode 100644 index 00000000..f3887d40 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/DatastreamClientTest.java @@ -0,0 +1,2398 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.cloud.datastream.v1.DatastreamClient.FetchStaticIpsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListConnectionProfilesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListLocationsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListPrivateConnectionsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListRoutesPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamObjectsPagedResponse; +import static com.google.cloud.datastream.v1.DatastreamClient.ListStreamsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.MockLocations; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class DatastreamClientTest { + private static MockDatastream mockDatastream; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private DatastreamClient client; + + @BeforeClass + public static void startStaticServer() { + mockDatastream = new MockDatastream(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockDatastream, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + DatastreamSettings settings = + DatastreamSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = DatastreamClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listConnectionProfilesTest() throws Exception { + ConnectionProfile responsesElement = ConnectionProfile.newBuilder().build(); + ListConnectionProfilesResponse expectedResponse = + ListConnectionProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllConnectionProfiles(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListConnectionProfilesPagedResponse pagedListResponse = client.listConnectionProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConnectionProfilesRequest actualRequest = + ((ListConnectionProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConnectionProfilesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listConnectionProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionProfilesTest2() throws Exception { + ConnectionProfile responsesElement = ConnectionProfile.newBuilder().build(); + ListConnectionProfilesResponse expectedResponse = + ListConnectionProfilesResponse.newBuilder() + .setNextPageToken("") + .addAllConnectionProfiles(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConnectionProfilesPagedResponse pagedListResponse = client.listConnectionProfiles(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionProfilesList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConnectionProfilesRequest actualRequest = + ((ListConnectionProfilesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConnectionProfilesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConnectionProfiles(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionProfileTest() throws Exception { + ConnectionProfile expectedResponse = + ConnectionProfile.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .build(); + mockDatastream.addResponse(expectedResponse); + + ConnectionProfileName name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + + ConnectionProfile actualResponse = client.getConnectionProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConnectionProfileRequest actualRequest = + ((GetConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConnectionProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + ConnectionProfileName name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + client.getConnectionProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConnectionProfileTest2() throws Exception { + ConnectionProfile expectedResponse = + ConnectionProfile.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .build(); + mockDatastream.addResponse(expectedResponse); + + String name = "name3373707"; + + ConnectionProfile actualResponse = client.getConnectionProfile(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConnectionProfileRequest actualRequest = + ((GetConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConnectionProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.getConnectionProfile(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConnectionProfileTest() throws Exception { + ConnectionProfile expectedResponse = + ConnectionProfile.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConnectionProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + String connectionProfileId = "connectionProfileId597575526"; + + ConnectionProfile actualResponse = + client.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConnectionProfileRequest actualRequest = + ((CreateConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(connectionProfile, actualRequest.getConnectionProfile()); + Assert.assertEquals(connectionProfileId, actualRequest.getConnectionProfileId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConnectionProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + String connectionProfileId = "connectionProfileId597575526"; + client.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createConnectionProfileTest2() throws Exception { + ConnectionProfile expectedResponse = + ConnectionProfile.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createConnectionProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String parent = "parent-995424086"; + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + String connectionProfileId = "connectionProfileId597575526"; + + ConnectionProfile actualResponse = + client.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConnectionProfileRequest actualRequest = + ((CreateConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(connectionProfile, actualRequest.getConnectionProfile()); + Assert.assertEquals(connectionProfileId, actualRequest.getConnectionProfileId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConnectionProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + String connectionProfileId = "connectionProfileId597575526"; + client.createConnectionProfileAsync(parent, connectionProfile, connectionProfileId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateConnectionProfileTest() throws Exception { + ConnectionProfile expectedResponse = + ConnectionProfile.newBuilder() + .setName( + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateConnectionProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ConnectionProfile actualResponse = + client.updateConnectionProfileAsync(connectionProfile, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateConnectionProfileRequest actualRequest = + ((UpdateConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(connectionProfile, actualRequest.getConnectionProfile()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateConnectionProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + ConnectionProfile connectionProfile = ConnectionProfile.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateConnectionProfileAsync(connectionProfile, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteConnectionProfileTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConnectionProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + ConnectionProfileName name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + + client.deleteConnectionProfileAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConnectionProfileRequest actualRequest = + ((DeleteConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConnectionProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + ConnectionProfileName name = + ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]"); + client.deleteConnectionProfileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteConnectionProfileTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteConnectionProfileTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteConnectionProfileAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConnectionProfileRequest actualRequest = + ((DeleteConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConnectionProfileExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.deleteConnectionProfileAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void discoverConnectionProfileTest() throws Exception { + DiscoverConnectionProfileResponse expectedResponse = + DiscoverConnectionProfileResponse.newBuilder().build(); + mockDatastream.addResponse(expectedResponse); + + DiscoverConnectionProfileRequest request = + DiscoverConnectionProfileRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + + DiscoverConnectionProfileResponse actualResponse = client.discoverConnectionProfile(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DiscoverConnectionProfileRequest actualRequest = + ((DiscoverConnectionProfileRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getConnectionProfile(), actualRequest.getConnectionProfile()); + Assert.assertEquals( + request.getConnectionProfileName(), actualRequest.getConnectionProfileName()); + Assert.assertEquals(request.getFullHierarchy(), actualRequest.getFullHierarchy()); + Assert.assertEquals(request.getHierarchyDepth(), actualRequest.getHierarchyDepth()); + Assert.assertEquals(request.getOracleRdbms(), actualRequest.getOracleRdbms()); + Assert.assertEquals(request.getMysqlRdbms(), actualRequest.getMysqlRdbms()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void discoverConnectionProfileExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + DiscoverConnectionProfileRequest request = + DiscoverConnectionProfileRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + client.discoverConnectionProfile(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStreamsTest() throws Exception { + Stream responsesElement = Stream.newBuilder().build(); + ListStreamsResponse expectedResponse = + ListStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllStreams(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListStreamsPagedResponse pagedListResponse = client.listStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStreamsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStreamsRequest actualRequest = ((ListStreamsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStreamsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStreamsTest2() throws Exception { + Stream responsesElement = Stream.newBuilder().build(); + ListStreamsResponse expectedResponse = + ListStreamsResponse.newBuilder() + .setNextPageToken("") + .addAllStreams(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListStreamsPagedResponse pagedListResponse = client.listStreams(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStreamsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStreamsRequest actualRequest = ((ListStreamsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStreamsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + client.listStreams(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStreamTest() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .build(); + mockDatastream.addResponse(expectedResponse); + + StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); + + Stream actualResponse = client.getStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStreamRequest actualRequest = ((GetStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); + client.getStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStreamTest2() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .build(); + mockDatastream.addResponse(expectedResponse); + + String name = "name3373707"; + + Stream actualResponse = client.getStream(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStreamRequest actualRequest = ((GetStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStreamExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.getStream(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createStreamTest() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Stream stream = Stream.newBuilder().build(); + String streamId = "streamId1790933179"; + + Stream actualResponse = client.createStreamAsync(parent, stream, streamId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStreamRequest actualRequest = ((CreateStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(stream, actualRequest.getStream()); + Assert.assertEquals(streamId, actualRequest.getStreamId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Stream stream = Stream.newBuilder().build(); + String streamId = "streamId1790933179"; + client.createStreamAsync(parent, stream, streamId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createStreamTest2() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String parent = "parent-995424086"; + Stream stream = Stream.newBuilder().build(); + String streamId = "streamId1790933179"; + + Stream actualResponse = client.createStreamAsync(parent, stream, streamId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateStreamRequest actualRequest = ((CreateStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(stream, actualRequest.getStream()); + Assert.assertEquals(streamId, actualRequest.getStreamId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createStreamExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + Stream stream = Stream.newBuilder().build(); + String streamId = "streamId1790933179"; + client.createStreamAsync(parent, stream, streamId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateStreamTest() throws Exception { + Stream expectedResponse = + Stream.newBuilder() + .setName(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setSourceConfig(SourceConfig.newBuilder().build()) + .setDestinationConfig(DestinationConfig.newBuilder().build()) + .addAllErrors(new ArrayList()) + .setCustomerManagedEncryptionKey("customerManagedEncryptionKey-709617797") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + Stream stream = Stream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Stream actualResponse = client.updateStreamAsync(stream, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateStreamRequest actualRequest = ((UpdateStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(stream, actualRequest.getStream()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + Stream stream = Stream.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateStreamAsync(stream, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteStreamTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); + + client.deleteStreamAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteStreamRequest actualRequest = ((DeleteStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteStreamExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + StreamName name = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); + client.deleteStreamAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteStreamTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteStreamTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteStreamAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteStreamRequest actualRequest = ((DeleteStreamRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteStreamExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.deleteStreamAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getStreamObjectTest() throws Exception { + StreamObject expectedResponse = + StreamObject.newBuilder() + .setName( + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllErrors(new ArrayList()) + .setBackfillJob(BackfillJob.newBuilder().build()) + .setSourceObject(SourceObjectIdentifier.newBuilder().build()) + .build(); + mockDatastream.addResponse(expectedResponse); + + StreamObjectName name = StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); + + StreamObject actualResponse = client.getStreamObject(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStreamObjectRequest actualRequest = ((GetStreamObjectRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStreamObjectExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + StreamObjectName name = + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); + client.getStreamObject(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getStreamObjectTest2() throws Exception { + StreamObject expectedResponse = + StreamObject.newBuilder() + .setName( + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllErrors(new ArrayList()) + .setBackfillJob(BackfillJob.newBuilder().build()) + .setSourceObject(SourceObjectIdentifier.newBuilder().build()) + .build(); + mockDatastream.addResponse(expectedResponse); + + String name = "name3373707"; + + StreamObject actualResponse = client.getStreamObject(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetStreamObjectRequest actualRequest = ((GetStreamObjectRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getStreamObjectExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.getStreamObject(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void lookupStreamObjectTest() throws Exception { + StreamObject expectedResponse = + StreamObject.newBuilder() + .setName( + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllErrors(new ArrayList()) + .setBackfillJob(BackfillJob.newBuilder().build()) + .setSourceObject(SourceObjectIdentifier.newBuilder().build()) + .build(); + mockDatastream.addResponse(expectedResponse); + + LookupStreamObjectRequest request = + LookupStreamObjectRequest.newBuilder() + .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setSourceObjectIdentifier(SourceObjectIdentifier.newBuilder().build()) + .build(); + + StreamObject actualResponse = client.lookupStreamObject(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + LookupStreamObjectRequest actualRequest = ((LookupStreamObjectRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals( + request.getSourceObjectIdentifier(), actualRequest.getSourceObjectIdentifier()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void lookupStreamObjectExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LookupStreamObjectRequest request = + LookupStreamObjectRequest.newBuilder() + .setParent(StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]").toString()) + .setSourceObjectIdentifier(SourceObjectIdentifier.newBuilder().build()) + .build(); + client.lookupStreamObject(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStreamObjectsTest() throws Exception { + StreamObject responsesElement = StreamObject.newBuilder().build(); + ListStreamObjectsResponse expectedResponse = + ListStreamObjectsResponse.newBuilder() + .setNextPageToken("") + .addAllStreamObjects(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + StreamName parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); + + ListStreamObjectsPagedResponse pagedListResponse = client.listStreamObjects(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStreamObjectsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStreamObjectsRequest actualRequest = ((ListStreamObjectsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStreamObjectsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + StreamName parent = StreamName.of("[PROJECT]", "[LOCATION]", "[STREAM]"); + client.listStreamObjects(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listStreamObjectsTest2() throws Exception { + StreamObject responsesElement = StreamObject.newBuilder().build(); + ListStreamObjectsResponse expectedResponse = + ListStreamObjectsResponse.newBuilder() + .setNextPageToken("") + .addAllStreamObjects(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListStreamObjectsPagedResponse pagedListResponse = client.listStreamObjects(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStreamObjectsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListStreamObjectsRequest actualRequest = ((ListStreamObjectsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listStreamObjectsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + client.listStreamObjects(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void startBackfillJobTest() throws Exception { + StartBackfillJobResponse expectedResponse = + StartBackfillJobResponse.newBuilder().setObject(StreamObject.newBuilder().build()).build(); + mockDatastream.addResponse(expectedResponse); + + StreamObjectName object = + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); + + StartBackfillJobResponse actualResponse = client.startBackfillJob(object); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartBackfillJobRequest actualRequest = ((StartBackfillJobRequest) actualRequests.get(0)); + + Assert.assertEquals(object.toString(), actualRequest.getObject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startBackfillJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + StreamObjectName object = + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); + client.startBackfillJob(object); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void startBackfillJobTest2() throws Exception { + StartBackfillJobResponse expectedResponse = + StartBackfillJobResponse.newBuilder().setObject(StreamObject.newBuilder().build()).build(); + mockDatastream.addResponse(expectedResponse); + + String object = "object-1023368385"; + + StartBackfillJobResponse actualResponse = client.startBackfillJob(object); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StartBackfillJobRequest actualRequest = ((StartBackfillJobRequest) actualRequests.get(0)); + + Assert.assertEquals(object, actualRequest.getObject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void startBackfillJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String object = "object-1023368385"; + client.startBackfillJob(object); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void stopBackfillJobTest() throws Exception { + StopBackfillJobResponse expectedResponse = + StopBackfillJobResponse.newBuilder().setObject(StreamObject.newBuilder().build()).build(); + mockDatastream.addResponse(expectedResponse); + + StreamObjectName object = + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); + + StopBackfillJobResponse actualResponse = client.stopBackfillJob(object); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StopBackfillJobRequest actualRequest = ((StopBackfillJobRequest) actualRequests.get(0)); + + Assert.assertEquals(object.toString(), actualRequest.getObject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void stopBackfillJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + StreamObjectName object = + StreamObjectName.of("[PROJECT]", "[LOCATION]", "[STREAM]", "[OBJECT]"); + client.stopBackfillJob(object); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void stopBackfillJobTest2() throws Exception { + StopBackfillJobResponse expectedResponse = + StopBackfillJobResponse.newBuilder().setObject(StreamObject.newBuilder().build()).build(); + mockDatastream.addResponse(expectedResponse); + + String object = "object-1023368385"; + + StopBackfillJobResponse actualResponse = client.stopBackfillJob(object); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + StopBackfillJobRequest actualRequest = ((StopBackfillJobRequest) actualRequests.get(0)); + + Assert.assertEquals(object, actualRequest.getObject()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void stopBackfillJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String object = "object-1023368385"; + client.stopBackfillJob(object); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchStaticIpsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + FetchStaticIpsResponse expectedResponse = + FetchStaticIpsResponse.newBuilder() + .setNextPageToken("") + .addAllStaticIps(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + + FetchStaticIpsPagedResponse pagedListResponse = client.fetchStaticIps(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStaticIpsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchStaticIpsRequest actualRequest = ((FetchStaticIpsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchStaticIpsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName name = LocationName.of("[PROJECT]", "[LOCATION]"); + client.fetchStaticIps(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchStaticIpsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + FetchStaticIpsResponse expectedResponse = + FetchStaticIpsResponse.newBuilder() + .setNextPageToken("") + .addAllStaticIps(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + String name = "name3373707"; + + FetchStaticIpsPagedResponse pagedListResponse = client.fetchStaticIps(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getStaticIpsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchStaticIpsRequest actualRequest = ((FetchStaticIpsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchStaticIpsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.fetchStaticIps(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPrivateConnectionTest() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Error.newBuilder().build()) + .setVpcPeeringConfig(VpcPeeringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + + PrivateConnection actualResponse = + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePrivateConnectionRequest actualRequest = + ((CreatePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection()); + Assert.assertEquals(privateConnectionId, actualRequest.getPrivateConnectionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPrivateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createPrivateConnectionTest2() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Error.newBuilder().build()) + .setVpcPeeringConfig(VpcPeeringConfig.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createPrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String parent = "parent-995424086"; + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + + PrivateConnection actualResponse = + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreatePrivateConnectionRequest actualRequest = + ((CreatePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(privateConnection, actualRequest.getPrivateConnection()); + Assert.assertEquals(privateConnectionId, actualRequest.getPrivateConnectionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createPrivateConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + PrivateConnection privateConnection = PrivateConnection.newBuilder().build(); + String privateConnectionId = "privateConnectionId-1926654532"; + client.createPrivateConnectionAsync(parent, privateConnection, privateConnectionId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getPrivateConnectionTest() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Error.newBuilder().build()) + .setVpcPeeringConfig(VpcPeeringConfig.newBuilder().build()) + .build(); + mockDatastream.addResponse(expectedResponse); + + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + + PrivateConnection actualResponse = client.getPrivateConnection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPrivateConnectionRequest actualRequest = + ((GetPrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPrivateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + client.getPrivateConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPrivateConnectionTest2() throws Exception { + PrivateConnection expectedResponse = + PrivateConnection.newBuilder() + .setName( + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setError(Error.newBuilder().build()) + .setVpcPeeringConfig(VpcPeeringConfig.newBuilder().build()) + .build(); + mockDatastream.addResponse(expectedResponse); + + String name = "name3373707"; + + PrivateConnection actualResponse = client.getPrivateConnection(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetPrivateConnectionRequest actualRequest = + ((GetPrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getPrivateConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.getPrivateConnection(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateConnectionsTest() throws Exception { + PrivateConnection responsesElement = PrivateConnection.newBuilder().build(); + ListPrivateConnectionsResponse expectedResponse = + ListPrivateConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateConnections(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPrivateConnectionsRequest actualRequest = + ((ListPrivateConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPrivateConnectionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPrivateConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPrivateConnectionsTest2() throws Exception { + PrivateConnection responsesElement = PrivateConnection.newBuilder().build(); + ListPrivateConnectionsResponse expectedResponse = + ListPrivateConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllPrivateConnections(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListPrivateConnectionsPagedResponse pagedListResponse = client.listPrivateConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPrivateConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListPrivateConnectionsRequest actualRequest = + ((ListPrivateConnectionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listPrivateConnectionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + client.listPrivateConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePrivateConnectionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + + client.deletePrivateConnectionAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePrivateConnectionRequest actualRequest = + ((DeletePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePrivateConnectionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + PrivateConnectionName name = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + client.deletePrivateConnectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deletePrivateConnectionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deletePrivateConnectionTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String name = "name3373707"; + + client.deletePrivateConnectionAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeletePrivateConnectionRequest actualRequest = + ((DeletePrivateConnectionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deletePrivateConnectionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.deletePrivateConnectionAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createRouteTest() throws Exception { + Route expectedResponse = + Route.newBuilder() + .setName( + RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setDestinationAddress("destinationAddress1736827910") + .setDestinationPort(1205298706) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + PrivateConnectionName parent = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + Route route = Route.newBuilder().build(); + String routeId = "routeId1385647428"; + + Route actualResponse = client.createRouteAsync(parent, route, routeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRouteRequest actualRequest = ((CreateRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(route, actualRequest.getRoute()); + Assert.assertEquals(routeId, actualRequest.getRouteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + PrivateConnectionName parent = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + Route route = Route.newBuilder().build(); + String routeId = "routeId1385647428"; + client.createRouteAsync(parent, route, routeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createRouteTest2() throws Exception { + Route expectedResponse = + Route.newBuilder() + .setName( + RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setDestinationAddress("destinationAddress1736827910") + .setDestinationPort(1205298706) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String parent = "parent-995424086"; + Route route = Route.newBuilder().build(); + String routeId = "routeId1385647428"; + + Route actualResponse = client.createRouteAsync(parent, route, routeId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRouteRequest actualRequest = ((CreateRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(route, actualRequest.getRoute()); + Assert.assertEquals(routeId, actualRequest.getRouteId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + Route route = Route.newBuilder().build(); + String routeId = "routeId1385647428"; + client.createRouteAsync(parent, route, routeId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void getRouteTest() throws Exception { + Route expectedResponse = + Route.newBuilder() + .setName( + RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setDestinationAddress("destinationAddress1736827910") + .setDestinationPort(1205298706) + .build(); + mockDatastream.addResponse(expectedResponse); + + RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); + + Route actualResponse = client.getRoute(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRouteRequest actualRequest = ((GetRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); + client.getRoute(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRouteTest2() throws Exception { + Route expectedResponse = + Route.newBuilder() + .setName( + RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDisplayName("displayName1714148973") + .setDestinationAddress("destinationAddress1736827910") + .setDestinationPort(1205298706) + .build(); + mockDatastream.addResponse(expectedResponse); + + String name = "name3373707"; + + Route actualResponse = client.getRoute(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRouteRequest actualRequest = ((GetRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.getRoute(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRoutesTest() throws Exception { + Route responsesElement = Route.newBuilder().build(); + ListRoutesResponse expectedResponse = + ListRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllRoutes(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + PrivateConnectionName parent = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + + ListRoutesPagedResponse pagedListResponse = client.listRoutes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRoutesList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRoutesRequest actualRequest = ((ListRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRoutesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + PrivateConnectionName parent = + PrivateConnectionName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]"); + client.listRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRoutesTest2() throws Exception { + Route responsesElement = Route.newBuilder().build(); + ListRoutesResponse expectedResponse = + ListRoutesResponse.newBuilder() + .setNextPageToken("") + .addAllRoutes(Arrays.asList(responsesElement)) + .build(); + mockDatastream.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRoutesPagedResponse pagedListResponse = client.listRoutes(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRoutesList().get(0), resources.get(0)); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRoutesRequest actualRequest = ((ListRoutesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRoutesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRoutes(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRouteTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); + + client.deleteRouteAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRouteRequest actualRequest = ((DeleteRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRouteExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + RouteName name = RouteName.of("[PROJECT]", "[LOCATION]", "[PRIVATE_CONNECTION]", "[ROUTE]"); + client.deleteRouteAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteRouteTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteRouteTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDatastream.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteRouteAsync(name).get(); + + List actualRequests = mockDatastream.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRouteRequest actualRequest = ((DeleteRouteRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRouteExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDatastream.addException(exception); + + try { + String name = "name3373707"; + client.deleteRouteAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java new file mode 100644 index 00000000..b275947c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastream.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDatastream implements MockGrpcService { + private final MockDatastreamImpl serviceImpl; + + public MockDatastream() { + serviceImpl = new MockDatastreamImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java new file mode 100644 index 00000000..151210bc --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1/MockDatastreamImpl.java @@ -0,0 +1,586 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.cloud.datastream.v1.DatastreamGrpc.DatastreamImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockDatastreamImpl extends DatastreamImplBase { + private List requests; + private Queue responses; + + public MockDatastreamImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listConnectionProfiles( + ListConnectionProfilesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConnectionProfilesResponse) { + requests.add(request); + responseObserver.onNext(((ListConnectionProfilesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListConnectionProfiles, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConnectionProfilesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConnectionProfile( + GetConnectionProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConnectionProfile) { + requests.add(request); + responseObserver.onNext(((ConnectionProfile) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetConnectionProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConnectionProfile.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConnectionProfile( + CreateConnectionProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateConnectionProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateConnectionProfile( + UpdateConnectionProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateConnectionProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConnectionProfile( + DeleteConnectionProfileRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteConnectionProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void discoverConnectionProfile( + DiscoverConnectionProfileRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DiscoverConnectionProfileResponse) { + requests.add(request); + responseObserver.onNext(((DiscoverConnectionProfileResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DiscoverConnectionProfile, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DiscoverConnectionProfileResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listStreams( + ListStreamsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListStreamsResponse) { + requests.add(request); + responseObserver.onNext(((ListStreamsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListStreams, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListStreamsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getStream(GetStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Stream) { + requests.add(request); + responseObserver.onNext(((Stream) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Stream.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createStream( + CreateStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateStream( + UpdateStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteStream( + DeleteStreamRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteStream, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getStreamObject( + GetStreamObjectRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamObject) { + requests.add(request); + responseObserver.onNext(((StreamObject) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetStreamObject, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamObject.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void lookupStreamObject( + LookupStreamObjectRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamObject) { + requests.add(request); + responseObserver.onNext(((StreamObject) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method LookupStreamObject, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamObject.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listStreamObjects( + ListStreamObjectsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListStreamObjectsResponse) { + requests.add(request); + responseObserver.onNext(((ListStreamObjectsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListStreamObjects, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListStreamObjectsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void startBackfillJob( + StartBackfillJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StartBackfillJobResponse) { + requests.add(request); + responseObserver.onNext(((StartBackfillJobResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StartBackfillJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StartBackfillJobResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void stopBackfillJob( + StopBackfillJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StopBackfillJobResponse) { + requests.add(request); + responseObserver.onNext(((StopBackfillJobResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method StopBackfillJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StopBackfillJobResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchStaticIps( + FetchStaticIpsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchStaticIpsResponse) { + requests.add(request); + responseObserver.onNext(((FetchStaticIpsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method FetchStaticIps, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FetchStaticIpsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createPrivateConnection( + CreatePrivateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreatePrivateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getPrivateConnection( + GetPrivateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof PrivateConnection) { + requests.add(request); + responseObserver.onNext(((PrivateConnection) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetPrivateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + PrivateConnection.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listPrivateConnections( + ListPrivateConnectionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListPrivateConnectionsResponse) { + requests.add(request); + responseObserver.onNext(((ListPrivateConnectionsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListPrivateConnections, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListPrivateConnectionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deletePrivateConnection( + DeletePrivateConnectionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeletePrivateConnection, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRoute(CreateRouteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateRoute, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRoute(GetRouteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Route) { + requests.add(request); + responseObserver.onNext(((Route) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetRoute, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Route.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRoutes( + ListRoutesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRoutesResponse) { + requests.add(request); + responseObserver.onNext(((ListRoutesResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListRoutes, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRoutesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRoute(DeleteRouteRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteRoute, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java new file mode 100644 index 00000000..6afa0e0a --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.location; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java new file mode 100644 index 00000000..a510c098 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java @@ -0,0 +1,101 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.location; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} 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 new file mode 100644 index 00000000..87980183 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamGrpc.java @@ -0,0 +1,2399 @@ +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/AvroFileFormat.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java new file mode 100644 index 00000000..699b4568 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormat.java @@ -0,0 +1,427 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.AvroFileFormat) + AvroFileFormatOrBuilder { +private static final long serialVersionUID = 0L; + // Use AvroFileFormat.newBuilder() to construct. + private AvroFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AvroFileFormat() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AvroFileFormat(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AvroFileFormat( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.AvroFileFormat 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.AvroFileFormat.class, com.google.cloud.datastream.v1.AvroFileFormat.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.AvroFileFormat.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.AvroFileFormat build() { + com.google.cloud.datastream.v1.AvroFileFormat result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.AvroFileFormat other) { + if (other == com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.AvroFileFormat parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.AvroFileFormat) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.AvroFileFormat getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..8dd2d0db --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/AvroFileFormatOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface AvroFileFormatOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.AvroFileFormat) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java new file mode 100644 index 00000000..9c320037 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJob.java @@ -0,0 +1,1973 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.BackfillJob) + BackfillJobOrBuilder { +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; + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BackfillJob(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BackfillJob( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + + break; + } + 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; + } + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + 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
+     * automatic backfill).
+     * 
+ * + * NOT_STARTED = 1; + */ + NOT_STARTED(1), + /** + *
+     * Backfill job will start pending available resources.
+     * 
+ * + * PENDING = 2; + */ + PENDING(2), + /** + *
+     * Backfill job is running.
+     * 
+ * + * ACTIVE = 3; + */ + ACTIVE(3), + /** + *
+     * Backfill job stopped (next job run will start from beginning).
+     * 
+ * + * STOPPED = 4; + */ + STOPPED(4), + /** + *
+     * Backfill job failed (due to an error).
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + /** + *
+     * Backfill completed successfully.
+     * 
+ * + * COMPLETED = 6; + */ + COMPLETED(6), + /** + *
+     * Backfill job failed since the table structure is currently unsupported
+     * for backfill.
+     * 
+ * + * UNSUPPORTED = 7; + */ + UNSUPPORTED(7), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + 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
+     * automatic backfill).
+     * 
+ * + * NOT_STARTED = 1; + */ + public static final int NOT_STARTED_VALUE = 1; + /** + *
+     * Backfill job will start pending available resources.
+     * 
+ * + * PENDING = 2; + */ + public static final int PENDING_VALUE = 2; + /** + *
+     * Backfill job is running.
+     * 
+ * + * ACTIVE = 3; + */ + public static final int ACTIVE_VALUE = 3; + /** + *
+     * Backfill job stopped (next job run will start from beginning).
+     * 
+ * + * STOPPED = 4; + */ + public static final int STOPPED_VALUE = 4; + /** + *
+     * Backfill job failed (due to an error).
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + *
+     * Backfill completed successfully.
+     * 
+ * + * COMPLETED = 6; + */ + public static final int COMPLETED_VALUE = 6; + /** + *
+     * Backfill job failed since the table structure is currently unsupported
+     * for backfill.
+     * 
+ * + * UNSUPPORTED = 7; + */ + public static final int UNSUPPORTED_VALUE = 7; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.BackfillJob.State) + } + + /** + *
+   * Triggering reason for a backfill job.
+   * 
+ * + * Protobuf enum {@code google.cloud.datastream.v1.BackfillJob.Trigger} + */ + public enum Trigger + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Default value.
+     * 
+ * + * TRIGGER_UNSPECIFIED = 0; + */ + TRIGGER_UNSPECIFIED(0), + /** + *
+     * Object backfill job was triggered automatically according to the stream's
+     * backfill strategy.
+     * 
+ * + * AUTOMATIC = 1; + */ + AUTOMATIC(1), + /** + *
+     * Object backfill job was triggered manually using the dedicated API.
+     * 
+ * + * MANUAL = 2; + */ + MANUAL(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Default value.
+     * 
+ * + * TRIGGER_UNSPECIFIED = 0; + */ + public static final int TRIGGER_UNSPECIFIED_VALUE = 0; + /** + *
+     * Object backfill job was triggered automatically according to the stream's
+     * backfill strategy.
+     * 
+ * + * AUTOMATIC = 1; + */ + public static final int AUTOMATIC_VALUE = 1; + /** + *
+     * Object backfill job was triggered manually using the dedicated API.
+     * 
+ * + * MANUAL = 2; + */ + public static final int MANUAL_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Trigger valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Trigger(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.BackfillJob.Trigger) + } + + 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() { + 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() { + @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; + } + + 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() { + 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() { + @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; + } + + 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]; + * @return Whether the lastStartTime field is set. + */ + @java.lang.Override + 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]; + * @return The lastStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastStartTime() { + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { + return getLastStartTime(); + } + + 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]; + * @return Whether the lastEndTime field is set. + */ + @java.lang.Override + 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]; + * @return The lastEndTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { + return getLastEndTime(); + } + + 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]; + */ + @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]; + */ + @java.lang.Override + 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]; + */ + @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]; + */ + @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]; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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()) { + output.writeEnum(2, trigger_); + } + if (lastStartTime_ != null) { + output.writeMessage(3, getLastStartTime()); + } + if (lastEndTime_ != null) { + output.writeMessage(4, getLastEndTime()); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(5, errors_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ != com.google.cloud.datastream.v1.BackfillJob.State.STATE_UNSPECIFIED.getNumber()) { + 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 (lastStartTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastStartTime()); + } + if (lastEndTime_ != null) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (hasLastEndTime() != other.hasLastEndTime()) return false; + if (hasLastEndTime()) { + if (!getLastEndTime() + .equals(other.getLastEndTime())) return false; + } + if (!getErrorsList() + .equals(other.getErrorsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + trigger_; + if (hasLastStartTime()) { + hash = (37 * hash) + LAST_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastStartTime().hashCode(); + } + if (hasLastEndTime()) { + hash = (37 * hash) + LAST_END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastEndTime().hashCode(); + } + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.BackfillJob 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.BackfillJob.class, com.google.cloud.datastream.v1.BackfillJob.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.BackfillJob.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getErrorsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + trigger_ = 0; + + if (lastStartTimeBuilder_ == null) { + lastStartTime_ = null; + } else { + lastStartTime_ = null; + lastStartTimeBuilder_ = null; + } + if (lastEndTimeBuilder_ == null) { + lastEndTime_ = null; + } else { + lastEndTime_ = null; + lastEndTimeBuilder_ = null; + } + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + errorsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_BackfillJob_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJob getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJob build() { + com.google.cloud.datastream.v1.BackfillJob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.state_ = state_; + result.trigger_ = trigger_; + if (lastStartTimeBuilder_ == null) { + result.lastStartTime_ = lastStartTime_; + } else { + result.lastStartTime_ = lastStartTimeBuilder_.build(); + } + if (lastEndTimeBuilder_ == null) { + result.lastEndTime_ = lastEndTime_; + } else { + result.lastEndTime_ = lastEndTimeBuilder_.build(); + } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.BackfillJob other) { + if (other == com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance()) return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.trigger_ != 0) { + setTriggerValue(other.getTriggerValue()); + } + if (other.hasLastStartTime()) { + mergeLastStartTime(other.getLastStartTime()); + } + if (other.hasLastEndTime()) { + mergeLastEndTime(other.getLastEndTime()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.BackfillJob parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.BackfillJob) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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() { + 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; + } + /** + *
+     * Backfill job state.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob.State state = 1; + * @param value The state to set. + * @return This builder for chaining. + */ + 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; + } + + 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() { + 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; + } + /** + *
+     * Backfill job's triggering reason.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob.Trigger trigger = 2; + * @param value The trigger to set. + * @return This builder for chaining. + */ + public Builder setTrigger(com.google.cloud.datastream.v1.BackfillJob.Trigger value) { + 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; + } + + 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_; + /** + *
+     * Output only. Backfill job's start time.
+     * 
+ * + * .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]; + * @return The lastStartTime. + */ + public com.google.protobuf.Timestamp getLastStartTime() { + if (lastStartTimeBuilder_ == null) { + 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]; + */ + public Builder setLastStartTime(com.google.protobuf.Timestamp value) { + if (lastStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastStartTime_ = value; + onChanged(); + } else { + lastStartTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Backfill job's start time.
+     * 
+ * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setLastStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastStartTimeBuilder_ == null) { + lastStartTime_ = builderForValue.build(); + onChanged(); + } else { + lastStartTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Backfill job's start time.
+     * 
+ * + * .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(); + } else { + lastStartTime_ = value; + } + onChanged(); + } else { + lastStartTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Backfill job's start time.
+     * 
+ * + * .google.protobuf.Timestamp last_start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearLastStartTime() { + if (lastStartTimeBuilder_ == null) { + lastStartTime_ = null; + onChanged(); + } else { + lastStartTime_ = null; + lastStartTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Backfill job's start time.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getLastStartTimeOrBuilder() { + if (lastStartTimeBuilder_ != null) { + return lastStartTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + lastStartTime_ = null; + } + return lastStartTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. Backfill job's end time.
+     * 
+ * + * .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]; + * @return The lastEndTime. + */ + public com.google.protobuf.Timestamp getLastEndTime() { + if (lastEndTimeBuilder_ == null) { + 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]; + */ + public Builder setLastEndTime(com.google.protobuf.Timestamp value) { + if (lastEndTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastEndTime_ = value; + onChanged(); + } else { + lastEndTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. Backfill job's end time.
+     * 
+ * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setLastEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastEndTimeBuilder_ == null) { + lastEndTime_ = builderForValue.build(); + onChanged(); + } else { + lastEndTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. Backfill job's end time.
+     * 
+ * + * .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(); + } else { + lastEndTime_ = value; + } + onChanged(); + } else { + lastEndTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. Backfill job's end time.
+     * 
+ * + * .google.protobuf.Timestamp last_end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearLastEndTime() { + if (lastEndTimeBuilder_ == null) { + lastEndTime_ = null; + onChanged(); + } else { + lastEndTime_ = null; + lastEndTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. Backfill job's end time.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getLastEndTimeOrBuilder() { + if (lastEndTimeBuilder_ != null) { + return lastEndTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + lastEndTime_ = null; + } + return lastEndTimeBuilder_; + } + + private java.util.List errors_ = + 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_; + + /** + *
+     * Output only. Errors which caused the backfill job to fail.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Errors which caused the backfill job to fail.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + *
+     * Output only. Errors which caused the backfill job to fail.
+     * 
+ * + * 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) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(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]; + */ + public Builder setErrors( + int index, com.google.cloud.datastream.v1.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, 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]; + */ + public Builder setErrors( + int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addErrors(com.google.cloud.datastream.v1.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(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]; + */ + public Builder addErrors( + int index, com.google.cloud.datastream.v1.Error value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, 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]; + */ + public Builder addErrors( + com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + 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]; + */ + public Builder addErrors( + int index, com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + 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]; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + 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]; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorsBuilder_.clear(); + } + 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]; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(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]; + */ + 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]; + */ + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + 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]; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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]; + */ + public com.google.cloud.datastream.v1.Error.Builder addErrorsBuilder() { + 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]; + */ + 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]; + */ + 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> + 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()); + errors_ = null; + } + return errorsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java new file mode 100644 index 00000000..b5dc43d5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/BackfillJobOrBuilder.java @@ -0,0 +1,145 @@ +// 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 + // @@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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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]; + */ + 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/ConnectionProfile.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java new file mode 100644 index 00000000..e176a9f2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java @@ -0,0 +1,3273 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.ConnectionProfile} + */ +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; + // Use ConnectionProfile.newBuilder() to construct. + private ConnectionProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectionProfile() { + name_ = ""; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectionProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ConnectionProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + + 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; + } + 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 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; + } + 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; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProfileCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConnectivityCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + 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() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * Oracle ConnectionProfile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + @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.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 + 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.getDefaultInstance(); + } + /** + *
+   * Cloud Storage ConnectionProfile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + @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.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 + 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.getDefaultInstance(); + } + /** + *
+   * MySQL ConnectionProfile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + @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.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; + * @return Whether the staticServiceIpConnectivity field is set. + */ + @java.lang.Override + public boolean hasStaticServiceIpConnectivity() { + return connectivityCase_ == 200; + } + /** + *
+   * Static Service IP connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * @return The staticServiceIpConnectivity. + */ + @java.lang.Override + 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.getDefaultInstance(); + } + /** + *
+   * Static Service IP connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + + public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 201; + /** + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * @return Whether the forwardSshConnectivity field is set. + */ + @java.lang.Override + public boolean hasForwardSshConnectivity() { + return connectivityCase_ == 201; + } + /** + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .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.getDefaultInstance(); + } + /** + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + @java.lang.Override + 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.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 + 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.getDefaultInstance(); + } + /** + *
+   * Private connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + 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 (profileCase_ == 100) { + output.writeMessage(100, (com.google.cloud.datastream.v1.OracleProfile) profile_); + } + if (profileCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.GcsProfile) profile_); + } + if (profileCase_ == 102) { + output.writeMessage(102, (com.google.cloud.datastream.v1.MysqlProfile) profile_); + } + if (connectivityCase_ == 200) { + output.writeMessage(200, (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_); + } + if (connectivityCase_ == 201) { + output.writeMessage(201, (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_); + } + if (connectivityCase_ == 202) { + output.writeMessage(202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + 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__); + } + 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_); + } + if (profileCase_ == 101) { + 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_); + } + if (connectivityCase_ == 200) { + 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_); + } + if (connectivityCase_ == 202) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(202, (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (!getProfileCase().equals(other.getProfileCase())) return false; + switch (profileCase_) { + case 100: + if (!getOracleProfile() + .equals(other.getOracleProfile())) return false; + break; + case 101: + if (!getGcsProfile() + .equals(other.getGcsProfile())) return false; + break; + case 102: + if (!getMysqlProfile() + .equals(other.getMysqlProfile())) return false; + break; + case 0: + default: + } + if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; + switch (connectivityCase_) { + case 200: + if (!getStaticServiceIpConnectivity() + .equals(other.getStaticServiceIpConnectivity())) return false; + break; + case 201: + if (!getForwardSshConnectivity() + .equals(other.getForwardSshConnectivity())) return false; + break; + case 202: + if (!getPrivateConnectivity() + .equals(other.getPrivateConnectivity())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + switch (profileCase_) { + case 100: + hash = (37 * hash) + ORACLE_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getOracleProfile().hashCode(); + break; + case 101: + hash = (37 * hash) + GCS_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getGcsProfile().hashCode(); + break; + case 102: + hash = (37 * hash) + MYSQL_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getMysqlProfile().hashCode(); + break; + case 0: + default: + } + switch (connectivityCase_) { + case 200: + hash = (37 * hash) + STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getStaticServiceIpConnectivity().hashCode(); + break; + case 201: + hash = (37 * hash) + FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getForwardSshConnectivity().hashCode(); + break; + case 202: + hash = (37 * hash) + PRIVATE_CONNECTIVITY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectivity().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.ConnectionProfile} + */ + 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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ConnectionProfile.class, com.google.cloud.datastream.v1.ConnectionProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ConnectionProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + + profileCase_ = 0; + profile_ = null; + connectivityCase_ = 0; + connectivity_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ConnectionProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ConnectionProfile build() { + com.google.cloud.datastream.v1.ConnectionProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.displayName_ = displayName_; + if (profileCase_ == 100) { + if (oracleProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = oracleProfileBuilder_.build(); + } + } + if (profileCase_ == 101) { + if (gcsProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = gcsProfileBuilder_.build(); + } + } + if (profileCase_ == 102) { + if (mysqlProfileBuilder_ == null) { + result.profile_ = profile_; + } else { + result.profile_ = mysqlProfileBuilder_.build(); + } + } + if (connectivityCase_ == 200) { + if (staticServiceIpConnectivityBuilder_ == null) { + result.connectivity_ = connectivity_; + } else { + result.connectivity_ = staticServiceIpConnectivityBuilder_.build(); + } + } + if (connectivityCase_ == 201) { + if (forwardSshConnectivityBuilder_ == null) { + result.connectivity_ = connectivity_; + } else { + result.connectivity_ = forwardSshConnectivityBuilder_.build(); + } + } + if (connectivityCase_ == 202) { + if (privateConnectivityBuilder_ == null) { + result.connectivity_ = connectivity_; + } else { + result.connectivity_ = privateConnectivityBuilder_.build(); + } + } + result.profileCase_ = profileCase_; + result.connectivityCase_ = connectivityCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ConnectionProfile other) { + if (other == com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + 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; + } + } + 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; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ConnectionProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ConnectionProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int profileCase_ = 0; + private java.lang.Object profile_; + public ProfileCase + getProfileCase() { + return ProfileCase.forNumber( + profileCase_); + } + + public Builder clearProfile() { + profileCase_ = 0; + profile_ = null; + onChanged(); + return this; + } + + private int connectivityCase_ = 0; + private java.lang.Object connectivity_; + public ConnectivityCase + getConnectivityCase() { + return ConnectivityCase.forNumber( + connectivityCase_); + } + + public Builder clearConnectivity() { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + 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_; + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * @return Whether the oracleProfile field is set. + */ + @java.lang.Override + 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 (oracleProfileBuilder_ == null) { + if (profileCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleProfile) profile_; + } + return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); + } else { + if (profileCase_ == 100) { + return oracleProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); + } + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + public Builder setOracleProfile(com.google.cloud.datastream.v1.OracleProfile value) { + if (oracleProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + oracleProfileBuilder_.setMessage(value); + } + profileCase_ = 100; + return this; + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + public Builder setOracleProfile( + com.google.cloud.datastream.v1.OracleProfile.Builder builderForValue) { + if (oracleProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + oracleProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 100; + return this; + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + 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(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 100) { + oracleProfileBuilder_.mergeFrom(value); + } + oracleProfileBuilder_.setMessage(value); + } + profileCase_ = 100; + return this; + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + public Builder clearOracleProfile() { + if (oracleProfileBuilder_ == null) { + if (profileCase_ == 100) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 100) { + profileCase_ = 0; + profile_ = null; + } + oracleProfileBuilder_.clear(); + } + return this; + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + public com.google.cloud.datastream.v1.OracleProfile.Builder getOracleProfileBuilder() { + return getOracleProfileFieldBuilder().getBuilder(); + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrBuilder() { + if ((profileCase_ == 100) && (oracleProfileBuilder_ != null)) { + return oracleProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleProfile) profile_; + } + return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); + } + } + /** + *
+     * Oracle ConnectionProfile configuration.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.OracleProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 100; + 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_; + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * @return Whether the gcsProfile field is set. + */ + @java.lang.Override + 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 (gcsProfileBuilder_ == null) { + if (profileCase_ == 101) { + return (com.google.cloud.datastream.v1.GcsProfile) profile_; + } + return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); + } else { + if (profileCase_ == 101) { + return gcsProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); + } + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + public Builder setGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { + if (gcsProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + gcsProfileBuilder_.setMessage(value); + } + profileCase_ = 101; + return this; + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + public Builder setGcsProfile( + com.google.cloud.datastream.v1.GcsProfile.Builder builderForValue) { + if (gcsProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + gcsProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 101; + return this; + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + 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(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 101) { + gcsProfileBuilder_.mergeFrom(value); + } + gcsProfileBuilder_.setMessage(value); + } + profileCase_ = 101; + return this; + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + public Builder clearGcsProfile() { + if (gcsProfileBuilder_ == null) { + if (profileCase_ == 101) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 101) { + profileCase_ = 0; + profile_ = null; + } + gcsProfileBuilder_.clear(); + } + return this; + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + public com.google.cloud.datastream.v1.GcsProfile.Builder getGcsProfileBuilder() { + return getGcsProfileFieldBuilder().getBuilder(); + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder() { + if ((profileCase_ == 101) && (gcsProfileBuilder_ != null)) { + return gcsProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 101) { + return (com.google.cloud.datastream.v1.GcsProfile) profile_; + } + return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); + } + } + /** + *
+     * Cloud Storage ConnectionProfile configuration.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.GcsProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 101; + 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_; + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * @return Whether the mysqlProfile field is set. + */ + @java.lang.Override + 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 (mysqlProfileBuilder_ == null) { + if (profileCase_ == 102) { + return (com.google.cloud.datastream.v1.MysqlProfile) profile_; + } + return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); + } else { + if (profileCase_ == 102) { + return mysqlProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); + } + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + public Builder setMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value) { + if (mysqlProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + profile_ = value; + onChanged(); + } else { + mysqlProfileBuilder_.setMessage(value); + } + profileCase_ = 102; + return this; + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + public Builder setMysqlProfile( + com.google.cloud.datastream.v1.MysqlProfile.Builder builderForValue) { + if (mysqlProfileBuilder_ == null) { + profile_ = builderForValue.build(); + onChanged(); + } else { + mysqlProfileBuilder_.setMessage(builderForValue.build()); + } + profileCase_ = 102; + return this; + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + 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(); + } else { + profile_ = value; + } + onChanged(); + } else { + if (profileCase_ == 102) { + mysqlProfileBuilder_.mergeFrom(value); + } + mysqlProfileBuilder_.setMessage(value); + } + profileCase_ = 102; + return this; + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + public Builder clearMysqlProfile() { + if (mysqlProfileBuilder_ == null) { + if (profileCase_ == 102) { + profileCase_ = 0; + profile_ = null; + onChanged(); + } + } else { + if (profileCase_ == 102) { + profileCase_ = 0; + profile_ = null; + } + mysqlProfileBuilder_.clear(); + } + return this; + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + public com.google.cloud.datastream.v1.MysqlProfile.Builder getMysqlProfileBuilder() { + return getMysqlProfileFieldBuilder().getBuilder(); + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder() { + if ((profileCase_ == 102) && (mysqlProfileBuilder_ != null)) { + return mysqlProfileBuilder_.getMessageOrBuilder(); + } else { + if (profileCase_ == 102) { + return (com.google.cloud.datastream.v1.MysqlProfile) profile_; + } + return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); + } + } + /** + *
+     * MySQL ConnectionProfile configuration.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.MysqlProfile) profile_, + getParentForChildren(), + isClean()); + profile_ = null; + } + profileCase_ = 102; + onChanged();; + return mysqlProfileBuilder_; + } + + 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_; + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * @return Whether the staticServiceIpConnectivity field is set. + */ + @java.lang.Override + public boolean hasStaticServiceIpConnectivity() { + return connectivityCase_ == 200; + } + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + * @return The staticServiceIpConnectivity. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { + if (staticServiceIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 200) { + return (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) connectivity_; + } + return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 200) { + return staticServiceIpConnectivityBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + } + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1.StaticServiceIpConnectivity value) { + if (staticServiceIpConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + staticServiceIpConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 200; + return this; + } + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + public Builder setStaticServiceIpConnectivity( + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder builderForValue) { + if (staticServiceIpConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + staticServiceIpConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 200; + return this; + } + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + 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(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 200) { + staticServiceIpConnectivityBuilder_.mergeFrom(value); + } + staticServiceIpConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 200; + return this; + } + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + public Builder clearStaticServiceIpConnectivity() { + if (staticServiceIpConnectivityBuilder_ == null) { + if (connectivityCase_ == 200) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 200) { + connectivityCase_ = 0; + connectivity_ = null; + } + staticServiceIpConnectivityBuilder_.clear(); + } + return this; + } + /** + *
+     * Static Service IP connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + 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; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { + if ((connectivityCase_ == 200) && (staticServiceIpConnectivityBuilder_ != null)) { + return staticServiceIpConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 200) { + 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; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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(); + } + 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();; + 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_; + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * @return Whether the forwardSshConnectivity field is set. + */ + @java.lang.Override + public boolean hasForwardSshConnectivity() { + return connectivityCase_ == 201; + } + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + * @return The forwardSshConnectivity. + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { + if (forwardSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 201) { + return (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_; + } + return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 201) { + return forwardSshConnectivityBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + } + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity value) { + if (forwardSshConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + forwardSshConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 201; + return this; + } + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + public Builder setForwardSshConnectivity( + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder builderForValue) { + if (forwardSshConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + forwardSshConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 201; + return this; + } + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + 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(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 201) { + forwardSshConnectivityBuilder_.mergeFrom(value); + } + forwardSshConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 201; + return this; + } + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + public Builder clearForwardSshConnectivity() { + if (forwardSshConnectivityBuilder_ == null) { + if (connectivityCase_ == 201) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 201) { + connectivityCase_ = 0; + connectivity_ = null; + } + forwardSshConnectivityBuilder_.clear(); + } + return this; + } + /** + *
+     * Forward SSH tunnel connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + 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; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { + if ((connectivityCase_ == 201) && (forwardSshConnectivityBuilder_ != null)) { + return forwardSshConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 201) { + 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; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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(); + } + 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();; + 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_; + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * @return Whether the privateConnectivity field is set. + */ + @java.lang.Override + 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 (privateConnectivityBuilder_ == null) { + if (connectivityCase_ == 202) { + return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; + } + return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); + } else { + if (connectivityCase_ == 202) { + return privateConnectivityBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); + } + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + public Builder setPrivateConnectivity(com.google.cloud.datastream.v1.PrivateConnectivity value) { + if (privateConnectivityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectivity_ = value; + onChanged(); + } else { + privateConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 202; + return this; + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + public Builder setPrivateConnectivity( + com.google.cloud.datastream.v1.PrivateConnectivity.Builder builderForValue) { + if (privateConnectivityBuilder_ == null) { + connectivity_ = builderForValue.build(); + onChanged(); + } else { + privateConnectivityBuilder_.setMessage(builderForValue.build()); + } + connectivityCase_ = 202; + return this; + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + 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(); + } else { + connectivity_ = value; + } + onChanged(); + } else { + if (connectivityCase_ == 202) { + privateConnectivityBuilder_.mergeFrom(value); + } + privateConnectivityBuilder_.setMessage(value); + } + connectivityCase_ = 202; + return this; + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + public Builder clearPrivateConnectivity() { + if (privateConnectivityBuilder_ == null) { + if (connectivityCase_ == 202) { + connectivityCase_ = 0; + connectivity_ = null; + onChanged(); + } + } else { + if (connectivityCase_ == 202) { + connectivityCase_ = 0; + connectivity_ = null; + } + privateConnectivityBuilder_.clear(); + } + return this; + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + public com.google.cloud.datastream.v1.PrivateConnectivity.Builder getPrivateConnectivityBuilder() { + return getPrivateConnectivityFieldBuilder().getBuilder(); + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { + if ((connectivityCase_ == 202) && (privateConnectivityBuilder_ != null)) { + return privateConnectivityBuilder_.getMessageOrBuilder(); + } else { + if (connectivityCase_ == 202) { + return (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_; + } + return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); + } + } + /** + *
+     * Private connectivity.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.PrivateConnectivity) connectivity_, + getParentForChildren(), + isClean()); + connectivity_ = null; + } + connectivityCase_ = 202; + onChanged();; + return privateConnectivityBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ConnectionProfile getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java new file mode 100644 index 00000000..886f147b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileName.java @@ -0,0 +1,231 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class ConnectionProfileName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_CONNECTION_PROFILE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/connectionProfiles/{connection_profile}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String connectionProfile; + + @Deprecated + protected ConnectionProfileName() { + project = null; + location = null; + connectionProfile = null; + } + + private ConnectionProfileName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + connectionProfile = Preconditions.checkNotNull(builder.getConnectionProfile()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConnectionProfile() { + return connectionProfile; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConnectionProfileName of( + String project, String location, String connectionProfile) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConnectionProfile(connectionProfile) + .build(); + } + + public static String format(String project, String location, String connectionProfile) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setConnectionProfile(connectionProfile) + .build() + .toString(); + } + + public static ConnectionProfileName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_CONNECTION_PROFILE.validatedMatch( + formattedString, "ConnectionProfileName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("connection_profile")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (ConnectionProfileName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_CONNECTION_PROFILE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (connectionProfile != null) { + fieldMapBuilder.put("connection_profile", connectionProfile); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_CONNECTION_PROFILE.instantiate( + "project", project, "location", location, "connection_profile", connectionProfile); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ConnectionProfileName that = ((ConnectionProfileName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.connectionProfile, that.connectionProfile); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(connectionProfile); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/connectionProfiles/{connection_profile}. + */ + public static class Builder { + private String project; + private String location; + private String connectionProfile; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getConnectionProfile() { + return connectionProfile; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setConnectionProfile(String connectionProfile) { + this.connectionProfile = connectionProfile; + return this; + } + + private Builder(ConnectionProfileName connectionProfileName) { + this.project = connectionProfileName.project; + this.location = connectionProfileName.location; + this.connectionProfile = connectionProfileName.connectionProfile; + } + + public ConnectionProfileName build() { + return new ConnectionProfileName(this); + } + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java new file mode 100644 index 00000000..e16ba19a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfileOrBuilder.java @@ -0,0 +1,323 @@ +// 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 + // @@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(); + + /** + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + 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(); + + /** + *
+   * 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.
+   * 
+ * + * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + */ + com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); + + /** + *
+   * Static Service IP connectivity.
+   * 
+ * + * .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; + * @return The staticServiceIpConnectivity. + */ + com.google.cloud.datastream.v1.StaticServiceIpConnectivity getStaticServiceIpConnectivity(); + /** + *
+   * Static Service IP connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.StaticServiceIpConnectivity static_service_ip_connectivity = 200; + */ + com.google.cloud.datastream.v1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder(); + + /** + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .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; + * @return The forwardSshConnectivity. + */ + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getForwardSshConnectivity(); + /** + *
+   * Forward SSH tunnel connectivity.
+   * 
+ * + * .google.cloud.datastream.v1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + */ + com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder(); + + public com.google.cloud.datastream.v1.ConnectionProfile.ProfileCase getProfileCase(); + + public com.google.cloud.datastream.v1.ConnectionProfile.ConnectivityCase getConnectivityCase(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java new file mode 100644 index 00000000..1a2fabc5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequest.java @@ -0,0 +1,1397 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateConnectionProfileRequest) + CreateConnectionProfileRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateConnectionProfileRequest.newBuilder() to construct. + private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateConnectionProfileRequest() { + parent_ = ""; + connectionProfileId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateConnectionProfileRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateConnectionProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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(); + } + 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(); + + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getConnectionProfileId() { + java.lang.Object ref = connectionProfileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + connectionProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the connectionProfile field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * Required. The connection profile resource to create.
+   * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + return 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionProfileId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, connectionProfileId_); + } + if (connectionProfile_ != null) { + output.writeMessage(3, getConnectionProfile()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + if (force_ != false) { + output.writeBool(6, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionProfileId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); + } + if (connectionProfile_ != null) { + 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_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CONNECTION_PROFILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfileId().hashCode(); + if (hasConnectionProfile()) { + hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfile().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 = (37 * hash) + FORCE_FIELD_NUMBER; + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.datastream.v1.CreateConnectionProfileRequest 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.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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1.CreateConnectionProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.CreateConnectionProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + connectionProfileId_ = ""; + + if (connectionProfileBuilder_ == null) { + connectionProfile_ = null; + } else { + connectionProfile_ = null; + connectionProfileBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateConnectionProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreateConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreateConnectionProfileRequest build() { + com.google.cloud.datastream.v1.CreateConnectionProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.connectionProfileId_ = connectionProfileId_; + if (connectionProfileBuilder_ == null) { + result.connectionProfile_ = connectionProfile_; + } else { + result.connectionProfile_ = connectionProfileBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + result.force_ = force_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.CreateConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1.CreateConnectionProfileRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getConnectionProfileId().isEmpty()) { + connectionProfileId_ = other.connectionProfileId_; + onChanged(); + } + if (other.hasConnectionProfile()) { + mergeConnectionProfile(other.getConnectionProfile()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.CreateConnectionProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.CreateConnectionProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of ConnectionProfiles.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of ConnectionProfiles.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + connectionProfileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = connectionProfileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionProfileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The connection profile identifier.
+     * 
+ * + * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The connectionProfileId to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfileId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + connectionProfileId_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .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]; + * @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_; + } else { + return connectionProfileBuilder_.getMessage(); + } + } + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + connectionProfile_ = value; + onChanged(); + } else { + connectionProfileBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setConnectionProfile( + com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { + if (connectionProfileBuilder_ == null) { + connectionProfile_ = builderForValue.build(); + onChanged(); + } else { + connectionProfileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .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(); + } else { + connectionProfile_ = value; + } + onChanged(); + } else { + connectionProfileBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearConnectionProfile() { + if (connectionProfileBuilder_ == null) { + connectionProfile_ = null; + onChanged(); + } else { + connectionProfile_ = null; + connectionProfileBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. The connection profile resource to create.
+     * 
+ * + * .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> + 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()); + connectionProfile_ = null; + } + return connectionProfileBuilder_; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + 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 + 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_ ; + /** + *
+     * Optional. Create the connection profile without validating it.
+     * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreateConnectionProfileRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..3674b9f9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateConnectionProfileRequestOrBuilder.java @@ -0,0 +1,137 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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(); + + /** + *
+   * Required. The connection profile resource to create.
+   * 
+ * + * .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]; + * @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]; + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java new file mode 100644 index 00000000..fa33618e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequest.java @@ -0,0 +1,1231 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreatePrivateConnectionRequest) + CreatePrivateConnectionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreatePrivateConnectionRequest.newBuilder() to construct. + private CreatePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreatePrivateConnectionRequest() { + parent_ = ""; + privateConnectionId_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreatePrivateConnectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreatePrivateConnectionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + 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(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getPrivateConnectionId() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + privateConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the privateConnection field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * Required. The Private Connectivity resource to create.
+   * 
+ * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder() { + return 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, privateConnectionId_); + } + if (privateConnection_ != null) { + output.writeMessage(3, getPrivateConnection()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); + } + if (privateConnection_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPrivateConnection()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!getRequestId() + .equals(other.getRequestId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PRIVATE_CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectionId().hashCode(); + if (hasPrivateConnection()) { + hash = (37 * hash) + PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnection().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + privateConnectionId_ = ""; + + if (privateConnectionBuilder_ == null) { + privateConnection_ = null; + } else { + privateConnection_ = null; + privateConnectionBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreatePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreatePrivateConnectionRequest build() { + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.privateConnectionId_ = privateConnectionId_; + if (privateConnectionBuilder_ == null) { + result.privateConnection_ = privateConnection_; + } else { + result.privateConnection_ = privateConnectionBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.CreatePrivateConnectionRequest other) { + if (other == com.google.cloud.datastream.v1.CreatePrivateConnectionRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getPrivateConnectionId().isEmpty()) { + privateConnectionId_ = other.privateConnectionId_; + onChanged(); + } + if (other.hasPrivateConnection()) { + mergePrivateConnection(other.getPrivateConnection()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.CreatePrivateConnectionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.CreatePrivateConnectionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of PrivateConnections.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + privateConnectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = privateConnectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + privateConnectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The private connectivity identifier.
+     * 
+ * + * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The privateConnectionId to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateConnectionId_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .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]; + * @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_; + } else { + return privateConnectionBuilder_.getMessage(); + } + } + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + privateConnection_ = value; + onChanged(); + } else { + privateConnectionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setPrivateConnection( + com.google.cloud.datastream.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionBuilder_ == null) { + privateConnection_ = builderForValue.build(); + onChanged(); + } else { + privateConnectionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .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(); + } else { + privateConnection_ = value; + } + onChanged(); + } else { + privateConnectionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearPrivateConnection() { + if (privateConnectionBuilder_ == null) { + privateConnection_ = null; + onChanged(); + } else { + privateConnection_ = null; + privateConnectionBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. The Private Connectivity resource to create.
+     * 
+ * + * .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> + 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()); + privateConnection_ = null; + } + return privateConnectionBuilder_; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.CreatePrivateConnectionRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java new file mode 100644 index 00000000..90b3e3a0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreatePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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(); + + /** + *
+   * Required. The Private Connectivity resource to create.
+   * 
+ * + * .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]; + * @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]; + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java new file mode 100644 index 00000000..b1e2501d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequest.java @@ -0,0 +1,1231 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateRouteRequest) + CreateRouteRequestOrBuilder { +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_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateRouteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateRouteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + 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(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getRouteId() { + java.lang.Object ref = routeId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the route field is set. + */ + @java.lang.Override + public boolean hasRoute() { + return route_ != null; + } + /** + *
+   * Required. The Route resource to create.
+   * 
+ * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The route. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() { + return getRoute(); + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, routeId_); + } + if (route_ != null) { + output.writeMessage(3, getRoute()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(routeId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); + } + if (route_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRoute()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!getRequestId() + .equals(other.getRequestId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ROUTE_ID_FIELD_NUMBER; + hash = (53 * hash) + getRouteId().hashCode(); + if (hasRoute()) { + hash = (37 * hash) + ROUTE_FIELD_NUMBER; + hash = (53 * hash) + getRoute().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.CreateRouteRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CreateRouteRequest.class, com.google.cloud.datastream.v1.CreateRouteRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.CreateRouteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + routeId_ = ""; + + if (routeBuilder_ == null) { + route_ = null; + } else { + route_ = null; + routeBuilder_ = null; + } + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreateRouteRequest build() { + com.google.cloud.datastream.v1.CreateRouteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.routeId_ = routeId_; + if (routeBuilder_ == null) { + result.route_ = route_; + } else { + result.route_ = routeBuilder_.build(); + } + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.CreateRouteRequest other) { + if (other == com.google.cloud.datastream.v1.CreateRouteRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getRouteId().isEmpty()) { + routeId_ = other.routeId_; + onChanged(); + } + if (other.hasRoute()) { + mergeRoute(other.getRoute()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.CreateRouteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.CreateRouteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of Routes.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of Routes.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + routeId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The Route identifier.
+     * 
+ * + * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for routeId. + */ + 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); + routeId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The Route identifier.
+     * 
+ * + * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The routeId to set. + * @return This builder for chaining. + */ + public Builder setRouteId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + routeId_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .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]; + * @return The route. + */ + public com.google.cloud.datastream.v1.Route getRoute() { + if (routeBuilder_ == null) { + return route_ == null ? com.google.cloud.datastream.v1.Route.getDefaultInstance() : route_; + } else { + return routeBuilder_.getMessage(); + } + } + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + route_ = value; + onChanged(); + } else { + routeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setRoute( + com.google.cloud.datastream.v1.Route.Builder builderForValue) { + if (routeBuilder_ == null) { + route_ = builderForValue.build(); + onChanged(); + } else { + routeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .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(); + } else { + route_ = value; + } + onChanged(); + } else { + routeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearRoute() { + if (routeBuilder_ == null) { + route_ = null; + onChanged(); + } else { + route_ = null; + routeBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. The Route resource to create.
+     * 
+ * + * .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> + 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()); + route_ = null; + } + return routeBuilder_; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.CreateRouteRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java new file mode 100644 index 00000000..ed1195c9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateRouteRequestOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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(); + + /** + *
+   * Required. The Route resource to create.
+   * 
+ * + * .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]; + * @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]; + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java new file mode 100644 index 00000000..a4ecb337 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequest.java @@ -0,0 +1,1397 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.CreateStreamRequest) + CreateStreamRequestOrBuilder { +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_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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(); + } + 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(); + + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getStreamId() { + java.lang.Object ref = streamId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + streamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the stream field is set. + */ + @java.lang.Override + public boolean hasStream() { + return stream_ != null; + } + /** + *
+   * Required. The stream resource to create.
+   * 
+ * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return The stream. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { + return getStream(); + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, streamId_); + } + if (stream_ != null) { + output.writeMessage(3, getStream()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(5, validateOnly_); + } + if (force_ != false) { + output.writeBool(6, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(streamId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_); + } + if (stream_ != null) { + 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_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + STREAM_ID_FIELD_NUMBER; + hash = (53 * hash) + getStreamId().hashCode(); + if (hasStream()) { + hash = (37 * hash) + STREAM_FIELD_NUMBER; + hash = (53 * hash) + getStream().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 = (37 * hash) + FORCE_FIELD_NUMBER; + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.datastream.v1.CreateStreamRequest 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.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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.CreateStreamRequest.class, com.google.cloud.datastream.v1.CreateStreamRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.CreateStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + streamId_ = ""; + + if (streamBuilder_ == null) { + stream_ = null; + } else { + stream_ = null; + streamBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_CreateStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.CreateStreamRequest build() { + com.google.cloud.datastream.v1.CreateStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.streamId_ = streamId_; + if (streamBuilder_ == null) { + result.stream_ = stream_; + } else { + result.stream_ = streamBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + result.force_ = force_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.CreateStreamRequest other) { + if (other == com.google.cloud.datastream.v1.CreateStreamRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getStreamId().isEmpty()) { + streamId_ = other.streamId_; + onChanged(); + } + if (other.hasStream()) { + mergeStream(other.getStream()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.CreateStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.CreateStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of streams.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of streams.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + streamId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The stream identifier.
+     * 
+ * + * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for streamId. + */ + 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); + streamId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The stream identifier.
+     * 
+ * + * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The streamId to set. + * @return This builder for chaining. + */ + public Builder setStreamId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + streamId_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .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]; + * @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_; + } else { + return streamBuilder_.getMessage(); + } + } + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + stream_ = value; + onChanged(); + } else { + streamBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStream( + com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + if (streamBuilder_ == null) { + stream_ = builderForValue.build(); + onChanged(); + } else { + streamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .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(); + } else { + stream_ = value; + } + onChanged(); + } else { + streamBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .google.cloud.datastream.v1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStream() { + if (streamBuilder_ == null) { + stream_ = null; + onChanged(); + } else { + stream_ = null; + streamBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. The stream resource to create.
+     * 
+ * + * .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> + 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()); + stream_ = null; + } + return streamBuilder_; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + 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 + 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_ ; + /** + *
+     * Optional. Create the stream without validating it.
+     * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.CreateStreamRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java new file mode 100644 index 00000000..b5acf401 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/CreateStreamRequestOrBuilder.java @@ -0,0 +1,137 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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(); + + /** + *
+   * Required. The stream resource to create.
+   * 
+ * + * .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]; + * @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]; + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString + getRequestIdBytes(); + + /** + *
+   * Optional. Only validate the stream, but don't create any resources.
+   * The default is false.
+   * 
+ * + * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + *
+   * Optional. Create the stream without validating it.
+   * 
+ * + * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + boolean getForce(); +} diff --git a/owl-bot-staging/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 new file mode 100644 index 00000000..6eb225b6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -0,0 +1,735 @@ +// 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\"\264\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\002B\010\n\006targetB\013" + + "\n\thierarchyB\r\n\013data_object\"\262\001\n!DiscoverC" + + "onnectionProfileResponse\022?\n\014oracle_rdbms" + + "\030d \001(\0132\'.google.cloud.datastream.v1.Orac" + + "leRdbmsH\000\022=\n\013mysql_rdbms\030e \001(\0132&.google." + + "cloud.datastream.v1.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_tok" + + "en\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nst" + + "atic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\255\001\n\035ListConnectionProfilesRequest\022C\n\006par" + + "ent\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" + + "\010order_by\030\005 \001(\t\"\232\001\n\036ListConnectionProfil" + + "esResponse\022J\n\023connection_profiles\030\001 \003(\0132" + + "-.google.cloud.datastream.v1.ConnectionP" + + "rofile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"`\n\033GetConnectionProfileRequ" + + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.go" + + "ogleapis.com/ConnectionProfile\"\242\002\n\036Creat" + + "eConnectionProfileRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Con" + + "nectionProfile\022\"\n\025connection_profile_id\030" + + "\002 \001(\tB\003\340A\002\022N\n\022connection_profile\030\003 \001(\0132-" + + ".google.cloud.datastream.v1.ConnectionPr" + + "ofileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" + + "alidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003" + + "\340A\001\"\357\001\n\036UpdateConnectionProfileRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\022N\n\022connection_profile\030\002 \001(\013" + + "2-.google.cloud.datastream.v1.Connection" + + "ProfileB\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(\010" + + "B\003\340A\001\"|\n\036DeleteConnectionProfileRequest\022" + + "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.google" + + "apis.com/ConnectionProfile\022\027\n\nrequest_id" + + "\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pa" + + "rent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapi" + + "s.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\023ListStreamsResponse\0223\n\007streams\030" + + "\001 \003(\0132\".google.cloud.datastream.v1.Strea" + + "m\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n datastream.googleapis.com/Str" + + "eam\"\351\001\n\023CreateStreamRequest\0228\n\006parent\030\001 " + + "\001(\tB(\340A\002\372A\"\022 datastream.googleapis.com/S" + + "tream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030" + + "\003 \001(\0132\".google.cloud.datastream.v1.Strea" + + "mB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalid" + + "ate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" + + "\315\001\n\023UpdateStreamRequest\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_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001" + + "(\010B\003\340A\001\"f\n\023DeleteStreamRequest\0226\n\004name\030\001" + + " \001(\tB(\340A\002\372A\"\n datastream.googleapis.com/" + + "Stream\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"V\n\026GetSt" + + "reamObjectRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&datastream.googleapis.com/StreamObject\"" + + "\260\001\n\031LookupStreamObjectRequest\0228\n\006parent\030" + + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + + "/Stream\022Y\n\030source_object_identifier\030\002 \001(" + + "\01322.google.cloud.datastream.v1.SourceObj" + + "ectIdentifierB\003\340A\002\"Y\n\027StartBackfillJobRe" + + "quest\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastrea" + + "m.googleapis.com/StreamObject\"T\n\030StartBa" + + "ckfillJobResponse\0228\n\006object\030\001 \001(\0132(.goog" + + "le.cloud.datastream.v1.StreamObject\"X\n\026S" + + "topBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340" + + "A\002\372A(\n&datastream.googleapis.com/StreamO" + + "bject\"S\n\027StopBackfillJobResponse\0228\n\006obje" + + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" + + "reamObject\"\201\001\n\030ListStreamObjectsRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datastream.goog" + + "leapis.com/StreamObject\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\031ListStreamObje" + + "ctsResponse\022@\n\016stream_objects\030\001 \003(\0132(.go" + + "ogle.cloud.datastream.v1.StreamObject\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\316\002\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" + + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + + "\003\022L\n\021validation_result\030\010 \001(\0132,.google.cl" + + "oud.datastream.v1.ValidationResultB\003\340A\003\"" + + "\362\001\n\036CreatePrivateConnectionRequest\022C\n\006pa" + + "rent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapi" + + "s.com/PrivateConnection\022\"\n\025private_conne" + + "ction_id\030\002 \001(\tB\003\340A\002\022N\n\022private_connectio" + + "n\030\003 \001(\0132-.google.cloud.datastream.v1.Pri" + + "vateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" + + "\003\340A\001\"\255\001\n\035ListPrivateConnectionsRequest\022C" + + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googl" + + "eapis.com/PrivateConnection\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConn" + + "ectionsResponse\022J\n\023private_connections\030\001" + + " \003(\0132-.google.cloud.datastream.v1.Privat" + + "eConnection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateConne" + + "ctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+data" + + "stream.googleapis.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\033GetPrivateConnectionRequest\022A\n\004n" + + "ame\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" + + ".com/PrivateConnection\"\264\001\n\022CreateRouteRe" + + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastrea" + + "m.googleapis.com/Route\022\025\n\010route_id\030\002 \001(\t" + + "B\003\340A\002\0225\n\005route\030\003 \001(\0132!.google.cloud.data" + + "stream.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" + + "B\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 " + + "\001(\tB\'\340A\002\372A!\022\037datastream.googleapis.com/R" + + "oute\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n" + + "\022ListRoutesResponse\0221\n\006routes\030\001 \003(\0132!.go" + + "ogle.cloud.datastream.v1.Route\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022" + + "DeleteRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037datastream.googleapis.com/Route\022\027\n\nreq" + + "uest_id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleap" + + "is.com/Route2\375*\n\nDatastream\022\330\001\n\026ListConn" + + "ectionProfiles\0229.google.cloud.datastream" + + ".v1.ListConnectionProfilesRequest\032:.goog" + + "le.cloud.datastream.v1.ListConnectionPro" + + "filesResponse\"G\202\323\344\223\0028\0226/v1/{parent=proje" + + "cts/*/locations/*}/connectionProfiles\332A\006" + + "parent\022\305\001\n\024GetConnectionProfile\0227.google" + + ".cloud.datastream.v1.GetConnectionProfil" + + "eRequest\032-.google.cloud.datastream.v1.Co" + + "nnectionProfile\"E\202\323\344\223\0028\0226/v1/{name=proje" + + "cts/*/locations/*/connectionProfiles/*}\332" + + "A\004name\022\244\002\n\027CreateConnectionProfile\022:.goo" + + "gle.cloud.datastream.v1.CreateConnection" + + "ProfileRequest\032\035.google.longrunning.Oper" + + "ation\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/l" + + "ocations/*}/connectionProfiles:\022connecti" + + "on_profile\332A/parent,connection_profile,c" + + "onnection_profile_id\312A&\n\021ConnectionProfi" + + "le\022\021OperationMetadata\022\246\002\n\027UpdateConnecti" + + "onProfile\022:.google.cloud.datastream.v1.U" + + "pdateConnectionProfileRequest\032\035.google.l" + + "ongrunning.Operation\"\257\001\202\323\344\223\002_2I/v1/{conn" + + "ection_profile.name=projects/*/locations" + + "/*/connectionProfiles/*}:\022connection_pro" + + "file\332A\036connection_profile,update_mask\312A&" + + "\n\021ConnectionProfile\022\021OperationMetadata\022\350" + + "\001\n\027DeleteConnectionProfile\022:.google.clou" + + "d.datastream.v1.DeleteConnectionProfileR" + + "equest\032\035.google.longrunning.Operation\"r\202" + + "\323\344\223\0028*6/v1/{name=projects/*/locations/*/" + + "connectionProfiles/*}\332A\004name\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\022\344\001\n\031Di" + + "scoverConnectionProfile\022<.google.cloud.d" + + "atastream.v1.DiscoverConnectionProfileRe" + + "quest\032=.google.cloud.datastream.v1.Disco" + + "verConnectionProfileResponse\"J\202\323\344\223\002D\"?/v" + + "1/{parent=projects/*/locations/*}/connec" + + "tionProfiles:discover:\001*\022\254\001\n\013ListStreams" + + "\022..google.cloud.datastream.v1.ListStream" + + "sRequest\032/.google.cloud.datastream.v1.Li" + + "stStreamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=p" + + "rojects/*/locations/*}/streams\332A\006parent\022" + + "\231\001\n\tGetStream\022,.google.cloud.datastream." + + "v1.GetStreamRequest\032\".google.cloud.datas" + + "tream.v1.Stream\":\202\323\344\223\002-\022+/v1/{name=proje" + + "cts/*/locations/*/streams/*}\332A\004name\022\323\001\n\014" + + "CreateStream\022/.google.cloud.datastream.v" + + "1.CreateStreamRequest\032\035.google.longrunni" + + "ng.Operation\"s\202\323\344\223\0025\"+/v1/{parent=projec" + + "ts/*/locations/*}/streams:\006stream\332A\027pare" + + "nt,stream,stream_id\312A\033\n\006Stream\022\021Operatio" + + "nMetadata\022\325\001\n\014UpdateStream\022/.google.clou" + + "d.datastream.v1.UpdateStreamRequest\032\035.go" + + "ogle.longrunning.Operation\"u\202\323\344\223\002<22/v1/" + + "{stream.name=projects/*/locations/*/stre" + + "ams/*}:\006stream\332A\022stream,update_mask\312A\033\n\006" + + "Stream\022\021OperationMetadata\022\307\001\n\014DeleteStre" + + "am\022/.google.cloud.datastream.v1.DeleteSt" + + "reamRequest\032\035.google.longrunning.Operati" + + "on\"g\202\323\344\223\002-*+/v1/{name=projects/*/locatio" + + "ns/*/streams/*}\332A\004name\312A*\n\025google.protob" + + "uf.Empty\022\021OperationMetadata\022\265\001\n\017GetStrea" + + "mObject\0222.google.cloud.datastream.v1.Get" + + "StreamObjectRequest\032(.google.cloud.datas" + + "tream.v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name" + + "=projects/*/locations/*/streams/*/object" + + "s/*}\332A\004name\022\276\001\n\022LookupStreamObject\0225.goo" + + "gle.cloud.datastream.v1.LookupStreamObje" + + "ctRequest\032(.google.cloud.datastream.v1.S" + + "treamObject\"G\202\323\344\223\002A\"\n\nss" + + "l_config\030\005 \001(\0132*.google.cloud.datastream" + + ".v1.MysqlSslConfig\"4\n\nGcsProfile\022\023\n\006buck" + + "et\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\035\n\033Stat" + + "icServiceIpConnectivity\"\250\001\n\034ForwardSshTu" + + "nnelConnectivity\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\010" + + "password\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001" + + "(\tB\003\340A\004H\000B\027\n\025authentication_method\"]\n\020Vp" + + "cPeeringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037com" + + "pute.googleapis.com/Networks\022\023\n\006subnet\030\002" + + " \001(\tB\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" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I" + + "\n\006labels\030\004 \003(\01329.google.cloud.datastream" + + ".v1.PrivateConnection.LabelsEntry\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.go" + + "ogle.cloud.datastream.v1.PrivateConnecti" + + "on.StateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cl" + + "oud.datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peer" + + "ing_config\030d \001(\0132,.google.cloud.datastre" + + "am.v1.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\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007C" + + "REATED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FA" + + "ILED_TO_DELETE\020\005:\201\001\352A~\n+datastream.googl" + + "eapis.com/PrivateConnection\022Oprojects/{p" + + "roject}/locations/{location}/privateConn" + + "ections/{private_connection}\"f\n\023PrivateC" + + "onnectivity\022O\n\022private_connection\030\001 \001(\tB" + + "3\340A\002\372A-\n+datastream.googleapis.com/Priva" + + "teConnection\"\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" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022=\n\006labels\030" + + "\004 \003(\0132-.google.cloud.datastream.v1.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\020des" + + "tination_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datas" + + "tream.googleapis.com/Route\022^projects/{pr" + + "oject}/locations/{location}/privateConne" + + "ctions/{private_connection}/routes/{rout" + + "e}\"\312\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(" + + "\tB\003\340A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022c" + + "lient_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_c" + + "ertificate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certific" + + "ate\030\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001" + + "(\010B\003\340A\003\"\242\007\n\021ConnectionProfile\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006" + + "labels\030\004 \003(\01329.google.cloud.datastream.v" + + "1.ConnectionProfile.LabelsEntry\022\031\n\014displ" + + "ay_name\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001" + + "(\0132).google.cloud.datastream.v1.OraclePr" + + "ofileH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cl" + + "oud.datastream.v1.GcsProfileH\000\022A\n\rmysql_" + + "profile\030f \001(\0132(.google.cloud.datastream." + + "v1.MysqlProfileH\000\022b\n\036static_service_ip_c" + + "onnectivity\030\310\001 \001(\01327.google.cloud.datast" + + "ream.v1.StaticServiceIpConnectivityH\001\022]\n" + + "\030forward_ssh_connectivity\030\311\001 \001(\01328.googl" + + "e.cloud.datastream.v1.ForwardSshTunnelCo" + + "nnectivityH\001\022P\n\024private_connectivity\030\312\001 " + + "\001(\0132/.google.cloud.datastream.v1.Private" + + "ConnectivityH\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\022Oprojec" + + "ts/{project}/locations/{location}/connec" + + "tionProfiles/{connection_profile}B\t\n\007pro" + + "fileB\016\n\014connectivity\"\266\001\n\014OracleColumn\022\016\n" + + "\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006leng" + + "th\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\"^\n\013OracleTable\022\r\n\005table\030\001 \001(\t\022@\n\016o" + + "racle_columns\030\002 \003(\0132(.google.cloud.datas" + + "tream.v1.OracleColumn\"^\n\014OracleSchema\022\016\n" + + "\006schema\030\001 \001(\t\022>\n\roracle_tables\030\002 \003(\0132\'.g" + + "oogle.cloud.datastream.v1.OracleTable\"O\n" + + "\013OracleRdbms\022@\n\016oracle_schemas\030\001 \003(\0132(.g" + + "oogle.cloud.datastream.v1.OracleSchema\"\230" + + "\001\n\022OracleSourceConfig\022@\n\017include_objects" + + "\030\001 \001(\0132\'.google.cloud.datastream.v1.Orac" + + "leRdbms\022@\n\017exclude_objects\030\002 \001(\0132\'.googl" + + "e.cloud.datastream.v1.OracleRdbms\"\224\001\n\013My" + + "sqlColumn\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\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_position\030\007 \001(\005\"[\n\nMysqlTable\022\r" + + "\n\005table\030\001 \001(\t\022>\n\rmysql_columns\030\002 \003(\0132\'.g" + + "oogle.cloud.datastream.v1.MysqlColumn\"_\n" + + "\rMysqlDatabase\022\020\n\010database\030\001 \001(\t\022<\n\014mysq" + + "l_tables\030\002 \003(\0132&.google.cloud.datastream" + + ".v1.MysqlTable\"P\n\nMysqlRdbms\022B\n\017mysql_da" + + "tabases\030\001 \003(\0132).google.cloud.datastream." + + "v1.MysqlDatabase\"\225\001\n\021MysqlSourceConfig\022?" + + "\n\017include_objects\030\001 \001(\0132&.google.cloud.d" + + "atastream.v1.MysqlRdbms\022?\n\017exclude_objec" + + "ts\030\002 \001(\0132&.google.cloud.datastream.v1.My" + + "sqlRdbms\"\234\002\n\014SourceConfig\022V\n\031source_conn" + + "ection_profile\030\001 \001(\tB3\340A\002\372A-\n+datastream" + + ".googleapis.com/ConnectionProfile\022N\n\024ora" + + "cle_source_config\030d \001(\0132..google.cloud.d" + + "atastream.v1.OracleSourceConfigH\000\022L\n\023mys" + + "ql_source_config\030e \001(\0132-.google.cloud.da" + + "tastream.v1.MysqlSourceConfigH\000B\026\n\024sourc" + + "e_stream_config\"\020\n\016AvroFileFormat\"\357\002\n\016Js" + + "onFileFormat\022W\n\022schema_file_format\030\001 \001(\016" + + "2;.google.cloud.datastream.v1.JsonFileFo" + + "rmat.SchemaFileFormat\022O\n\013compression\030\002 \001" + + "(\0162:.google.cloud.datastream.v1.JsonFile" + + "Format.JsonCompression\"`\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" + + "\"Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_" + + "UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZI" + + "P\020\002\"\230\002\n\024GcsDestinationConfig\022\014\n\004path\030\001 \001" + + "(\t\022\030\n\020file_rotation_mb\030\002 \001(\005\0229\n\026file_rot" + + "ation_interval\030\003 \001(\0132\031.google.protobuf.D" + + "uration\022F\n\020avro_file_format\030d \001(\0132*.goog" + + "le.cloud.datastream.v1.AvroFileFormatH\000\022" + + "F\n\020json_file_format\030e \001(\0132*.google.cloud" + + ".datastream.v1.JsonFileFormatH\000B\r\n\013file_" + + "format\"\341\001\n\021DestinationConfig\022[\n\036destinat" + + "ion_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+da" + + "tastream.googleapis.com/ConnectionProfil" + + "e\022R\n\026gcs_destination_config\030d \001(\01320.goog" + + "le.cloud.datastream.v1.GcsDestinationCon" + + "figH\000B\033\n\031destination_stream_config\"\375\t\n\006S" + + "tream\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\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132..google.cl" + + "oud.datastream.v1.Stream.LabelsEntry\022\031\n\014" + + "display_name\030\005 \001(\tB\003\340A\002\022D\n\rsource_config" + + "\030\006 \001(\0132(.google.cloud.datastream.v1.Sour" + + "ceConfigB\003\340A\002\022N\n\022destination_config\030\007 \001(" + + "\0132-.google.cloud.datastream.v1.Destinati" + + "onConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(.google.cl" + + "oud.datastream.v1.Stream.State\022N\n\014backfi" + + "ll_all\030e \001(\01326.google.cloud.datastream.v" + + "1.Stream.BackfillAllStrategyH\000\022P\n\rbackfi" + + "ll_none\030f \001(\01327.google.cloud.datastream." + + "v1.Stream.BackfillNoneStrategyH\000\0226\n\006erro" + + "rs\030\t \003(\0132!.google.cloud.datastream.v1.Er" + + "rorB\003\340A\003\0221\n\037customer_managed_encryption_" + + "key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\277\001\n\023BackfillAllStrat" + + "egy\022J\n\027oracle_excluded_objects\030\001 \001(\0132\'.g" + + "oogle.cloud.datastream.v1.OracleRdbmsH\000\022" + + "H\n\026mysql_excluded_objects\030\002 \001(\0132&.google" + + ".cloud.datastream.v1.MysqlRdbmsH\000B\022\n\020exc" + + "luded_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\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\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\006FAILED\020\005\022\026\n\022FAILED_P" + + "ERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DRAINING\020\010" + + ":_\352A\\\n datastream.googleapis.com/Stream\022" + + "8projects/{project}/locations/{location}" + + "/streams/{stream}B\023\n\021backfill_strategyB\"" + + "\n _customer_managed_encryption_key\"\342\003\n\014S" + + "treamObject\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\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\031\n\014display_name\030\005 \001(\t" + + "B\003\340A\002\0226\n\006errors\030\006 \003(\0132!.google.cloud.dat" + + "astream.v1.ErrorB\003\340A\003\022=\n\014backfill_job\030\007 " + + "\001(\0132\'.google.cloud.datastream.v1.Backfil" + + "lJob\022I\n\rsource_object\030\010 \001(\01322.google.clo" + + "ud.datastream.v1.SourceObjectIdentifier:" + + "v\352As\n&datastream.googleapis.com/StreamOb" + + "ject\022Iprojects/{project}/locations/{loca" + + "tion}/streams/{stream}/objects/{object}\"" + + "\202\003\n\026SourceObjectIdentifier\022f\n\021oracle_ide" + + "ntifier\030\001 \001(\0132I.google.cloud.datastream." + + "v1.SourceObjectIdentifier.OracleObjectId" + + "entifierH\000\022d\n\020mysql_identifier\030\002 \001(\0132H.g" + + "oogle.cloud.datastream.v1.SourceObjectId" + + "entifier.MysqlObjectIdentifierH\000\032A\n\026Orac" + + "leObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022" + + "\022\n\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdenti" + + "fier\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001" + + "(\tB\003\340A\002B\023\n\021source_identifier\"\372\003\n\013Backfil" + + "lJob\022<\n\005state\030\001 \001(\0162-.google.cloud.datas" + + "tream.v1.BackfillJob.State\022@\n\007trigger\030\002 " + + "\001(\0162/.google.cloud.datastream.v1.Backfil" + + "lJob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0226\n\rlast_e" + + "nd_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.da" + + "tastream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PEND" + + "ING\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\007Tr" + + "igger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMA" + + "TIC\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.T" + + "imestamp\022?\n\007details\030\005 \003(\0132..google.cloud" + + ".datastream.v1.Error.DetailsEntry\032.\n\014Det" + + "ailsEntry\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" + + "(\0132&.google.cloud.datastream.v1.Validati" + + "on\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;" + + "\n\005state\030\002 \001(\0162,.google.cloud.datastream." + + "v1.Validation.State\022>\n\007message\030\003 \003(\0132-.g" + + "oogle.cloud.datastream.v1.ValidationMess" + + "age\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\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\007mes" + + "sage\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud" + + ".datastream.v1.ValidationMessage.Level\022M" + + "\n\010metadata\030\003 \003(\0132;.google.cloud.datastre" + + "am.v1.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_U" + + "NSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\256\002\n" + + "\036com.google.cloud.datastream.v1B\030Datastr" + + "eamResourcesProtoP\001ZDgoogle.golang.org/g" + + "enproto/googleapis/cloud/datastream/v1;d" + + "atastream\252\002\032Google.Cloud.Datastream.V1\312\002" + + "\032Google\\Cloud\\Datastream\\V1\352\002\035Google::Cl" + + "oud::Datastream::V1\352AO\n\037compute.googleap" + + "is.com/Networks\022,projects/{project}/glob" + + "al/networks/{network}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + 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_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + 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_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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", "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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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", }); + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = + getDescriptor().getMessageTypes().get(16); + 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(17); + 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(18); + 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(19); + 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(20); + 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", }); + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + 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", "SourceStreamConfig", }); + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = + getDescriptor().getMessageTypes().get(22); + 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(23); + 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(24); + 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_DestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + 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", "DestinationStreamConfig", }); + internal_static_google_cloud_datastream_v1_Stream_descriptor = + getDescriptor().getMessageTypes().get(26); + 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", "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(27); + 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(28); + 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", "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_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(1); + 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(29); + 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(30); + 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(31); + 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(32); + 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(33); + 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.AnnotationsProto.getDescriptor(); + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java new file mode 100644 index 00000000..0ccd98a8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequest.java @@ -0,0 +1,829 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteConnectionProfileRequest) + DeleteConnectionProfileRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteConnectionProfileRequest.newBuilder() to construct. + private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteConnectionProfileRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteConnectionProfileRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteConnectionProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteConnectionProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeleteConnectionProfileRequest build() { + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1.DeleteConnectionProfileRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DeleteConnectionProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DeleteConnectionProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the connection profile resource to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the connection profile resource to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeleteConnectionProfileRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..fb6fe83c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteConnectionProfileRequestOrBuilder.java @@ -0,0 +1,69 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for name. + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java new file mode 100644 index 00000000..3cfbf665 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequest.java @@ -0,0 +1,914 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeletePrivateConnectionRequest) + DeletePrivateConnectionRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeletePrivateConnectionRequest.newBuilder() to construct. + private DeletePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeletePrivateConnectionRequest() { + name_ = ""; + requestId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeletePrivateConnectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeletePrivateConnectionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + if (force_ != false) { + output.writeBool(3, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getForce()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.class, com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeletePrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeletePrivateConnectionRequest build() { + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + result.requestId_ = requestId_; + result.force_ = force_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DeletePrivateConnectionRequest other) { + if (other == com.google.cloud.datastream.v1.DeletePrivateConnectionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DeletePrivateConnectionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DeletePrivateConnectionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the private connectivity configuration to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the private connectivity configuration to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + 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 + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DeletePrivateConnectionRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java new file mode 100644 index 00000000..8e507313 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeletePrivateConnectionRequestOrBuilder.java @@ -0,0 +1,80 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for name. + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java new file mode 100644 index 00000000..bfd63d09 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequest.java @@ -0,0 +1,829 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteRouteRequest) + DeleteRouteRequestOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteRouteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteRouteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DeleteRouteRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DeleteRouteRequest.class, com.google.cloud.datastream.v1.DeleteRouteRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DeleteRouteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeleteRouteRequest build() { + com.google.cloud.datastream.v1.DeleteRouteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteRouteRequest other) { + if (other == com.google.cloud.datastream.v1.DeleteRouteRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DeleteRouteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DeleteRouteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the Route resource to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Route resource to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.DeleteRouteRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java new file mode 100644 index 00000000..eb3c2612 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteRouteRequestOrBuilder.java @@ -0,0 +1,69 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for name. + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java new file mode 100644 index 00000000..4012724d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequest.java @@ -0,0 +1,829 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DeleteStreamRequest) + DeleteStreamRequestOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DeleteStreamRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DeleteStreamRequest.class, com.google.cloud.datastream.v1.DeleteStreamRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DeleteStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + requestId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DeleteStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DeleteStreamRequest build() { + com.google.cloud.datastream.v1.DeleteStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + result.requestId_ = requestId_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DeleteStreamRequest other) { + if (other == com.google.cloud.datastream.v1.DeleteStreamRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DeleteStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DeleteStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The name of the stream resource to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the stream resource to delete.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes after the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.DeleteStreamRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java new file mode 100644 index 00000000..fa3991af --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DeleteStreamRequestOrBuilder.java @@ -0,0 +1,69 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for name. + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes after the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java new file mode 100644 index 00000000..3b865997 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfig.java @@ -0,0 +1,931 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DestinationConfig) + DestinationConfigOrBuilder { +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) { + return new DestinationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DestinationConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + destinationStreamConfigCase_ = 100; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_DESTINATION_CONFIG(100), + DESTINATIONSTREAMCONFIG_NOT_SET(0); + private final int value; + private DestinationStreamConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DestinationStreamConfigCase valueOf(int value) { + return forNumber(value); + } + + public static DestinationStreamConfigCase forNumber(int value) { + switch (value) { + 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 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) = { ... } + * @return The destinationConnectionProfile. + */ + @java.lang.Override + public java.lang.String getDestinationConnectionProfile() { + java.lang.Object ref = destinationConnectionProfile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for destinationConnectionProfile. + */ + @java.lang.Override + 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); + destinationConnectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * A configuration for how data should be loaded to Cloud Storage.
+   * 
+ * + * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESTINATION_CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getDestinationConnectionProfile().hashCode(); + switch (destinationStreamConfigCase_) { + case 100: + hash = (37 * hash) + GCS_DESTINATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGcsDestinationConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DestinationConfig.class, com.google.cloud.datastream.v1.DestinationConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DestinationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + destinationConnectionProfile_ = ""; + + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_DestinationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DestinationConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DestinationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DestinationConfig build() { + com.google.cloud.datastream.v1.DestinationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.destinationConnectionProfile_ = destinationConnectionProfile_; + if (destinationStreamConfigCase_ == 100) { + if (gcsDestinationConfigBuilder_ == null) { + result.destinationStreamConfig_ = destinationStreamConfig_; + } else { + result.destinationStreamConfig_ = gcsDestinationConfigBuilder_.build(); + } + } + result.destinationStreamConfigCase_ = destinationStreamConfigCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.DestinationConfig other) { + 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 DESTINATIONSTREAMCONFIG_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DestinationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DestinationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int destinationStreamConfigCase_ = 0; + private java.lang.Object destinationStreamConfig_; + public DestinationStreamConfigCase + getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber( + destinationStreamConfigCase_); + } + + public Builder clearDestinationStreamConfig() { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + onChanged(); + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + destinationConnectionProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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) = { ... } + * @return The bytes for destinationConnectionProfile. + */ + 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); + destinationConnectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The destinationConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setDestinationConnectionProfile( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for destinationConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setDestinationConnectionProfileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + 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_; + /** + *
+     * 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 + 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 (gcsDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 100) { + return (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_; + } + return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); + } else { + if (destinationStreamConfigCase_ == 100) { + return gcsDestinationConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); + } + } + /** + *
+     * 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) { + if (gcsDestinationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + destinationStreamConfig_ = value; + onChanged(); + } else { + gcsDestinationConfigBuilder_.setMessage(value); + } + destinationStreamConfigCase_ = 100; + return this; + } + /** + *
+     * 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.Builder builderForValue) { + if (gcsDestinationConfigBuilder_ == null) { + destinationStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + gcsDestinationConfigBuilder_.setMessage(builderForValue.build()); + } + destinationStreamConfigCase_ = 100; + 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) { + 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(); + } else { + destinationStreamConfig_ = value; + } + onChanged(); + } else { + if (destinationStreamConfigCase_ == 100) { + gcsDestinationConfigBuilder_.mergeFrom(value); + } + gcsDestinationConfigBuilder_.setMessage(value); + } + destinationStreamConfigCase_ = 100; + return this; + } + /** + *
+     * A configuration for how data should be loaded to Cloud Storage.
+     * 
+ * + * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + */ + public Builder clearGcsDestinationConfig() { + if (gcsDestinationConfigBuilder_ == null) { + if (destinationStreamConfigCase_ == 100) { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + onChanged(); + } + } else { + if (destinationStreamConfigCase_ == 100) { + destinationStreamConfigCase_ = 0; + destinationStreamConfig_ = null; + } + gcsDestinationConfigBuilder_.clear(); + } + 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() { + return getGcsDestinationConfigFieldBuilder().getBuilder(); + } + /** + *
+     * A configuration for how data should be loaded to Cloud Storage.
+     * 
+ * + * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { + if ((destinationStreamConfigCase_ == 100) && (gcsDestinationConfigBuilder_ != null)) { + return gcsDestinationConfigBuilder_.getMessageOrBuilder(); + } else { + if (destinationStreamConfigCase_ == 100) { + 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.
+     * 
+ * + * .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> + getGcsDestinationConfigFieldBuilder() { + if (gcsDestinationConfigBuilder_ == null) { + if (!(destinationStreamConfigCase_ == 100)) { + 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>( + (com.google.cloud.datastream.v1.GcsDestinationConfig) destinationStreamConfig_, + getParentForChildren(), + isClean()); + destinationStreamConfig_ = null; + } + destinationStreamConfigCase_ = 100; + onChanged();; + return gcsDestinationConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.DestinationConfig getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java new file mode 100644 index 00000000..b2be2fdd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DestinationConfigOrBuilder.java @@ -0,0 +1,60 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for destinationConnectionProfile. + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.GcsDestinationConfig gcs_destination_config = 100; + */ + com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java new file mode 100644 index 00000000..969245fd --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequest.java @@ -0,0 +1,2050 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileRequest) + DiscoverConnectionProfileRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DiscoverConnectionProfileRequest.newBuilder() to construct. + 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) { + return new DiscoverConnectionProfileRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DiscoverConnectionProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 24: { + hierarchyCase_ = 3; + hierarchy_ = input.readBool(); + break; + } + case 32: { + hierarchyCase_ = 4; + hierarchy_ = input.readInt32(); + break; + } + 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; + } + 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; + } + 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; + } + case 1610: { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 201; + target_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HierarchyCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataObjectCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * An ad-hoc connection profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + @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.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() { + java.lang.Object ref = ""; + if (targetCase_ == 201) { + ref = target_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 201) { + target_ = s; + } + return s; + } + } + /** + *
+   * A reference to an existing connection profile.
+   * 
+ * + * string connection_profile_name = 201; + * @return The bytes for connectionProfileName. + */ + 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); + if (targetCase_ == 201) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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 + public boolean getFullHierarchy() { + if (hierarchyCase_ == 3) { + return (java.lang.Boolean) hierarchy_; + } + return false; + } + + 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 + 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 + public int getHierarchyDepth() { + if (hierarchyCase_ == 4) { + return (java.lang.Integer) hierarchy_; + } + return 0; + } + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * Oracle RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + @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.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 + 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.getDefaultInstance(); + } + /** + *
+   * MySQL RDBMS to enrich with child data objects and metadata.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + @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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_)); + } + if (hierarchyCase_ == 4) { + output.writeInt32( + 4, (int)((java.lang.Integer) hierarchy_)); + } + if (dataObjectCase_ == 100) { + output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); + } + if (dataObjectCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + } + if (targetCase_ == 200) { + output.writeMessage(200, (com.google.cloud.datastream.v1.ConnectionProfile) target_); + } + if (targetCase_ == 201) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 201, target_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (hierarchyCase_ == 3) { + 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_)); + } + if (dataObjectCase_ == 100) { + 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_); + } + if (targetCase_ == 200) { + 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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + break; + case 201: + if (!getConnectionProfileName() + .equals(other.getConnectionProfileName())) return false; + break; + case 0: + default: + } + if (!getHierarchyCase().equals(other.getHierarchyCase())) return false; + switch (hierarchyCase_) { + case 3: + if (getFullHierarchy() + != other.getFullHierarchy()) return false; + break; + case 4: + if (getHierarchyDepth() + != other.getHierarchyDepth()) return false; + break; + case 0: + default: + } + if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; + switch (dataObjectCase_) { + case 100: + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; + break; + case 101: + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + switch (targetCase_) { + case 200: + hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfile().hashCode(); + break; + case 201: + hash = (37 * hash) + CONNECTION_PROFILE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfileName().hashCode(); + break; + case 0: + default: + } + switch (hierarchyCase_) { + case 3: + hash = (37 * hash) + FULL_HIERARCHY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getFullHierarchy()); + break; + case 4: + hash = (37 * hash) + HIERARCHY_DEPTH_FIELD_NUMBER; + hash = (53 * hash) + getHierarchyDepth(); + break; + case 0: + default: + } + switch (dataObjectCase_) { + case 100: + hash = (37 * hash) + ORACLE_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getOracleRdbms().hashCode(); + break; + case 101: + hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getMysqlRdbms().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest 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.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) + throws java.io.IOException { + 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, + 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.DiscoverConnectionProfileRequest 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.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + targetCase_ = 0; + target_ = null; + hierarchyCase_ = 0; + hierarchy_ = null; + dataObjectCase_ = 0; + dataObject_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest build() { + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + if (targetCase_ == 200) { + if (connectionProfileBuilder_ == null) { + result.target_ = target_; + } else { + result.target_ = connectionProfileBuilder_.build(); + } + } + if (targetCase_ == 201) { + result.target_ = target_; + } + if (hierarchyCase_ == 3) { + result.hierarchy_ = hierarchy_; + } + if (hierarchyCase_ == 4) { + result.hierarchy_ = hierarchy_; + } + if (dataObjectCase_ == 100) { + if (oracleRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = oracleRdbmsBuilder_.build(); + } + } + if (dataObjectCase_ == 101) { + if (mysqlRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = mysqlRdbmsBuilder_.build(); + } + } + result.targetCase_ = targetCase_; + result.hierarchyCase_ = hierarchyCase_; + result.dataObjectCase_ = dataObjectCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } 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; + 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; + } + } + switch (other.getHierarchyCase()) { + 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 DATAOBJECT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int targetCase_ = 0; + private java.lang.Object target_; + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int hierarchyCase_ = 0; + private java.lang.Object hierarchy_; + public HierarchyCase + getHierarchyCase() { + return HierarchyCase.forNumber( + hierarchyCase_); + } + + public Builder clearHierarchy() { + hierarchyCase_ = 0; + hierarchy_ = null; + onChanged(); + return this; + } + + private int dataObjectCase_ = 0; + private java.lang.Object dataObject_; + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); + } + + public Builder clearDataObject() { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + 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_; + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + * @return Whether the connectionProfile field is set. + */ + @java.lang.Override + 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 (connectionProfileBuilder_ == null) { + if (targetCase_ == 200) { + return (com.google.cloud.datastream.v1.ConnectionProfile) target_; + } + return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); + } else { + if (targetCase_ == 200) { + return connectionProfileBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); + } + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionProfile value) { + if (connectionProfileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + onChanged(); + } else { + connectionProfileBuilder_.setMessage(value); + } + targetCase_ = 200; + return this; + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + public Builder setConnectionProfile( + com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { + if (connectionProfileBuilder_ == null) { + target_ = builderForValue.build(); + onChanged(); + } else { + connectionProfileBuilder_.setMessage(builderForValue.build()); + } + targetCase_ = 200; + return this; + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + 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(); + } else { + target_ = value; + } + onChanged(); + } else { + if (targetCase_ == 200) { + connectionProfileBuilder_.mergeFrom(value); + } + connectionProfileBuilder_.setMessage(value); + } + targetCase_ = 200; + return this; + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + public Builder clearConnectionProfile() { + if (connectionProfileBuilder_ == null) { + if (targetCase_ == 200) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + } else { + if (targetCase_ == 200) { + targetCase_ = 0; + target_ = null; + } + connectionProfileBuilder_.clear(); + } + return this; + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfileBuilder() { + return getConnectionProfileFieldBuilder().getBuilder(); + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { + return connectionProfileBuilder_.getMessageOrBuilder(); + } else { + if (targetCase_ == 200) { + return (com.google.cloud.datastream.v1.ConnectionProfile) target_; + } + return com.google.cloud.datastream.v1.ConnectionProfile.getDefaultInstance(); + } + } + /** + *
+     * An ad-hoc connection profile configuration.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.ConnectionProfile) target_, + getParentForChildren(), + isClean()); + target_ = null; + } + targetCase_ = 200; + 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 + public boolean hasConnectionProfileName() { + return targetCase_ == 201; + } + /** + *
+     * A reference to an existing connection profile.
+     * 
+ * + * string connection_profile_name = 201; + * @return The connectionProfileName. + */ + @java.lang.Override + public java.lang.String getConnectionProfileName() { + java.lang.Object ref = ""; + if (targetCase_ == 201) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 201) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + 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); + if (targetCase_ == 201) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A reference to an existing connection profile.
+     * 
+ * + * string connection_profile_name = 201; + * @param value The connectionProfileName to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfileName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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() { + if (targetCase_ == 201) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + /** + *
+     * A reference to an existing connection profile.
+     * 
+ * + * string connection_profile_name = 201; + * @param value The bytes for connectionProfileName to set. + * @return This builder for chaining. + */ + public Builder setConnectionProfileNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 201; + target_ = value; + onChanged(); + return this; + } + + /** + *
+     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
+     * current level (FALSE).
+     * 
+ * + * bool full_hierarchy = 3; + * @return 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() { + if (hierarchyCase_ == 3) { + return (java.lang.Boolean) hierarchy_; + } + return false; + } + /** + *
+     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
+     * current level (FALSE).
+     * 
+ * + * bool full_hierarchy = 3; + * @param value The fullHierarchy to set. + * @return This builder for chaining. + */ + public Builder setFullHierarchy(boolean value) { + hierarchyCase_ = 3; + hierarchy_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
+     * current level (FALSE).
+     * 
+ * + * bool full_hierarchy = 3; + * @return This builder for chaining. + */ + public Builder clearFullHierarchy() { + if (hierarchyCase_ == 3) { + hierarchyCase_ = 0; + hierarchy_ = null; + onChanged(); + } + return this; + } + + /** + *
+     * 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() { + if (hierarchyCase_ == 4) { + return (java.lang.Integer) hierarchy_; + } + return 0; + } + /** + *
+     * The number of hierarchy levels below the current level to be retrieved.
+     * 
+ * + * int32 hierarchy_depth = 4; + * @param value The hierarchyDepth to set. + * @return This builder for chaining. + */ + public Builder setHierarchyDepth(int value) { + hierarchyCase_ = 4; + hierarchy_ = value; + onChanged(); + return this; + } + /** + *
+     * The number of hierarchy levels below the current level to be retrieved.
+     * 
+ * + * int32 hierarchy_depth = 4; + * @return This builder for chaining. + */ + public Builder clearHierarchyDepth() { + if (hierarchyCase_ == 4) { + hierarchyCase_ = 0; + hierarchy_ = null; + onChanged(); + } + 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_; + /** + *
+     * 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 + 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 (oracleRdbmsBuilder_ == null) { + if (dataObjectCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 100) { + return oracleRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } + } + /** + *
+     * Oracle RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { + if (oracleRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + oracleRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 100; + return this; + } + /** + *
+     * Oracle RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public Builder setOracleRdbms( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (oracleRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + oracleRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 100; + return this; + } + /** + *
+     * Oracle RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + 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(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 100) { + oracleRdbmsBuilder_.mergeFrom(value); + } + oracleRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 100; + return this; + } + /** + *
+     * Oracle RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public Builder clearOracleRdbms() { + if (oracleRdbmsBuilder_ == null) { + if (dataObjectCase_ == 100) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 100) { + dataObjectCase_ = 0; + dataObject_ = null; + } + oracleRdbmsBuilder_.clear(); + } + return this; + } + /** + *
+     * Oracle RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder() { + return getOracleRdbmsFieldBuilder().getBuilder(); + } + /** + *
+     * Oracle RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { + if ((dataObjectCase_ == 100) && (oracleRdbmsBuilder_ != null)) { + return oracleRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 100) { + 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.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 100; + 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_; + /** + *
+     * 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 + 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 (mysqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 101) { + return mysqlRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } + } + /** + *
+     * MySQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (mysqlRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + mysqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 101; + return this; + } + /** + *
+     * MySQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public Builder setMysqlRdbms( + com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { + if (mysqlRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + mysqlRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 101; + return this; + } + /** + *
+     * MySQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + 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(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 101) { + mysqlRdbmsBuilder_.mergeFrom(value); + } + mysqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 101; + return this; + } + /** + *
+     * MySQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public Builder clearMysqlRdbms() { + if (mysqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 101) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 101) { + dataObjectCase_ = 0; + dataObject_ = null; + } + mysqlRdbmsBuilder_.clear(); + } + return this; + } + /** + *
+     * MySQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() { + return getMysqlRdbmsFieldBuilder().getBuilder(); + } + /** + *
+     * MySQL RDBMS to enrich with child data objects and metadata.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { + if ((dataObjectCase_ == 101) && (mysqlRdbmsBuilder_ != null)) { + return mysqlRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 101) { + 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.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 101; + onChanged();; + return mysqlRdbmsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileRequest(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..ae824138 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileRequestOrBuilder.java @@ -0,0 +1,187 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 200; + */ + 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(); + + /** + *
+   * 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.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); + + 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.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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java new file mode 100644 index 00000000..ea892b5e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponse.java @@ -0,0 +1,1020 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.DiscoverConnectionProfileResponse) + DiscoverConnectionProfileResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use DiscoverConnectionProfileResponse.newBuilder() to construct. + private DiscoverConnectionProfileResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DiscoverConnectionProfileResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DiscoverConnectionProfileResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DiscoverConnectionProfileResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + 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; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataObjectCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * Enriched Oracle RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + @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.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 + 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.getDefaultInstance(); + } + /** + *
+   * Enriched MySQL RDBMS object.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + @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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (dataObjectCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataObjectCase_ == 100) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; + switch (dataObjectCase_) { + case 100: + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; + break; + case 101: + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataObjectCase_) { + case 100: + hash = (37 * hash) + ORACLE_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getOracleRdbms().hashCode(); + break; + case 101: + hash = (37 * hash) + MYSQL_RDBMS_FIELD_NUMBER; + hash = (53 * hash) + getMysqlRdbms().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parseFrom( + 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) + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse 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.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) + throws java.io.IOException { + 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, + 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.DiscoverConnectionProfileResponse 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.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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + dataObjectCase_ = 0; + dataObject_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse build() { + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse buildPartial() { + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse result = new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(this); + if (dataObjectCase_ == 100) { + if (oracleRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = oracleRdbmsBuilder_.build(); + } + } + if (dataObjectCase_ == 101) { + if (mysqlRdbmsBuilder_ == null) { + result.dataObject_ = dataObject_; + } else { + result.dataObject_ = mysqlRdbmsBuilder_.build(); + } + } + result.dataObjectCase_ = dataObjectCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } 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; + switch (other.getDataObjectCase()) { + case ORACLE_RDBMS: { + mergeOracleRdbms(other.getOracleRdbms()); + break; + } + case MYSQL_RDBMS: { + mergeMysqlRdbms(other.getMysqlRdbms()); + break; + } + case DATAOBJECT_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int dataObjectCase_ = 0; + private java.lang.Object dataObject_; + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); + } + + public Builder clearDataObject() { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + 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_; + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + * @return Whether the oracleRdbms field is set. + */ + @java.lang.Override + 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 (oracleRdbmsBuilder_ == null) { + if (dataObjectCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 100) { + return oracleRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) { + if (oracleRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + oracleRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 100; + return this; + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public Builder setOracleRdbms( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (oracleRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + oracleRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 100; + return this; + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + 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(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 100) { + oracleRdbmsBuilder_.mergeFrom(value); + } + oracleRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 100; + return this; + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public Builder clearOracleRdbms() { + if (oracleRdbmsBuilder_ == null) { + if (dataObjectCase_ == 100) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 100) { + dataObjectCase_ = 0; + dataObject_ = null; + } + oracleRdbmsBuilder_.clear(); + } + return this; + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder() { + return getOracleRdbmsFieldBuilder().getBuilder(); + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { + if ((dataObjectCase_ == 100) && (oracleRdbmsBuilder_ != null)) { + return oracleRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } + } + /** + *
+     * Enriched Oracle RDBMS object.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.OracleRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 100; + 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_; + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + * @return Whether the mysqlRdbms field is set. + */ + @java.lang.Override + 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 (mysqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } else { + if (dataObjectCase_ == 101) { + return mysqlRdbmsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (mysqlRdbmsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataObject_ = value; + onChanged(); + } else { + mysqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 101; + return this; + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public Builder setMysqlRdbms( + com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { + if (mysqlRdbmsBuilder_ == null) { + dataObject_ = builderForValue.build(); + onChanged(); + } else { + mysqlRdbmsBuilder_.setMessage(builderForValue.build()); + } + dataObjectCase_ = 101; + return this; + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + 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(); + } else { + dataObject_ = value; + } + onChanged(); + } else { + if (dataObjectCase_ == 101) { + mysqlRdbmsBuilder_.mergeFrom(value); + } + mysqlRdbmsBuilder_.setMessage(value); + } + dataObjectCase_ = 101; + return this; + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public Builder clearMysqlRdbms() { + if (mysqlRdbmsBuilder_ == null) { + if (dataObjectCase_ == 101) { + dataObjectCase_ = 0; + dataObject_ = null; + onChanged(); + } + } else { + if (dataObjectCase_ == 101) { + dataObjectCase_ = 0; + dataObject_ = null; + } + mysqlRdbmsBuilder_.clear(); + } + return this; + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() { + return getMysqlRdbmsFieldBuilder().getBuilder(); + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { + if ((dataObjectCase_ == 101) && (mysqlRdbmsBuilder_ != null)) { + return mysqlRdbmsBuilder_.getMessageOrBuilder(); + } else { + if (dataObjectCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_; + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } + } + /** + *
+     * Enriched MySQL RDBMS object.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.MysqlRdbms) dataObject_, + getParentForChildren(), + isClean()); + dataObject_ = null; + } + dataObjectCase_ = 101; + onChanged();; + return mysqlRdbmsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java new file mode 100644 index 00000000..3c55fe63 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DiscoverConnectionProfileResponseOrBuilder.java @@ -0,0 +1,65 @@ +// 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 + // @@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.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_rdbms = 100; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_rdbms = 101; + */ + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java new file mode 100644 index 00000000..12baab14 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Error.java @@ -0,0 +1,1498 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Error) + ErrorOrBuilder { +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_ = ""; + message_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Error(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Error( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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(); + + message_ = s; + break; + } + 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; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetDetails(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getErrorUuid() { + java.lang.Object ref = errorUuid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + errorUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean hasErrorTime() { + return errorTime_ != null; + } + /** + *
+   * The time when the error occurred.
+   * 
+ * + * .google.protobuf.Timestamp error_time = 4; + * @return The errorTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getErrorTime() { + return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + } + /** + *
+   * The time when the error occurred.
+   * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { + return getErrorTime(); + } + + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { + if (details_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); + } + return details_; + } + + 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 java.lang.NullPointerException(); } + return internalGetDetails().getMap().containsKey(key); + } + /** + * Use {@link #getDetailsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDetails() { + return getDetailsMap(); + } + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + @java.lang.Override + + public java.util.Map getDetailsMap() { + return internalGetDetails().getMap(); + } + /** + *
+   * Additional information about the error.
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + @java.lang.Override + + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorUuid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorUuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); + } + if (errorTime_ != null) { + output.writeMessage(4, getErrorTime()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDetails(), + DetailsDefaultEntryHolder.defaultEntry, + 5); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorUuid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorUuid_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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 (hasErrorTime() != other.hasErrorTime()) return false; + if (hasErrorTime()) { + if (!getErrorTime() + .equals(other.getErrorTime())) return false; + } + if (!internalGetDetails().equals( + other.internalGetDetails())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + ERROR_UUID_FIELD_NUMBER; + hash = (53 * hash) + getErrorUuid().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (hasErrorTime()) { + hash = (37 * hash) + ERROR_TIME_FIELD_NUMBER; + hash = (53 * hash) + getErrorTime().hashCode(); + } + if (!internalGetDetails().getMap().isEmpty()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + internalGetDetails().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + 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) + 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); + } + public static com.google.cloud.datastream.v1.Error 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.Error parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + 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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetDetails(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableDetails(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Error.class, com.google.cloud.datastream.v1.Error.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Error.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + reason_ = ""; + + errorUuid_ = ""; + + message_ = ""; + + if (errorTimeBuilder_ == null) { + errorTime_ = null; + } else { + errorTime_ = null; + errorTimeBuilder_ = null; + } + internalGetMutableDetails().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Error_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Error getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Error.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Error build() { + com.google.cloud.datastream.v1.Error result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Error buildPartial() { + com.google.cloud.datastream.v1.Error result = new com.google.cloud.datastream.v1.Error(this); + int from_bitField0_ = bitField0_; + result.reason_ = reason_; + result.errorUuid_ = errorUuid_; + result.message_ = message_; + if (errorTimeBuilder_ == null) { + result.errorTime_ = errorTime_; + } else { + result.errorTime_ = errorTimeBuilder_.build(); + } + result.details_ = internalGetDetails(); + result.details_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Error other) { + if (other == com.google.cloud.datastream.v1.Error.getDefaultInstance()) return this; + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + onChanged(); + } + if (!other.getErrorUuid().isEmpty()) { + errorUuid_ = other.errorUuid_; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.hasErrorTime()) { + mergeErrorTime(other.getErrorTime()); + } + internalGetMutableDetails().mergeFrom( + other.internalGetDetails()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.Error parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.Error) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A title that explains the reason for the error.
+     * 
+ * + * string reason = 1; + * @return The bytes for reason. + */ + 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); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A title that explains the reason for the error.
+     * 
+ * + * string reason = 1; + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + reason_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + errorUuid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = errorUuid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorUuid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A unique identifier for this specific error,
+     * allowing it to be traced throughout the system in logs and API responses.
+     * 
+ * + * string error_uuid = 2; + * @param value The errorUuid to set. + * @return This builder for chaining. + */ + public Builder setErrorUuid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + errorUuid_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A message containing more information about the error that occurred.
+     * 
+ * + * string message = 3; + * @return The bytes for message. + */ + 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); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A message containing more information about the error that occurred.
+     * 
+ * + * string message = 3; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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() { + if (errorTimeBuilder_ == null) { + return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + } else { + return errorTimeBuilder_.getMessage(); + } + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + public Builder setErrorTime(com.google.protobuf.Timestamp value) { + if (errorTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + errorTime_ = value; + onChanged(); + } else { + errorTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + public Builder setErrorTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (errorTimeBuilder_ == null) { + errorTime_ = builderForValue.build(); + onChanged(); + } else { + errorTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { + if (errorTimeBuilder_ == null) { + if (errorTime_ != null) { + errorTime_ = + com.google.protobuf.Timestamp.newBuilder(errorTime_).mergeFrom(value).buildPartial(); + } else { + errorTime_ = value; + } + onChanged(); + } else { + errorTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + public Builder clearErrorTime() { + if (errorTimeBuilder_ == null) { + errorTime_ = null; + onChanged(); + } else { + errorTime_ = null; + errorTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() { + + onChanged(); + return getErrorTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { + if (errorTimeBuilder_ != null) { + return errorTimeBuilder_.getMessageOrBuilder(); + } else { + return errorTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + } + } + /** + *
+     * The time when the error occurred.
+     * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + errorTime_ = null; + } + return errorTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { + if (details_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); + } + return details_; + } + private com.google.protobuf.MapField + internalGetMutableDetails() { + onChanged();; + if (details_ == null) { + details_ = com.google.protobuf.MapField.newMapField( + DetailsDefaultEntryHolder.defaultEntry); + } + if (!details_.isMutable()) { + details_ = details_.copy(); + } + return details_; + } + + 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 java.lang.NullPointerException(); } + return internalGetDetails().getMap().containsKey(key); + } + /** + * Use {@link #getDetailsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getDetails() { + return getDetailsMap(); + } + /** + *
+     * Additional information about the error.
+     * 
+ * + * map<string, string> details = 5; + */ + @java.lang.Override + + public java.util.Map getDetailsMap() { + return internalGetDetails().getMap(); + } + /** + *
+     * Additional information about the error.
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Additional information about the error.
+     * 
+ * + * map<string, string> details = 5; + */ + @java.lang.Override + + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDetails() { + 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 java.lang.NullPointerException(); } + internalGetMutableDetails().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java new file mode 100644 index 00000000..918b224f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ErrorOrBuilder.java @@ -0,0 +1,152 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Timestamp error_time = 4; + */ + com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder(); + + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + int getDetailsCount(); + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + boolean containsDetails( + java.lang.String key); + /** + * Use {@link #getDetailsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDetails(); + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + java.util.Map + getDetailsMap(); + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + + java.lang.String getDetailsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Additional information about the error.
+   * 
+ * + * map<string, string> details = 5; + */ + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java new file mode 100644 index 00000000..b1640be5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequest.java @@ -0,0 +1,853 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.FetchStaticIpsRequest) + FetchStaticIpsRequestOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FetchStaticIpsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FetchStaticIpsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getPageSize() { + return pageSize_; + } + + 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 + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.FetchStaticIpsRequest.class, com.google.cloud.datastream.v1.FetchStaticIpsRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.FetchStaticIpsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.FetchStaticIpsRequest build() { + com.google.cloud.datastream.v1.FetchStaticIpsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.FetchStaticIpsRequest other) { + if (other == com.google.cloud.datastream.v1.FetchStaticIpsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.FetchStaticIpsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.FetchStaticIpsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name for the location for which static IPs should be returned.
+     * Must be in the format `projects/*/locations/*`.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of Ips to return, will likely not be specified.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + 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; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A page token, received from a previous `ListStaticIps` call.
+     * will likely not be specified.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.FetchStaticIpsRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java new file mode 100644 index 00000000..4f7f2606 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsRequestOrBuilder.java @@ -0,0 +1,63 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface FetchStaticIpsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.FetchStaticIpsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the location for which static IPs should be returned.
+   * Must be in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the location for which static IPs should be returned.
+   * Must be in the format `projects/*/locations/*`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Maximum number of Ips to return, will likely not be specified.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * A page token, received from a previous `ListStaticIps` call.
+   * will likely not be specified.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * A page token, received from a previous `ListStaticIps` call.
+   * will likely not be specified.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java new file mode 100644 index 00000000..1024de99 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponse.java @@ -0,0 +1,847 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.FetchStaticIpsResponse) + FetchStaticIpsResponseOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FetchStaticIpsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FetchStaticIpsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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; + } + staticIps_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + staticIps_ = staticIps_.getUnmodifiableView(); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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() { + 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. + */ + 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) { + 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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < staticIps_.size(); i++) { + dataSize += computeStringSizeNoTag(staticIps_.getRaw(i)); + } + size += dataSize; + size += 1 * getStaticIpsList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getStaticIpsList() + .equals(other.getStaticIpsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStaticIpsCount() > 0) { + hash = (37 * hash) + STATIC_IPS_FIELD_NUMBER; + hash = (53 * hash) + getStaticIpsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.FetchStaticIpsResponse.class, com.google.cloud.datastream.v1.FetchStaticIpsResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.FetchStaticIpsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_FetchStaticIpsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.FetchStaticIpsResponse build() { + com.google.cloud.datastream.v1.FetchStaticIpsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + staticIps_ = staticIps_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.staticIps_ = staticIps_; + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.FetchStaticIpsResponse other) { + if (other == com.google.cloud.datastream.v1.FetchStaticIpsResponse.getDefaultInstance()) return this; + if (!other.staticIps_.isEmpty()) { + if (staticIps_.isEmpty()) { + staticIps_ = other.staticIps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStaticIpsIsMutable(); + staticIps_.addAll(other.staticIps_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.FetchStaticIpsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.FetchStaticIpsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + 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() { + 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. + */ + 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) { + return staticIps_.getByteString(index); + } + /** + *
+     * list of static ips by account
+     * 
+ * + * repeated string static_ips = 1; + * @param index The index to set the value at. + * @param value The staticIps to set. + * @return This builder for chaining. + */ + public Builder setStaticIps( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStaticIpsIsMutable(); + staticIps_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * list of static ips by account
+     * 
+ * + * repeated string static_ips = 1; + * @param value The staticIps to add. + * @return This builder for chaining. + */ + public Builder addStaticIps( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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) { + ensureStaticIpsIsMutable(); + 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() { + staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * list of static ips by account
+     * 
+ * + * repeated string static_ips = 1; + * @param value The bytes of the staticIps to add. + * @return This builder for chaining. + */ + public Builder addStaticIpsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStaticIpsIsMutable(); + staticIps_.add(value); + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token that can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.FetchStaticIpsResponse getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java new file mode 100644 index 00000000..128d3d63 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/FetchStaticIpsResponseOrBuilder.java @@ -0,0 +1,72 @@ +// 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 + // @@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(); + /** + *
+   * 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); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java new file mode 100644 index 00000000..1d54ff0e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivity.java @@ -0,0 +1,1340 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ForwardSshTunnelConnectivity) + ForwardSshTunnelConnectivityOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ForwardSshTunnelConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ForwardSshTunnelConnectivity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + hostname_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AuthenticationMethodCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getPort() { + return port_; + } + + 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() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 100) { + ref = authenticationMethod_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = s; + } + return s; + } + } + /** + *
+   * Input only. SSH password.
+   * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for password. + */ + 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); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 101) { + ref = authenticationMethod_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = s; + } + return s; + } + } + /** + *
+   * 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() { + 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); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, username_); + } + if (port_ != 0) { + output.writeInt32(3, port_); + } + if (authenticationMethodCase_ == 100) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, authenticationMethod_); + } + if (authenticationMethodCase_ == 101) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 101, authenticationMethod_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); + } + if (authenticationMethodCase_ == 100) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); + } + if (authenticationMethodCase_ == 101) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(101, authenticationMethod_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + break; + case 101: + if (!getPrivateKey() + .equals(other.getPrivateKey())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + switch (authenticationMethodCase_) { + case 100: + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + break; + case 101: + hash = (37 * hash) + PRIVATE_KEY_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKey().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.class, com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hostname_ = ""; + + username_ = ""; + + port_ = 0; + + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ForwardSshTunnelConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity build() { + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.hostname_ = hostname_; + result.username_ = username_; + result.port_ = port_; + if (authenticationMethodCase_ == 100) { + result.authenticationMethod_ = authenticationMethod_; + } + if (authenticationMethodCase_ == 101) { + result.authenticationMethod_ = authenticationMethod_; + } + result.authenticationMethodCase_ = authenticationMethodCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity other) { + if (other == com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.getDefaultInstance()) return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (other.getPort() != 0) { + 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; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int authenticationMethodCase_ = 0; + private java.lang.Object authenticationMethod_; + public AuthenticationMethodCase + getAuthenticationMethodCase() { + return AuthenticationMethodCase.forNumber( + authenticationMethodCase_); + } + + public Builder clearAuthenticationMethod() { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + 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; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Hostname for the SSH tunnel.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Username for the SSH tunnel.
+     * 
+ * + * string username = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + private int port_ ; + /** + *
+     * Port for the SSH tunnel, default value is 22.
+     * 
+ * + * int32 port = 3; + * @return The port. + */ + @java.lang.Override + 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 + 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 + public java.lang.String getPassword() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 100) { + ref = authenticationMethod_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + 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); + if (authenticationMethodCase_ == 100) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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() { + if (authenticationMethodCase_ == 100) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + } + return this; + } + /** + *
+     * Input only. SSH password.
+     * 
+ * + * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authenticationMethodCase_ = 100; + authenticationMethod_ = value; + onChanged(); + return this; + } + + /** + *
+     * 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 + 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 + public java.lang.String getPrivateKey() { + java.lang.Object ref = ""; + if (authenticationMethodCase_ == 101) { + ref = authenticationMethod_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + 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); + if (authenticationMethodCase_ == 101) { + authenticationMethod_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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() { + if (authenticationMethodCase_ == 101) { + authenticationMethodCase_ = 0; + authenticationMethod_ = null; + onChanged(); + } + return this; + } + /** + *
+     * Input only. SSH private key.
+     * 
+ * + * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The bytes for privateKey to set. + * @return This builder for chaining. + */ + public Builder setPrivateKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authenticationMethodCase_ = 101; + authenticationMethod_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java new file mode 100644 index 00000000..e636a456 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ForwardSshTunnelConnectivityOrBuilder.java @@ -0,0 +1,119 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java new file mode 100644 index 00000000..d5fd5fb2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfig.java @@ -0,0 +1,1514 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GcsDestinationConfig) + GcsDestinationConfigOrBuilder { +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) { + return new GcsDestinationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcsDestinationConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + path_ = s; + break; + } + 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(); + } + 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; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FileFormatCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + public java.lang.String getPath() { + java.lang.Object ref = path_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getFileRotationMb() { + return fileRotationMb_; + } + + 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 + 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_; + } + /** + *
+   * 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; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() { + return getFileRotationInterval(); + } + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * AVRO file format configuration.
+   * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + @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.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 + 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.getDefaultInstance(); + } + /** + *
+   * JSON file format configuration.
+   * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + @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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (fileRotationMb_ != 0) { + output.writeInt32(2, fileRotationMb_); + } + if (fileRotationInterval_ != null) { + output.writeMessage(3, getFileRotationInterval()); + } + if (fileFormatCase_ == 100) { + output.writeMessage(100, (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_); + } + if (fileFormatCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); + } + if (fileRotationMb_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, fileRotationMb_); + } + if (fileRotationInterval_ != null) { + 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_); + } + if (fileFormatCase_ == 101) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!getFileFormatCase().equals(other.getFileFormatCase())) return false; + switch (fileFormatCase_) { + case 100: + if (!getAvroFileFormat() + .equals(other.getAvroFileFormat())) return false; + break; + case 101: + if (!getJsonFileFormat() + .equals(other.getJsonFileFormat())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PATH_FIELD_NUMBER; + hash = (53 * hash) + getPath().hashCode(); + hash = (37 * hash) + FILE_ROTATION_MB_FIELD_NUMBER; + hash = (53 * hash) + getFileRotationMb(); + if (hasFileRotationInterval()) { + hash = (37 * hash) + FILE_ROTATION_INTERVAL_FIELD_NUMBER; + hash = (53 * hash) + getFileRotationInterval().hashCode(); + } + switch (fileFormatCase_) { + case 100: + hash = (37 * hash) + AVRO_FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getAvroFileFormat().hashCode(); + break; + case 101: + hash = (37 * hash) + JSON_FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getJsonFileFormat().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.GcsDestinationConfig parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GcsDestinationConfig.class, com.google.cloud.datastream.v1.GcsDestinationConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GcsDestinationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + path_ = ""; + + fileRotationMb_ = 0; + + if (fileRotationIntervalBuilder_ == null) { + fileRotationInterval_ = null; + } else { + fileRotationInterval_ = null; + fileRotationIntervalBuilder_ = null; + } + fileFormatCase_ = 0; + fileFormat_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsDestinationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GcsDestinationConfig build() { + com.google.cloud.datastream.v1.GcsDestinationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.path_ = path_; + result.fileRotationMb_ = fileRotationMb_; + if (fileRotationIntervalBuilder_ == null) { + result.fileRotationInterval_ = fileRotationInterval_; + } else { + result.fileRotationInterval_ = fileRotationIntervalBuilder_.build(); + } + if (fileFormatCase_ == 100) { + if (avroFileFormatBuilder_ == null) { + result.fileFormat_ = fileFormat_; + } else { + result.fileFormat_ = avroFileFormatBuilder_.build(); + } + } + if (fileFormatCase_ == 101) { + if (jsonFileFormatBuilder_ == null) { + result.fileFormat_ = fileFormat_; + } else { + result.fileFormat_ = jsonFileFormatBuilder_.build(); + } + } + result.fileFormatCase_ = fileFormatCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GcsDestinationConfig other) { + if (other == com.google.cloud.datastream.v1.GcsDestinationConfig.getDefaultInstance()) return this; + if (!other.getPath().isEmpty()) { + path_ = other.path_; + onChanged(); + } + if (other.getFileRotationMb() != 0) { + setFileRotationMb(other.getFileRotationMb()); + } + if (other.hasFileRotationInterval()) { + 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; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GcsDestinationConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GcsDestinationConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int fileFormatCase_ = 0; + private java.lang.Object fileFormat_; + public FileFormatCase + getFileFormatCase() { + return FileFormatCase.forNumber( + fileFormatCase_); + } + + public Builder clearFileFormat() { + fileFormatCase_ = 0; + fileFormat_ = null; + onChanged(); + 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; + java.lang.String s = bs.toStringUtf8(); + path_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Path inside the Cloud Storage bucket to write data to.
+     * 
+ * + * string path = 1; + * @return The bytes for path. + */ + 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); + path_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Path inside the Cloud Storage bucket to write data to.
+     * 
+ * + * string path = 1; + * @param value The path to set. + * @return This builder for chaining. + */ + public Builder setPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + path_ = value; + onChanged(); + return this; + } + + private int fileRotationMb_ ; + /** + *
+     * The maximum file size to be saved in the bucket.
+     * 
+ * + * int32 file_rotation_mb = 2; + * @return The fileRotationMb. + */ + @java.lang.Override + 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; + } + + 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_; + /** + *
+     * 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_; + } else { + return fileRotationIntervalBuilder_.getMessage(); + } + } + /** + *
+     * 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; + */ + public Builder setFileRotationInterval(com.google.protobuf.Duration value) { + if (fileRotationIntervalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileRotationInterval_ = value; + onChanged(); + } else { + fileRotationIntervalBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * 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; + */ + public Builder setFileRotationInterval( + com.google.protobuf.Duration.Builder builderForValue) { + if (fileRotationIntervalBuilder_ == null) { + fileRotationInterval_ = builderForValue.build(); + onChanged(); + } else { + fileRotationIntervalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * 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; + */ + public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) { + if (fileRotationIntervalBuilder_ == null) { + if (fileRotationInterval_ != null) { + fileRotationInterval_ = + com.google.protobuf.Duration.newBuilder(fileRotationInterval_).mergeFrom(value).buildPartial(); + } else { + fileRotationInterval_ = value; + } + onChanged(); + } else { + fileRotationIntervalBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * 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; + */ + public Builder clearFileRotationInterval() { + if (fileRotationIntervalBuilder_ == null) { + fileRotationInterval_ = null; + onChanged(); + } else { + fileRotationInterval_ = null; + fileRotationIntervalBuilder_ = null; + } + + return this; + } + /** + *
+     * 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; + */ + 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.
+     * 
+ * + * .google.protobuf.Duration file_rotation_interval = 3; + */ + public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder() { + if (fileRotationIntervalBuilder_ != null) { + return fileRotationIntervalBuilder_.getMessageOrBuilder(); + } else { + 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.
+     * 
+ * + * .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> + 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()); + 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_; + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + * @return Whether the avroFileFormat field is set. + */ + @java.lang.Override + 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 (avroFileFormatBuilder_ == null) { + if (fileFormatCase_ == 100) { + return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; + } + return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); + } else { + if (fileFormatCase_ == 100) { + return avroFileFormatBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); + } + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + public Builder setAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat value) { + if (avroFileFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileFormat_ = value; + onChanged(); + } else { + avroFileFormatBuilder_.setMessage(value); + } + fileFormatCase_ = 100; + return this; + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + public Builder setAvroFileFormat( + com.google.cloud.datastream.v1.AvroFileFormat.Builder builderForValue) { + if (avroFileFormatBuilder_ == null) { + fileFormat_ = builderForValue.build(); + onChanged(); + } else { + avroFileFormatBuilder_.setMessage(builderForValue.build()); + } + fileFormatCase_ = 100; + return this; + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + 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(); + } else { + fileFormat_ = value; + } + onChanged(); + } else { + if (fileFormatCase_ == 100) { + avroFileFormatBuilder_.mergeFrom(value); + } + avroFileFormatBuilder_.setMessage(value); + } + fileFormatCase_ = 100; + return this; + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + public Builder clearAvroFileFormat() { + if (avroFileFormatBuilder_ == null) { + if (fileFormatCase_ == 100) { + fileFormatCase_ = 0; + fileFormat_ = null; + onChanged(); + } + } else { + if (fileFormatCase_ == 100) { + fileFormatCase_ = 0; + fileFormat_ = null; + } + avroFileFormatBuilder_.clear(); + } + return this; + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + public com.google.cloud.datastream.v1.AvroFileFormat.Builder getAvroFileFormatBuilder() { + return getAvroFileFormatFieldBuilder().getBuilder(); + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { + if ((fileFormatCase_ == 100) && (avroFileFormatBuilder_ != null)) { + return avroFileFormatBuilder_.getMessageOrBuilder(); + } else { + if (fileFormatCase_ == 100) { + return (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_; + } + return com.google.cloud.datastream.v1.AvroFileFormat.getDefaultInstance(); + } + } + /** + *
+     * AVRO file format configuration.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.AvroFileFormat) fileFormat_, + getParentForChildren(), + isClean()); + fileFormat_ = null; + } + fileFormatCase_ = 100; + 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_; + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + * @return Whether the jsonFileFormat field is set. + */ + @java.lang.Override + 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 (jsonFileFormatBuilder_ == null) { + if (fileFormatCase_ == 101) { + return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; + } + return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); + } else { + if (fileFormatCase_ == 101) { + return jsonFileFormatBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); + } + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + public Builder setJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat value) { + if (jsonFileFormatBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fileFormat_ = value; + onChanged(); + } else { + jsonFileFormatBuilder_.setMessage(value); + } + fileFormatCase_ = 101; + return this; + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + public Builder setJsonFileFormat( + com.google.cloud.datastream.v1.JsonFileFormat.Builder builderForValue) { + if (jsonFileFormatBuilder_ == null) { + fileFormat_ = builderForValue.build(); + onChanged(); + } else { + jsonFileFormatBuilder_.setMessage(builderForValue.build()); + } + fileFormatCase_ = 101; + return this; + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + 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(); + } else { + fileFormat_ = value; + } + onChanged(); + } else { + if (fileFormatCase_ == 101) { + jsonFileFormatBuilder_.mergeFrom(value); + } + jsonFileFormatBuilder_.setMessage(value); + } + fileFormatCase_ = 101; + return this; + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + public Builder clearJsonFileFormat() { + if (jsonFileFormatBuilder_ == null) { + if (fileFormatCase_ == 101) { + fileFormatCase_ = 0; + fileFormat_ = null; + onChanged(); + } + } else { + if (fileFormatCase_ == 101) { + fileFormatCase_ = 0; + fileFormat_ = null; + } + jsonFileFormatBuilder_.clear(); + } + return this; + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + public com.google.cloud.datastream.v1.JsonFileFormat.Builder getJsonFileFormatBuilder() { + return getJsonFileFormatFieldBuilder().getBuilder(); + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { + if ((fileFormatCase_ == 101) && (jsonFileFormatBuilder_ != null)) { + return jsonFileFormatBuilder_.getMessageOrBuilder(); + } else { + if (fileFormatCase_ == 101) { + return (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_; + } + return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); + } + } + /** + *
+     * JSON file format configuration.
+     * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.JsonFileFormat) fileFormat_, + getParentForChildren(), + isClean()); + fileFormat_ = null; + } + fileFormatCase_ = 101; + onChanged();; + return jsonFileFormatBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.GcsDestinationConfig getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java new file mode 100644 index 00000000..289bb6f0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsDestinationConfigOrBuilder.java @@ -0,0 +1,125 @@ +// 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 + // @@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(); + + /** + *
+   * 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.
+   * 
+ * + * .google.protobuf.Duration file_rotation_interval = 3; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.JsonFileFormat json_file_format = 101; + */ + com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder(); + + public com.google.cloud.datastream.v1.GcsDestinationConfig.FileFormatCase getFileFormatCase(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java new file mode 100644 index 00000000..dfaeb240 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfile.java @@ -0,0 +1,759 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GcsProfile) + GcsProfileOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GcsProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GcsProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getBucket() { + java.lang.Object ref = bucket_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getRootPath() { + java.lang.Object ref = rootPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + rootPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rootPath_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucket_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucket_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rootPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rootPath_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getBucket() + .equals(other.getBucket())) return false; + if (!getRootPath() + .equals(other.getRootPath())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + hash = (37 * hash) + ROOT_PATH_FIELD_NUMBER; + hash = (53 * hash) + getRootPath().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.GcsProfile 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GcsProfile.class, com.google.cloud.datastream.v1.GcsProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GcsProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bucket_ = ""; + + rootPath_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_GcsProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GcsProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GcsProfile build() { + com.google.cloud.datastream.v1.GcsProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.bucket_ = bucket_; + result.rootPath_ = rootPath_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GcsProfile other) { + if (other == com.google.cloud.datastream.v1.GcsProfile.getDefaultInstance()) return this; + if (!other.getBucket().isEmpty()) { + bucket_ = other.bucket_; + onChanged(); + } + if (!other.getRootPath().isEmpty()) { + rootPath_ = other.rootPath_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GcsProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GcsProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + bucket_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = bucket_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + bucket_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The Cloud Storage bucket name.
+     * 
+ * + * string bucket = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The bucket to set. + * @return This builder for chaining. + */ + public Builder setBucket( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bucket_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + rootPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The root path inside the Cloud Storage bucket.
+     * 
+ * + * string root_path = 2; + * @return The bytes for rootPath. + */ + 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); + rootPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The root path inside the Cloud Storage bucket.
+     * 
+ * + * string root_path = 2; + * @param value The rootPath to set. + * @return This builder for chaining. + */ + public Builder setRootPath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rootPath_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java new file mode 100644 index 00000000..6d170ffc --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GcsProfileOrBuilder.java @@ -0,0 +1,49 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java new file mode 100644 index 00000000..fee04e87 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequest.java @@ -0,0 +1,593 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetConnectionProfileRequest) + GetConnectionProfileRequestOrBuilder { +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) { + return new GetConnectionProfileRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetConnectionProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.GetConnectionProfileRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GetConnectionProfileRequest.class, com.google.cloud.datastream.v1.GetConnectionProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GetConnectionProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetConnectionProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetConnectionProfileRequest build() { + com.google.cloud.datastream.v1.GetConnectionProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GetConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1.GetConnectionProfileRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GetConnectionProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GetConnectionProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the connection profile resource to get.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetConnectionProfileRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..cbd87355 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetConnectionProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java new file mode 100644 index 00000000..15af4999 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequest.java @@ -0,0 +1,593 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetPrivateConnectionRequest) + GetPrivateConnectionRequestOrBuilder { +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) { + return new GetPrivateConnectionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetPrivateConnectionRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.GetPrivateConnectionRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GetPrivateConnectionRequest.class, com.google.cloud.datastream.v1.GetPrivateConnectionRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GetPrivateConnectionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetPrivateConnectionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetPrivateConnectionRequest build() { + com.google.cloud.datastream.v1.GetPrivateConnectionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GetPrivateConnectionRequest other) { + if (other == com.google.cloud.datastream.v1.GetPrivateConnectionRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GetPrivateConnectionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GetPrivateConnectionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the  private connectivity configuration to get.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetPrivateConnectionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..277aaf46 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetPrivateConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java new file mode 100644 index 00000000..19556bc6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequest.java @@ -0,0 +1,593 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetRouteRequest) + GetRouteRequestOrBuilder { +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) { + return new GetRouteRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetRouteRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.GetRouteRequest 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GetRouteRequest.class, com.google.cloud.datastream.v1.GetRouteRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GetRouteRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetRouteRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GetRouteRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetRouteRequest build() { + com.google.cloud.datastream.v1.GetRouteRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GetRouteRequest other) { + if (other == com.google.cloud.datastream.v1.GetRouteRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GetRouteRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GetRouteRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the Route resource to get.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetRouteRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..ee7f97b7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetRouteRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java new file mode 100644 index 00000000..6e768baf --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequest.java @@ -0,0 +1,593 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetStreamObjectRequest) + GetStreamObjectRequestOrBuilder { +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) { + return new GetStreamObjectRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetStreamObjectRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.GetStreamObjectRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GetStreamObjectRequest.class, com.google.cloud.datastream.v1.GetStreamObjectRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GetStreamObjectRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamObjectRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetStreamObjectRequest build() { + com.google.cloud.datastream.v1.GetStreamObjectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GetStreamObjectRequest other) { + if (other == com.google.cloud.datastream.v1.GetStreamObjectRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GetStreamObjectRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GetStreamObjectRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the stream object resource to get.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetStreamObjectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..4afde35b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamObjectRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetStreamObjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamObjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream object resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the stream object resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java new file mode 100644 index 00000000..099b3ed1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequest.java @@ -0,0 +1,593 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.GetStreamRequest) + GetStreamRequestOrBuilder { +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) { + return new GetStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.GetStreamRequest 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.GetStreamRequest.class, com.google.cloud.datastream.v1.GetStreamRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.GetStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_GetStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetStreamRequest build() { + com.google.cloud.datastream.v1.GetStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.GetStreamRequest other) { + if (other == com.google.cloud.datastream.v1.GetStreamRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.GetStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.GetStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The name of the stream resource to get.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.GetStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..d61ac09e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/GetStreamRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface GetStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GetStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java new file mode 100644 index 00000000..c8d8f186 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormat.java @@ -0,0 +1,965 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.JsonFileFormat) + JsonFileFormatOrBuilder { +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; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new JsonFileFormat(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private JsonFileFormat( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * Unspecified schema file format.
+     * 
+ * + * SCHEMA_FILE_FORMAT_UNSPECIFIED = 0; + */ + SCHEMA_FILE_FORMAT_UNSPECIFIED(0), + /** + *
+     * Do not attach schema file.
+     * 
+ * + * NO_SCHEMA_FILE = 1; + */ + NO_SCHEMA_FILE(1), + /** + *
+     * Avro schema format.
+     * 
+ * + * AVRO_SCHEMA_FILE = 2; + */ + AVRO_SCHEMA_FILE(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified schema file format.
+     * 
+ * + * SCHEMA_FILE_FORMAT_UNSPECIFIED = 0; + */ + public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; + /** + *
+     * Do not attach schema file.
+     * 
+ * + * NO_SCHEMA_FILE = 1; + */ + public static final int NO_SCHEMA_FILE_VALUE = 1; + /** + *
+     * Avro schema format.
+     * 
+ * + * AVRO_SCHEMA_FILE = 2; + */ + public static final int AVRO_SCHEMA_FILE_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SchemaFileFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1.JsonFileFormat.getDescriptor().getEnumTypes().get(0); + } + + private static final SchemaFileFormat[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SchemaFileFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.JsonFileFormat.SchemaFileFormat) + } + + /** + *
+   * Json file compression.
+   * 
+ * + * Protobuf enum {@code google.cloud.datastream.v1.JsonFileFormat.JsonCompression} + */ + public enum JsonCompression + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * Unspecified json file compression.
+     * 
+ * + * JSON_COMPRESSION_UNSPECIFIED = 0; + */ + JSON_COMPRESSION_UNSPECIFIED(0), + /** + *
+     * Do not compress JSON file.
+     * 
+ * + * NO_COMPRESSION = 1; + */ + NO_COMPRESSION(1), + /** + *
+     * Gzip compression.
+     * 
+ * + * GZIP = 2; + */ + GZIP(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified json file compression.
+     * 
+ * + * JSON_COMPRESSION_UNSPECIFIED = 0; + */ + public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; + /** + *
+     * Do not compress JSON file.
+     * 
+ * + * NO_COMPRESSION = 1; + */ + public static final int NO_COMPRESSION_VALUE = 1; + /** + *
+     * Gzip compression.
+     * 
+ * + * GZIP = 2; + */ + public static final int GZIP_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static JsonCompression valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1.JsonFileFormat.getDescriptor().getEnumTypes().get(1); + } + + private static final JsonCompression[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private JsonCompression(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.JsonFileFormat.JsonCompression) + } + + 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; + * @return The enum numeric value on the wire for schemaFileFormat. + */ + @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; + * @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; + } + + 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() { + 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() { + @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; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @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()) { + output.writeEnum(1, schemaFileFormat_); + } + if (compression_ != com.google.cloud.datastream.v1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { + output.writeEnum(2, compression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + 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 (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; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (schemaFileFormat_ != other.schemaFileFormat_) return false; + if (compression_ != other.compression_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_FILE_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + schemaFileFormat_; + hash = (37 * hash) + COMPRESSION_FIELD_NUMBER; + hash = (53 * hash) + compression_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.JsonFileFormat 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.JsonFileFormat.class, com.google.cloud.datastream.v1.JsonFileFormat.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.JsonFileFormat.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + schemaFileFormat_ = 0; + + compression_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_JsonFileFormat_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormat getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.JsonFileFormat build() { + com.google.cloud.datastream.v1.JsonFileFormat result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.schemaFileFormat_ = schemaFileFormat_; + result.compression_ = compression_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.JsonFileFormat other) { + if (other == com.google.cloud.datastream.v1.JsonFileFormat.getDefaultInstance()) return this; + if (other.schemaFileFormat_ != 0) { + setSchemaFileFormatValue(other.getSchemaFileFormatValue()); + } + if (other.compression_ != 0) { + setCompressionValue(other.getCompressionValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.JsonFileFormat parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.JsonFileFormat) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int schemaFileFormat_ = 0; + /** + *
+     * The schema file format along JSON data files.
+     * 
+ * + * .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() { + return schemaFileFormat_; + } + /** + *
+     * The schema file format along JSON data files.
+     * 
+ * + * .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; + * @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; + } + /** + *
+     * The schema file format along JSON data files.
+     * 
+ * + * .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) { + 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; + * @return This builder for chaining. + */ + public Builder clearSchemaFileFormat() { + + schemaFileFormat_ = 0; + onChanged(); + return this; + } + + 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() { + 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; + } + /** + *
+     * 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) { + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java new file mode 100644 index 00000000..494d2d98 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/JsonFileFormatOrBuilder.java @@ -0,0 +1,47 @@ +// 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 + // @@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; + * @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; + * @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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java new file mode 100644 index 00000000..42b8c6ea --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequest.java @@ -0,0 +1,1200 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListConnectionProfilesRequest) + ListConnectionProfilesRequestOrBuilder { +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_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListConnectionProfilesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListConnectionProfilesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + pageToken_ = s; + break; + } + case 34: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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.
+   * The maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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.
+   * When paginating, all other parameters provided to `ListConnectionProfiles`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   * When paginating, all other parameters provided to `ListConnectionProfiles`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListConnectionProfilesRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1.ListConnectionProfilesRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListConnectionProfilesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListConnectionProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListConnectionProfilesRequest build() { + com.google.cloud.datastream.v1.ListConnectionProfilesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesRequest other) { + if (other == com.google.cloud.datastream.v1.ListConnectionProfilesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListConnectionProfilesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListConnectionProfilesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of connection profiles.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of connection profiles.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of connection profiles to return.
+     * If unspecified, at most 50 connection profiles will be returned.
+     * The maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of connection profiles to return.
+     * If unspecified, at most 50 connection profiles will be returned.
+     * 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 connection profiles to return.
+     * If unspecified, at most 50 connection profiles will be returned.
+     * 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; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Page token received from a previous `ListConnectionProfiles` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConnectionProfiles`
+     * must match the call that provided the page token.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Page token received from a previous `ListConnectionProfiles` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConnectionProfiles`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Page token received from a previous `ListConnectionProfiles` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConnectionProfiles`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Page token received from a previous `ListConnectionProfiles` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConnectionProfiles`
+     * must match the call that provided the page token.
+     * 
+ * + * 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.
+     * When paginating, all other parameters provided to `ListConnectionProfiles`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListConnectionProfilesRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java new file mode 100644 index 00000000..4981775b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesRequestOrBuilder.java @@ -0,0 +1,107 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of connection profiles to return.
+   * If unspecified, at most 50 connection profiles will be returned.
+   * 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 `ListConnectionProfiles` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConnectionProfiles`
+   * must match the call that provided the page token.
+   * 
+ * + * 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.
+   * When paginating, all other parameters provided to `ListConnectionProfiles`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java new file mode 100644 index 00000000..0234487a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponse.java @@ -0,0 +1,1287 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListConnectionProfilesResponse) + ListConnectionProfilesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListConnectionProfilesResponse.newBuilder() to construct. + private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListConnectionProfilesResponse() { + connectionProfiles_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListConnectionProfilesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListConnectionProfilesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + 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; + } + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + @java.lang.Override + public java.util.List getConnectionProfilesList() { + return connectionProfiles_; + } + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + @java.lang.Override + public java.util.List + getConnectionProfilesOrBuilderList() { + return connectionProfiles_; + } + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + @java.lang.Override + public int getConnectionProfilesCount() { + return connectionProfiles_.size(); + } + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(int index) { + return connectionProfiles_.get(index); + } + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < connectionProfiles_.size(); 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_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConnectionProfilesCount() > 0) { + hash = (37 * hash) + CONNECTION_PROFILES_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfilesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListConnectionProfilesResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListConnectionProfilesResponse.class, com.google.cloud.datastream.v1.ListConnectionProfilesResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListConnectionProfilesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConnectionProfilesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (connectionProfilesBuilder_ == null) { + connectionProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + connectionProfilesBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListConnectionProfilesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListConnectionProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListConnectionProfilesResponse build() { + com.google.cloud.datastream.v1.ListConnectionProfilesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (connectionProfilesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = java.util.Collections.unmodifiableList(connectionProfiles_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.connectionProfiles_ = connectionProfiles_; + } else { + result.connectionProfiles_ = connectionProfilesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListConnectionProfilesResponse other) { + if (other == com.google.cloud.datastream.v1.ListConnectionProfilesResponse.getDefaultInstance()) return this; + if (connectionProfilesBuilder_ == null) { + if (!other.connectionProfiles_.isEmpty()) { + if (connectionProfiles_.isEmpty()) { + connectionProfiles_ = other.connectionProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.addAll(other.connectionProfiles_); + } + onChanged(); + } + } else { + if (!other.connectionProfiles_.isEmpty()) { + if (connectionProfilesBuilder_.isEmpty()) { + connectionProfilesBuilder_.dispose(); + connectionProfilesBuilder_ = null; + connectionProfiles_ = other.connectionProfiles_; + bitField0_ = (bitField0_ & ~0x00000001); + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionProfilesFieldBuilder() : null; + } else { + connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListConnectionProfilesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListConnectionProfilesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List connectionProfiles_ = + java.util.Collections.emptyList(); + private void ensureConnectionProfilesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public java.util.List getConnectionProfilesList() { + if (connectionProfilesBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectionProfiles_); + } else { + return connectionProfilesBuilder_.getMessageList(); + } + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public int getConnectionProfilesCount() { + if (connectionProfilesBuilder_ == null) { + return connectionProfiles_.size(); + } else { + return connectionProfilesBuilder_.getCount(); + } + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(int index) { + if (connectionProfilesBuilder_ == null) { + return connectionProfiles_.get(index); + } else { + return connectionProfilesBuilder_.getMessage(index); + } + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder setConnectionProfiles( + int index, com.google.cloud.datastream.v1.ConnectionProfile value) { + if (connectionProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionProfilesIsMutable(); + connectionProfiles_.set(index, value); + onChanged(); + } else { + connectionProfilesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder setConnectionProfiles( + int index, com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionProfilesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder addConnectionProfiles(com.google.cloud.datastream.v1.ConnectionProfile value) { + if (connectionProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(value); + onChanged(); + } else { + connectionProfilesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder addConnectionProfiles( + int index, com.google.cloud.datastream.v1.ConnectionProfile value) { + if (connectionProfilesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(index, value); + onChanged(); + } else { + connectionProfilesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder addConnectionProfiles( + com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(builderForValue.build()); + onChanged(); + } else { + connectionProfilesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder addConnectionProfiles( + int index, com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionProfilesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder addAllConnectionProfiles( + java.lang.Iterable values) { + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectionProfiles_); + onChanged(); + } else { + connectionProfilesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder clearConnectionProfiles() { + if (connectionProfilesBuilder_ == null) { + connectionProfiles_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + connectionProfilesBuilder_.clear(); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public Builder removeConnectionProfiles(int index) { + if (connectionProfilesBuilder_ == null) { + ensureConnectionProfilesIsMutable(); + connectionProfiles_.remove(index); + onChanged(); + } else { + connectionProfilesBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionProfilesBuilder( + int index) { + return getConnectionProfilesFieldBuilder().getBuilder(index); + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( + int index) { + if (connectionProfilesBuilder_ == null) { + 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() { + if (connectionProfilesBuilder_ != null) { + return connectionProfilesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectionProfiles_); + } + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * 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()); + } + /** + *
+     * List of connection profiles.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + public com.google.cloud.datastream.v1.ConnectionProfile.Builder addConnectionProfilesBuilder( + int index) { + 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() { + 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> + 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>( + connectionProfiles_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + connectionProfiles_ = null; + } + return connectionProfilesBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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) { + ensureUnreachableIsMutable(); + 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() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListConnectionProfilesResponse(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java new file mode 100644 index 00000000..e8c75079 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListConnectionProfilesResponseOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@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(); + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(int index); + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + int getConnectionProfilesCount(); + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + java.util.List + getConnectionProfilesOrBuilderList(); + /** + *
+   * List of connection profiles.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ConnectionProfile connection_profiles = 1; + */ + com.google.cloud.datastream.v1.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(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java new file mode 100644 index 00000000..6926978b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequest.java @@ -0,0 +1,1211 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListPrivateConnectionsRequest) + ListPrivateConnectionsRequestOrBuilder { +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_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPrivateConnectionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListPrivateConnectionsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + pageToken_ = s; + break; + } + case 34: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * returned. The maximum value is 1000; values above 1000 will be coerced to
+   * 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListPrivateConnectionsRequest build() { + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsRequest other) { + if (other == com.google.cloud.datastream.v1.ListPrivateConnectionsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListPrivateConnectionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListPrivateConnectionsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of private connectivity configurations.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of private connectivity configurations.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of private connectivity configurations to return.
+     * If unspecified, at most 50 private connectivity configurations that will be
+     * returned. The maximum value is 1000; values above 1000 will be coerced to
+     * 1000.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of private connectivity configurations to return.
+     * If unspecified, at most 50 private connectivity configurations that will be
+     * returned. 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 private connectivity configurations to return.
+     * If unspecified, at most 50 private connectivity configurations that will be
+     * returned. 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; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Page token received from a previous `ListPrivateConnections` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * 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.
+     * When paginating, all other parameters provided to
+     * `ListPrivateConnections` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListPrivateConnectionsRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java new file mode 100644 index 00000000..79d053a5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsRequestOrBuilder.java @@ -0,0 +1,110 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of private connectivity configurations to return.
+   * If unspecified, at most 50 private connectivity configurations that will be
+   * returned. 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 `ListPrivateConnections` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * 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.
+   * When paginating, all other parameters provided to
+   * `ListPrivateConnections` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java new file mode 100644 index 00000000..b100774c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponse.java @@ -0,0 +1,1287 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListPrivateConnectionsResponse) + ListPrivateConnectionsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListPrivateConnectionsResponse.newBuilder() to construct. + private ListPrivateConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListPrivateConnectionsResponse() { + privateConnections_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListPrivateConnectionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListPrivateConnectionsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + 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; + } + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public java.util.List getPrivateConnectionsList() { + return privateConnections_; + } + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public java.util.List + getPrivateConnectionsOrBuilderList() { + return privateConnections_; + } + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public int getPrivateConnectionsCount() { + return privateConnections_.size(); + } + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(int index) { + return privateConnections_.get(index); + } + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < privateConnections_.size(); 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_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getPrivateConnectionsCount() > 0) { + hash = (37 * hash) + PRIVATE_CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnectionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.class, com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPrivateConnectionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (privateConnectionsBuilder_ == null) { + privateConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + privateConnectionsBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListPrivateConnectionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListPrivateConnectionsResponse build() { + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (privateConnectionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + privateConnections_ = java.util.Collections.unmodifiableList(privateConnections_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.privateConnections_ = privateConnections_; + } else { + result.privateConnections_ = privateConnectionsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListPrivateConnectionsResponse other) { + if (other == com.google.cloud.datastream.v1.ListPrivateConnectionsResponse.getDefaultInstance()) return this; + if (privateConnectionsBuilder_ == null) { + if (!other.privateConnections_.isEmpty()) { + if (privateConnections_.isEmpty()) { + privateConnections_ = other.privateConnections_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrivateConnectionsIsMutable(); + privateConnections_.addAll(other.privateConnections_); + } + onChanged(); + } + } else { + if (!other.privateConnections_.isEmpty()) { + if (privateConnectionsBuilder_.isEmpty()) { + privateConnectionsBuilder_.dispose(); + privateConnectionsBuilder_ = null; + privateConnections_ = other.privateConnections_; + bitField0_ = (bitField0_ & ~0x00000001); + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPrivateConnectionsFieldBuilder() : null; + } else { + privateConnectionsBuilder_.addAllMessages(other.privateConnections_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListPrivateConnectionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListPrivateConnectionsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List privateConnections_ = + java.util.Collections.emptyList(); + private void ensurePrivateConnectionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public java.util.List getPrivateConnectionsList() { + if (privateConnectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(privateConnections_); + } else { + return privateConnectionsBuilder_.getMessageList(); + } + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public int getPrivateConnectionsCount() { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.size(); + } else { + return privateConnectionsBuilder_.getCount(); + } + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(int index) { + if (privateConnectionsBuilder_ == null) { + return privateConnections_.get(index); + } else { + return privateConnectionsBuilder_.getMessage(index); + } + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder setPrivateConnections( + int index, com.google.cloud.datastream.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.set(index, value); + onChanged(); + } else { + privateConnectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder setPrivateConnections( + int index, com.google.cloud.datastream.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.set(index, builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections(com.google.cloud.datastream.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(value); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections( + int index, com.google.cloud.datastream.v1.PrivateConnection value) { + if (privateConnectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(index, value); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections( + com.google.cloud.datastream.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder addPrivateConnections( + int index, com.google.cloud.datastream.v1.PrivateConnection.Builder builderForValue) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.add(index, builderForValue.build()); + onChanged(); + } else { + privateConnectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder addAllPrivateConnections( + java.lang.Iterable values) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privateConnections_); + onChanged(); + } else { + privateConnectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder clearPrivateConnections() { + if (privateConnectionsBuilder_ == null) { + privateConnections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + privateConnectionsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public Builder removePrivateConnections(int index) { + if (privateConnectionsBuilder_ == null) { + ensurePrivateConnectionsIsMutable(); + privateConnections_.remove(index); + onChanged(); + } else { + privateConnectionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { + if (privateConnectionsBuilder_ == null) { + 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() { + if (privateConnectionsBuilder_ != null) { + return privateConnectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(privateConnections_); + } + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * 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()); + } + /** + *
+     * List of private connectivity configurations.
+     * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + public com.google.cloud.datastream.v1.PrivateConnection.Builder addPrivateConnectionsBuilder( + int index) { + 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() { + 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> + 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>( + privateConnections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + privateConnections_ = null; + } + return privateConnectionsBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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) { + ensureUnreachableIsMutable(); + 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() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.ListPrivateConnectionsResponse(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java new file mode 100644 index 00000000..8b26670c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListPrivateConnectionsResponseOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@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(); + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(int index); + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + int getPrivateConnectionsCount(); + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + java.util.List + getPrivateConnectionsOrBuilderList(); + /** + *
+   * List of private connectivity configurations.
+   * 
+ * + * repeated .google.cloud.datastream.v1.PrivateConnection private_connections = 1; + */ + com.google.cloud.datastream.v1.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(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java new file mode 100644 index 00000000..e1d5d3da --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequest.java @@ -0,0 +1,1211 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListRoutesRequest) + ListRoutesRequestOrBuilder { +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_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListRoutesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListRoutesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + pageToken_ = s; + break; + } + case 34: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * will be returned. The maximum value is 1000; values above 1000 will be
+   * coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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.
+   * When paginating, all other parameters provided to
+   * `ListRoutes` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   * When paginating, all other parameters provided to
+   * `ListRoutes` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListRoutesRequest.class, com.google.cloud.datastream.v1.ListRoutesRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListRoutesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListRoutesRequest build() { + com.google.cloud.datastream.v1.ListRoutesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesRequest other) { + if (other == com.google.cloud.datastream.v1.ListRoutesRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListRoutesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListRoutesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of Routess.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of Routess.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of Routes to return. The service may return
+     * fewer than this value. If unspecified, at most 50 Routes
+     * will be returned. The maximum value is 1000; values above 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + 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
+     * will be returned. 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 Routes to return. The service may return
+     * fewer than this value. If unspecified, at most 50 Routes
+     * will be returned. 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; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Page token received from a previous `ListRoutes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListRoutes` must match the call that provided the page
+     * token.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Page token received from a previous `ListRoutes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListRoutes` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Page token received from a previous `ListRoutes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListRoutes` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Page token received from a previous `ListRoutes` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListRoutes` must match the call that provided the page
+     * token.
+     * 
+ * + * 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.
+     * When paginating, all other parameters provided to
+     * `ListRoutes` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ListRoutesRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java new file mode 100644 index 00000000..00650598 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesRequestOrBuilder.java @@ -0,0 +1,110 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + 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
+   * will be returned. 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 `ListRoutes` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListRoutes` must match the call that provided the page
+   * token.
+   * 
+ * + * 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.
+   * When paginating, all other parameters provided to
+   * `ListRoutes` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java new file mode 100644 index 00000000..7f76baf3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponse.java @@ -0,0 +1,1287 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListRoutesResponse) + ListRoutesResponseOrBuilder { +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_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListRoutesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListRoutesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + 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; + } + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + @java.lang.Override + public java.util.List getRoutesList() { + return routes_; + } + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + @java.lang.Override + public java.util.List + getRoutesOrBuilderList() { + return routes_; + } + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + @java.lang.Override + public int getRoutesCount() { + return routes_.size(); + } + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Route getRoutes(int index) { + return routes_.get(index); + } + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + @java.lang.Override + 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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < routes_.size(); 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_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRoutesCount() > 0) { + hash = (37 * hash) + ROUTES_FIELD_NUMBER; + hash = (53 * hash) + getRoutesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListRoutesResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListRoutesResponse.class, com.google.cloud.datastream.v1.ListRoutesResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListRoutesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRoutesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + routesBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListRoutesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListRoutesResponse build() { + com.google.cloud.datastream.v1.ListRoutesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (routesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + routes_ = java.util.Collections.unmodifiableList(routes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.routes_ = routes_; + } else { + result.routes_ = routesBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListRoutesResponse other) { + if (other == com.google.cloud.datastream.v1.ListRoutesResponse.getDefaultInstance()) return this; + if (routesBuilder_ == null) { + if (!other.routes_.isEmpty()) { + if (routes_.isEmpty()) { + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRoutesIsMutable(); + routes_.addAll(other.routes_); + } + onChanged(); + } + } else { + if (!other.routes_.isEmpty()) { + if (routesBuilder_.isEmpty()) { + routesBuilder_.dispose(); + routesBuilder_ = null; + routes_ = other.routes_; + bitField0_ = (bitField0_ & ~0x00000001); + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; + } else { + routesBuilder_.addAllMessages(other.routes_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListRoutesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListRoutesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List routes_ = + 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_; + + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public java.util.List getRoutesList() { + if (routesBuilder_ == null) { + return java.util.Collections.unmodifiableList(routes_); + } else { + return routesBuilder_.getMessageList(); + } + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public int getRoutesCount() { + if (routesBuilder_ == null) { + return routes_.size(); + } else { + return routesBuilder_.getCount(); + } + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public com.google.cloud.datastream.v1.Route getRoutes(int index) { + if (routesBuilder_ == null) { + return routes_.get(index); + } else { + return routesBuilder_.getMessage(index); + } + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder setRoutes( + int index, com.google.cloud.datastream.v1.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.set(index, value); + onChanged(); + } else { + routesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder setRoutes( + int index, com.google.cloud.datastream.v1.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.set(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder addRoutes(com.google.cloud.datastream.v1.Route value) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(value); + onChanged(); + } else { + routesBuilder_.addMessage(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) { + if (routesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRoutesIsMutable(); + routes_.add(index, value); + onChanged(); + } else { + routesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder addRoutes( + com.google.cloud.datastream.v1.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder addRoutes( + int index, com.google.cloud.datastream.v1.Route.Builder builderForValue) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.add(index, builderForValue.build()); + onChanged(); + } else { + routesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder addAllRoutes( + java.lang.Iterable values) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); + onChanged(); + } else { + routesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder clearRoutes() { + if (routesBuilder_ == null) { + routes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + routesBuilder_.clear(); + } + return this; + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + public Builder removeRoutes(int index) { + if (routesBuilder_ == null) { + ensureRoutesIsMutable(); + routes_.remove(index); + onChanged(); + } else { + routesBuilder_.remove(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) { + 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) { + if (routesBuilder_ == null) { + 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() { + if (routesBuilder_ != null) { + return routesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(routes_); + } + } + /** + *
+     * List of Routes.
+     * 
+ * + * 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()); + } + /** + *
+     * 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()); + } + /** + *
+     * List of Routes.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + 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> + 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()); + routes_ = null; + } + return routesBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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) { + ensureUnreachableIsMutable(); + 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() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ListRoutesResponse getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java new file mode 100644 index 00000000..8910746c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListRoutesResponseOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@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(); + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + com.google.cloud.datastream.v1.Route getRoutes(int index); + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + int getRoutesCount(); + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + java.util.List + getRoutesOrBuilderList(); + /** + *
+   * List of Routes.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Route routes = 1; + */ + 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(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java new file mode 100644 index 00000000..a8b24068 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequest.java @@ -0,0 +1,871 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamObjectsRequest) + ListStreamObjectsRequestOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListStreamObjectsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListStreamObjectsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getPageSize() { + return pageSize_; + } + + 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.
+   * When paginating, all other parameters provided to
+   * `ListStreamObjectsRequest` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   * When paginating, all other parameters provided to
+   * `ListStreamObjectsRequest` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListStreamObjectsRequest.class, com.google.cloud.datastream.v1.ListStreamObjectsRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListStreamObjectsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamObjectsRequest build() { + com.google.cloud.datastream.v1.ListStreamObjectsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsRequest other) { + if (other == com.google.cloud.datastream.v1.ListStreamObjectsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListStreamObjectsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListStreamObjectsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent stream that owns the collection of objects.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + 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 + 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; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Page token received from a previous `ListStreamObjectsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListStreamObjectsRequest` must match the call that provided the page
+     * token.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Page token received from a previous `ListStreamObjectsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListStreamObjectsRequest` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Page token received from a previous `ListStreamObjectsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListStreamObjectsRequest` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Page token received from a previous `ListStreamObjectsRequest` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListStreamObjectsRequest` must match the call that provided the page
+     * token.
+     * 
+ * + * 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.
+     * When paginating, all other parameters provided to
+     * `ListStreamObjectsRequest` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ListStreamObjectsRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java new file mode 100644 index 00000000..aa381f59 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsRequestOrBuilder.java @@ -0,0 +1,68 @@ +// 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 + // @@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) = { ... } + * @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(); + + /** + *
+   * 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.
+   * When paginating, all other parameters provided to
+   * `ListStreamObjectsRequest` must match the call that provided the page
+   * token.
+   * 
+ * + * 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.
+   * When paginating, all other parameters provided to
+   * `ListStreamObjectsRequest` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java new file mode 100644 index 00000000..f7e26a6c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponse.java @@ -0,0 +1,1036 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamObjectsResponse) + ListStreamObjectsResponseOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListStreamObjectsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListStreamObjectsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + streamObjects_ = java.util.Collections.unmodifiableList(streamObjects_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + @java.lang.Override + public java.util.List getStreamObjectsList() { + return streamObjects_; + } + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + @java.lang.Override + public java.util.List + getStreamObjectsOrBuilderList() { + return streamObjects_; + } + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + @java.lang.Override + public int getStreamObjectsCount() { + return streamObjects_.size(); + } + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { + return streamObjects_.get(index); + } + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + @java.lang.Override + 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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < streamObjects_.size(); 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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getStreamObjectsList() + .equals(other.getStreamObjectsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStreamObjectsCount() > 0) { + hash = (37 * hash) + STREAM_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getStreamObjectsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListStreamObjectsResponse.class, com.google.cloud.datastream.v1.ListStreamObjectsResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListStreamObjectsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStreamObjectsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (streamObjectsBuilder_ == null) { + streamObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + streamObjectsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamObjectsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamObjectsResponse build() { + com.google.cloud.datastream.v1.ListStreamObjectsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (streamObjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + streamObjects_ = java.util.Collections.unmodifiableList(streamObjects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.streamObjects_ = streamObjects_; + } else { + result.streamObjects_ = streamObjectsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamObjectsResponse other) { + if (other == com.google.cloud.datastream.v1.ListStreamObjectsResponse.getDefaultInstance()) return this; + if (streamObjectsBuilder_ == null) { + if (!other.streamObjects_.isEmpty()) { + if (streamObjects_.isEmpty()) { + streamObjects_ = other.streamObjects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStreamObjectsIsMutable(); + streamObjects_.addAll(other.streamObjects_); + } + onChanged(); + } + } else { + if (!other.streamObjects_.isEmpty()) { + if (streamObjectsBuilder_.isEmpty()) { + streamObjectsBuilder_.dispose(); + streamObjectsBuilder_ = null; + streamObjects_ = other.streamObjects_; + bitField0_ = (bitField0_ & ~0x00000001); + streamObjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamObjectsFieldBuilder() : null; + } else { + streamObjectsBuilder_.addAllMessages(other.streamObjects_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListStreamObjectsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListStreamObjectsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List streamObjects_ = + java.util.Collections.emptyList(); + private void ensureStreamObjectsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public java.util.List getStreamObjectsList() { + if (streamObjectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(streamObjects_); + } else { + return streamObjectsBuilder_.getMessageList(); + } + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public int getStreamObjectsCount() { + if (streamObjectsBuilder_ == null) { + return streamObjects_.size(); + } else { + return streamObjectsBuilder_.getCount(); + } + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { + if (streamObjectsBuilder_ == null) { + return streamObjects_.get(index); + } else { + return streamObjectsBuilder_.getMessage(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) { + if (streamObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreamObjectsIsMutable(); + streamObjects_.set(index, value); + onChanged(); + } else { + streamObjectsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public Builder setStreamObjects( + int index, com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + streamObjects_.set(index, builderForValue.build()); + onChanged(); + } else { + streamObjectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public Builder addStreamObjects(com.google.cloud.datastream.v1.StreamObject value) { + if (streamObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreamObjectsIsMutable(); + streamObjects_.add(value); + onChanged(); + } else { + streamObjectsBuilder_.addMessage(value); + } + 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) { + if (streamObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreamObjectsIsMutable(); + streamObjects_.add(index, value); + onChanged(); + } else { + streamObjectsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public Builder addStreamObjects( + com.google.cloud.datastream.v1.StreamObject.Builder builderForValue) { + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + streamObjects_.add(builderForValue.build()); + onChanged(); + } else { + streamObjectsBuilder_.addMessage(builderForValue.build()); + } + 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.Builder builderForValue) { + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + streamObjects_.add(index, builderForValue.build()); + onChanged(); + } else { + streamObjectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public Builder addAllStreamObjects( + java.lang.Iterable values) { + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streamObjects_); + onChanged(); + } else { + streamObjectsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public Builder clearStreamObjects() { + if (streamObjectsBuilder_ == null) { + streamObjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + streamObjectsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public Builder removeStreamObjects(int index) { + if (streamObjectsBuilder_ == null) { + ensureStreamObjectsIsMutable(); + streamObjects_.remove(index); + onChanged(); + } else { + streamObjectsBuilder_.remove(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) { + return getStreamObjectsFieldBuilder().getBuilder(index); + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBuilder( + int index) { + if (streamObjectsBuilder_ == null) { + 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() { + if (streamObjectsBuilder_ != null) { + return streamObjectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(streamObjects_); + } + } + /** + *
+     * List of stream objects.
+     * 
+ * + * 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()); + } + /** + *
+     * 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()); + } + /** + *
+     * List of stream objects.
+     * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + 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> + 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>( + streamObjects_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + streamObjects_ = null; + } + return streamObjectsBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ListStreamObjectsResponse getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java new file mode 100644 index 00000000..989af467 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamObjectsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// 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 + // @@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(); + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index); + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + int getStreamObjectsCount(); + /** + *
+   * List of stream objects.
+   * 
+ * + * repeated .google.cloud.datastream.v1.StreamObject stream_objects = 1; + */ + 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); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java new file mode 100644 index 00000000..f8a9efd4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequest.java @@ -0,0 +1,1200 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamsRequest) + ListStreamsRequestOrBuilder { +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_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListStreamsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListStreamsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + pageToken_ = s; + break; + } + case 34: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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.
+   * When paginating, all other parameters provided to `ListStreams`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   * When paginating, all other parameters provided to `ListStreams`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListStreamsRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListStreamsRequest.class, com.google.cloud.datastream.v1.ListStreamsRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListStreamsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + filter_ = ""; + + orderBy_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamsRequest build() { + com.google.cloud.datastream.v1.ListStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + result.filter_ = filter_; + result.orderBy_ = orderBy_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsRequest other) { + if (other == com.google.cloud.datastream.v1.ListStreamsRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListStreamsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListStreamsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of streams.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent that owns the collection of streams.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Maximum number of streams to return.
+     * If unspecified, at most 50 streams will  be returned. The maximum
+     * value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Maximum number of streams to return.
+     * If unspecified, at most 50 streams will  be returned. 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 streams to return.
+     * If unspecified, at most 50 streams will  be returned. 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; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Page token received from a previous `ListStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListStreams`
+     * must match the call that provided the page token.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Page token received from a previous `ListStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListStreams`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Page token received from a previous `ListStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListStreams`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + *
+     * Page token received from a previous `ListStreams` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListStreams`
+     * must match the call that provided the page token.
+     * 
+ * + * 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.
+     * When paginating, all other parameters provided to `ListStreams`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @return The bytes for filter. + */ + 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); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Filter request.
+     * 
+ * + * string filter = 4; + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @return The bytes for orderBy. + */ + 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); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Order by fields for the result.
+     * 
+ * + * string order_by = 5; + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + orderBy_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ListStreamsRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java new file mode 100644 index 00000000..37f5d587 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsRequestOrBuilder.java @@ -0,0 +1,107 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Maximum number of streams to return.
+   * If unspecified, at most 50 streams will  be returned. 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 `ListStreams` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListStreams`
+   * must match the call that provided the page token.
+   * 
+ * + * 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.
+   * When paginating, all other parameters provided to `ListStreams`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * @return The bytes for pageToken. + */ + 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(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java new file mode 100644 index 00000000..fcebd20d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponse.java @@ -0,0 +1,1287 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ListStreamsResponse) + ListStreamsResponseOrBuilder { +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_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListStreamsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListStreamsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + 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; + } + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + streams_ = java.util.Collections.unmodifiableList(streams_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + @java.lang.Override + public java.util.List getStreamsList() { + return streams_; + } + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + @java.lang.Override + public java.util.List + getStreamsOrBuilderList() { + return streams_; + } + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + @java.lang.Override + public int getStreamsCount() { + return streams_.size(); + } + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream getStreams(int index) { + return streams_.get(index); + } + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + @java.lang.Override + 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 + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < streams_.size(); 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_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStreamsCount() > 0) { + hash = (37 * hash) + STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getStreamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.ListStreamsResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ListStreamsResponse.class, com.google.cloud.datastream.v1.ListStreamsResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ListStreamsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStreamsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (streamsBuilder_ == null) { + streams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + streamsBuilder_.clear(); + } + nextPageToken_ = ""; + + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_ListStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ListStreamsResponse build() { + com.google.cloud.datastream.v1.ListStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (streamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + streams_ = java.util.Collections.unmodifiableList(streams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.streams_ = streams_; + } else { + result.streams_ = streamsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + if (((bitField0_ & 0x00000002) != 0)) { + unreachable_ = unreachable_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.unreachable_ = unreachable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ListStreamsResponse other) { + if (other == com.google.cloud.datastream.v1.ListStreamsResponse.getDefaultInstance()) return this; + if (streamsBuilder_ == null) { + if (!other.streams_.isEmpty()) { + if (streams_.isEmpty()) { + streams_ = other.streams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStreamsIsMutable(); + streams_.addAll(other.streams_); + } + onChanged(); + } + } else { + if (!other.streams_.isEmpty()) { + if (streamsBuilder_.isEmpty()) { + streamsBuilder_.dispose(); + streamsBuilder_ = null; + streams_ = other.streams_; + bitField0_ = (bitField0_ & ~0x00000001); + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; + } else { + streamsBuilder_.addAllMessages(other.streams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ListStreamsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ListStreamsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List streams_ = + 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_; + + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public java.util.List getStreamsList() { + if (streamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(streams_); + } else { + return streamsBuilder_.getMessageList(); + } + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public int getStreamsCount() { + if (streamsBuilder_ == null) { + return streams_.size(); + } else { + return streamsBuilder_.getCount(); + } + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public com.google.cloud.datastream.v1.Stream getStreams(int index) { + if (streamsBuilder_ == null) { + return streams_.get(index); + } else { + return streamsBuilder_.getMessage(index); + } + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder setStreams( + int index, com.google.cloud.datastream.v1.Stream value) { + if (streamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreamsIsMutable(); + streams_.set(index, value); + onChanged(); + } else { + streamsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder setStreams( + int index, com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.set(index, builderForValue.build()); + onChanged(); + } else { + streamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder addStreams(com.google.cloud.datastream.v1.Stream value) { + if (streamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreamsIsMutable(); + streams_.add(value); + onChanged(); + } else { + streamsBuilder_.addMessage(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) { + if (streamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStreamsIsMutable(); + streams_.add(index, value); + onChanged(); + } else { + streamsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder addStreams( + com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(builderForValue.build()); + onChanged(); + } else { + streamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder addStreams( + int index, com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.add(index, builderForValue.build()); + onChanged(); + } else { + streamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder addAllStreams( + java.lang.Iterable values) { + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); + onChanged(); + } else { + streamsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder clearStreams() { + if (streamsBuilder_ == null) { + streams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + streamsBuilder_.clear(); + } + return this; + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + public Builder removeStreams(int index) { + if (streamsBuilder_ == null) { + ensureStreamsIsMutable(); + streams_.remove(index); + onChanged(); + } else { + streamsBuilder_.remove(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) { + 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) { + if (streamsBuilder_ == null) { + 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() { + if (streamsBuilder_ != null) { + return streamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(streams_); + } + } + /** + *
+     * List of streams
+     * 
+ * + * 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()); + } + /** + *
+     * 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()); + } + /** + *
+     * List of streams
+     * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + 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> + 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()); + streams_ = null; + } + return streamsBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + 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() { + 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. + */ + 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) { + return unreachable_.getByteString(index); + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + 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) { + ensureUnreachableIsMutable(); + 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() { + unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3; + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ListStreamsResponse getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java new file mode 100644 index 00000000..1ed1443c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ListStreamsResponseOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@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(); + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + com.google.cloud.datastream.v1.Stream getStreams(int index); + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + int getStreamsCount(); + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + java.util.List + getStreamsOrBuilderList(); + /** + *
+   * List of streams
+   * 
+ * + * repeated .google.cloud.datastream.v1.Stream streams = 1; + */ + 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(); + + /** + *
+   * Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3; + * @return A list containing the unreachable. + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java new file mode 100644 index 00000000..b32bb870 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java new file mode 100644 index 00000000..b30fd79b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequest.java @@ -0,0 +1,831 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.LookupStreamObjectRequest} + */ +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; + // 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) { + return new LookupStreamObjectRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LookupStreamObjectRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + sourceObjectIdentifier_ = input.readMessage(com.google.cloud.datastream.v1.SourceObjectIdentifier.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceObjectIdentifier_); + sourceObjectIdentifier_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for parent. + */ + @java.lang.Override + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the sourceObjectIdentifier field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * 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]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder() { + return getSourceObjectIdentifier(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (sourceObjectIdentifier_ != null) { + output.writeMessage(2, getSourceObjectIdentifier()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (sourceObjectIdentifier_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSourceObjectIdentifier()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getParent() + .equals(other.getParent())) return false; + if (hasSourceObjectIdentifier() != other.hasSourceObjectIdentifier()) return false; + if (hasSourceObjectIdentifier()) { + if (!getSourceObjectIdentifier() + .equals(other.getSourceObjectIdentifier())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSourceObjectIdentifier()) { + hash = (37 * hash) + SOURCE_OBJECT_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getSourceObjectIdentifier().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.LookupStreamObjectRequest} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.LookupStreamObjectRequest.class, com.google.cloud.datastream.v1.LookupStreamObjectRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.LookupStreamObjectRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (sourceObjectIdentifierBuilder_ == null) { + sourceObjectIdentifier_ = null; + } else { + sourceObjectIdentifier_ = null; + sourceObjectIdentifierBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_LookupStreamObjectRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.LookupStreamObjectRequest build() { + com.google.cloud.datastream.v1.LookupStreamObjectRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.parent_ = parent_; + if (sourceObjectIdentifierBuilder_ == null) { + result.sourceObjectIdentifier_ = sourceObjectIdentifier_; + } else { + result.sourceObjectIdentifier_ = sourceObjectIdentifierBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.LookupStreamObjectRequest other) { + if (other == com.google.cloud.datastream.v1.LookupStreamObjectRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasSourceObjectIdentifier()) { + mergeSourceObjectIdentifier(other.getSourceObjectIdentifier()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.LookupStreamObjectRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.LookupStreamObjectRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The parent stream that owns the collection of objects.
+     * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) = { ... } + * @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) = { ... } + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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. + */ + 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]; + * @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_; + } 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]; + */ + public Builder setSourceObjectIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + if (sourceObjectIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceObjectIdentifier_ = value; + onChanged(); + } else { + sourceObjectIdentifierBuilder_.setMessage(value); + } + + 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]; + */ + public Builder setSourceObjectIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder builderForValue) { + if (sourceObjectIdentifierBuilder_ == null) { + sourceObjectIdentifier_ = builderForValue.build(); + onChanged(); + } else { + sourceObjectIdentifierBuilder_.setMessage(builderForValue.build()); + } + + 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]; + */ + 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(); + } else { + sourceObjectIdentifier_ = value; + } + onChanged(); + } else { + sourceObjectIdentifierBuilder_.mergeFrom(value); + } + + 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]; + */ + public Builder clearSourceObjectIdentifier() { + if (sourceObjectIdentifierBuilder_ == null) { + sourceObjectIdentifier_ = null; + onChanged(); + } else { + sourceObjectIdentifier_ = null; + sourceObjectIdentifierBuilder_ = null; + } + + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + sourceObjectIdentifier_ = null; + } + return sourceObjectIdentifierBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.LookupStreamObjectRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..fb7a4690 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/LookupStreamObjectRequestOrBuilder.java @@ -0,0 +1,56 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface LookupStreamObjectRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.LookupStreamObjectRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The parent stream that owns the collection of objects.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The parent stream that owns the collection of objects.
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the sourceObjectIdentifier field is set. + */ + boolean hasSourceObjectIdentifier(); + /** + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The sourceObjectIdentifier. + */ + com.google.cloud.datastream.v1.SourceObjectIdentifier getSourceObjectIdentifier(); + /** + *
+   * Required. The source object identifier which maps to the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object_identifier = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectIdentifierOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java new file mode 100644 index 00000000..3311451a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumn.java @@ -0,0 +1,1254 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlColumn) + MysqlColumnOrBuilder { +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_ = ""; + collation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 3; + private int length_; + /** + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + 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 + public java.lang.String getCollation() { + java.lang.Object ref = collation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getPrimaryKey() { + return primaryKey_; + } + + 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 + public boolean getNullable() { + return nullable_; + } + + 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 + public int getOrdinalPosition() { + return ordinalPosition_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataType_); + } + if (length_ != 0) { + output.writeInt32(3, length_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, collation_); + } + if (primaryKey_ != false) { + output.writeBool(5, primaryKey_); + } + if (nullable_ != false) { + output.writeBool(6, nullable_); + } + if (ordinalPosition_ != 0) { + output.writeInt32(7, ordinalPosition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); + } + if (length_ != 0) { + 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_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, nullable_); + } + if (ordinalPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, ordinalPosition_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + 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 = (37 * hash) + NULLABLE_FIELD_NUMBER; + 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(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.MysqlColumn 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlColumn.class, com.google.cloud.datastream.v1.MysqlColumn.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + column_ = ""; + + dataType_ = ""; + + length_ = 0; + + collation_ = ""; + + primaryKey_ = false; + + nullable_ = false; + + ordinalPosition_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlColumn getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlColumn build() { + com.google.cloud.datastream.v1.MysqlColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.column_ = column_; + result.dataType_ = dataType_; + result.length_ = length_; + result.collation_ = collation_; + result.primaryKey_ = primaryKey_; + result.nullable_ = nullable_; + result.ordinalPosition_ = ordinalPosition_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlColumn other) { + if (other == com.google.cloud.datastream.v1.MysqlColumn.getDefaultInstance()) return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + onChanged(); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + if (!other.getCollation().isEmpty()) { + collation_ = other.collation_; + onChanged(); + } + if (other.getPrimaryKey() != false) { + setPrimaryKey(other.getPrimaryKey()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getOrdinalPosition() != 0) { + setOrdinalPosition(other.getOrdinalPosition()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Column name.
+     * 
+ * + * string column = 1; + * @return The bytes for column. + */ + 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); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Column name.
+     * 
+ * + * string column = 1; + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + column_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = dataType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The MySQL data type. Full data types list can be found here:
+     * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
+     * 
+ * + * string data_type = 2; + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataType_ = value; + onChanged(); + return this; + } + + private int length_ ; + /** + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * @return The length. + */ + @java.lang.Override + 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 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; + java.lang.String s = bs.toStringUtf8(); + collation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Column collation.
+     * 
+ * + * string collation = 4; + * @return The bytes for collation. + */ + 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); + collation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Column collation.
+     * 
+ * + * string collation = 4; + * @param value The collation to set. + * @return This builder for chaining. + */ + public Builder setCollation( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + collation_ = value; + onChanged(); + return this; + } + + private boolean primaryKey_ ; + /** + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 5; + * @return The primaryKey. + */ + @java.lang.Override + 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_ ; + /** + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 6; + * @return The nullable. + */ + @java.lang.Override + 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_ ; + /** + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 7; + * @return The ordinalPosition. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java new file mode 100644 index 00000000..56a7195e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlColumnOrBuilder.java @@ -0,0 +1,111 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java new file mode 100644 index 00000000..21f469f8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabase.java @@ -0,0 +1,1036 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlDatabase) + MysqlDatabaseOrBuilder { +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(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlDatabase(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlDatabase( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + mysqlTables_.add( + input.readMessage(com.google.cloud.datastream.v1.MysqlTable.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlTables_ = java.util.Collections.unmodifiableList(mysqlTables_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MYSQL_TABLES_FIELD_NUMBER = 2; + private java.util.List mysqlTables_; + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + @java.lang.Override + public java.util.List getMysqlTablesList() { + return mysqlTables_; + } + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + @java.lang.Override + public java.util.List + getMysqlTablesOrBuilderList() { + return mysqlTables_; + } + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + @java.lang.Override + public int getMysqlTablesCount() { + return mysqlTables_.size(); + } + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { + return mysqlTables_.get(index); + } + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + for (int i = 0; i < mysqlTables_.size(); i++) { + output.writeMessage(2, mysqlTables_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (!getMysqlTablesList() + .equals(other.getMysqlTablesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + if (getMysqlTablesCount() > 0) { + hash = (37 * hash) + MYSQL_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getMysqlTablesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.MysqlDatabase 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlDatabase.class, com.google.cloud.datastream.v1.MysqlDatabase.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlDatabase.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMysqlTablesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + database_ = ""; + + if (mysqlTablesBuilder_ == null) { + mysqlTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + mysqlTablesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlDatabase_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlDatabase getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlDatabase build() { + com.google.cloud.datastream.v1.MysqlDatabase result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.database_ = database_; + if (mysqlTablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mysqlTables_ = java.util.Collections.unmodifiableList(mysqlTables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mysqlTables_ = mysqlTables_; + } else { + result.mysqlTables_ = mysqlTablesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlDatabase other) { + if (other == com.google.cloud.datastream.v1.MysqlDatabase.getDefaultInstance()) return this; + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + onChanged(); + } + if (mysqlTablesBuilder_ == null) { + if (!other.mysqlTables_.isEmpty()) { + if (mysqlTables_.isEmpty()) { + mysqlTables_ = other.mysqlTables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMysqlTablesIsMutable(); + mysqlTables_.addAll(other.mysqlTables_); + } + onChanged(); + } + } else { + if (!other.mysqlTables_.isEmpty()) { + if (mysqlTablesBuilder_.isEmpty()) { + mysqlTablesBuilder_.dispose(); + mysqlTablesBuilder_ = null; + mysqlTables_ = other.mysqlTables_; + bitField0_ = (bitField0_ & ~0x00000001); + mysqlTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlTablesFieldBuilder() : null; + } else { + mysqlTablesBuilder_.addAllMessages(other.mysqlTables_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlDatabase parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlDatabase) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Database name.
+     * 
+ * + * string database = 1; + * @return The bytes for database. + */ + 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); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Database name.
+     * 
+ * + * string database = 1; + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + database_ = value; + onChanged(); + return this; + } + + private java.util.List mysqlTables_ = + java.util.Collections.emptyList(); + private void ensureMysqlTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public java.util.List getMysqlTablesList() { + if (mysqlTablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mysqlTables_); + } else { + return mysqlTablesBuilder_.getMessageList(); + } + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public int getMysqlTablesCount() { + if (mysqlTablesBuilder_ == null) { + return mysqlTables_.size(); + } else { + return mysqlTablesBuilder_.getCount(); + } + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { + if (mysqlTablesBuilder_ == null) { + return mysqlTables_.get(index); + } else { + return mysqlTablesBuilder_.getMessage(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) { + if (mysqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlTablesIsMutable(); + mysqlTables_.set(index, value); + onChanged(); + } else { + mysqlTablesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public Builder setMysqlTables( + int index, com.google.cloud.datastream.v1.MysqlTable.Builder builderForValue) { + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.set(index, builderForValue.build()); + onChanged(); + } else { + mysqlTablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public Builder addMysqlTables(com.google.cloud.datastream.v1.MysqlTable value) { + if (mysqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlTablesIsMutable(); + mysqlTables_.add(value); + onChanged(); + } else { + mysqlTablesBuilder_.addMessage(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) { + if (mysqlTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlTablesIsMutable(); + mysqlTables_.add(index, value); + onChanged(); + } else { + mysqlTablesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public Builder addMysqlTables( + com.google.cloud.datastream.v1.MysqlTable.Builder builderForValue) { + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.add(builderForValue.build()); + onChanged(); + } else { + mysqlTablesBuilder_.addMessage(builderForValue.build()); + } + 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.Builder builderForValue) { + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.add(index, builderForValue.build()); + onChanged(); + } else { + mysqlTablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public Builder addAllMysqlTables( + java.lang.Iterable values) { + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlTables_); + onChanged(); + } else { + mysqlTablesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public Builder clearMysqlTables() { + if (mysqlTablesBuilder_ == null) { + mysqlTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mysqlTablesBuilder_.clear(); + } + return this; + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + public Builder removeMysqlTables(int index) { + if (mysqlTablesBuilder_ == null) { + ensureMysqlTablesIsMutable(); + mysqlTables_.remove(index); + onChanged(); + } else { + mysqlTablesBuilder_.remove(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) { + 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) { + if (mysqlTablesBuilder_ == null) { + 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() { + if (mysqlTablesBuilder_ != null) { + return mysqlTablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mysqlTables_); + } + } + /** + *
+     * Tables in the database.
+     * 
+ * + * 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()); + } + /** + *
+     * 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()); + } + /** + *
+     * Tables in the database.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + 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> + 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()); + mysqlTables_ = null; + } + return mysqlTablesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java new file mode 100644 index 00000000..95613a1a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlDatabaseOrBuilder.java @@ -0,0 +1,73 @@ +// 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 + // @@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(); + + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + java.util.List + getMysqlTablesList(); + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index); + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + int getMysqlTablesCount(); + /** + *
+   * Tables in the database.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlTable mysql_tables = 2; + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java new file mode 100644 index 00000000..a3369397 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfile.java @@ -0,0 +1,1241 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlProfile) + MysqlProfileOrBuilder { +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_ = ""; + password_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + username_ = s; + break; + } + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getPort() { + return port_; + } + + 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 + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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]; + * @return The bytes for password. + */ + @java.lang.Override + 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); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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_; + } + /** + *
+   * SSL configuration for the MySQL connection.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuilder() { + return getSslConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + if (sslConfig_ != null) { + output.writeMessage(5, getSslConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + if (sslConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSslConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + if (hasSslConfig()) { + hash = (37 * hash) + SSL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSslConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.MysqlProfile 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlProfile.class, com.google.cloud.datastream.v1.MysqlProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hostname_ = ""; + + port_ = 0; + + username_ = ""; + + password_ = ""; + + if (sslConfigBuilder_ == null) { + sslConfig_ = null; + } else { + sslConfig_ = null; + sslConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlProfile build() { + com.google.cloud.datastream.v1.MysqlProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.hostname_ = hostname_; + result.port_ = port_; + result.username_ = username_; + result.password_ = password_; + if (sslConfigBuilder_ == null) { + result.sslConfig_ = sslConfig_; + } else { + result.sslConfig_ = sslConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlProfile other) { + if (other == com.google.cloud.datastream.v1.MysqlProfile.getDefaultInstance()) return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (other.hasSslConfig()) { + mergeSslConfig(other.getSslConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Hostname for the MySQL connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + + private int port_ ; + /** + *
+     * Port for the MySQL connection, default value is 3306.
+     * 
+ * + * int32 port = 2; + * @return The port. + */ + @java.lang.Override + 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; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Username for the MySQL connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + 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]; + * @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; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Input only. Password for the MySQL connection.
+     * 
+ * + * 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() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Input only. Password for the MySQL connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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]; + * @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]; + * @param value The bytes for password to set. + * @return This builder for chaining. + */ + public Builder setPasswordBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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_; + } else { + return sslConfigBuilder_.getMessage(); + } + } + /** + *
+     * SSL configuration for the MySQL connection.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + public Builder setSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) { + if (sslConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sslConfig_ = value; + onChanged(); + } else { + sslConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * SSL configuration for the MySQL connection.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + public Builder setSslConfig( + com.google.cloud.datastream.v1.MysqlSslConfig.Builder builderForValue) { + if (sslConfigBuilder_ == null) { + sslConfig_ = builderForValue.build(); + onChanged(); + } else { + sslConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * SSL configuration for the MySQL connection.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) { + if (sslConfigBuilder_ == null) { + if (sslConfig_ != null) { + sslConfig_ = + com.google.cloud.datastream.v1.MysqlSslConfig.newBuilder(sslConfig_).mergeFrom(value).buildPartial(); + } else { + sslConfig_ = value; + } + onChanged(); + } else { + sslConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * SSL configuration for the MySQL connection.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + public Builder clearSslConfig() { + if (sslConfigBuilder_ == null) { + sslConfig_ = null; + onChanged(); + } else { + sslConfig_ = null; + sslConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * SSL configuration for the MySQL connection.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuilder() { + if (sslConfigBuilder_ != null) { + return sslConfigBuilder_.getMessageOrBuilder(); + } else { + return sslConfig_ == null ? + com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance() : sslConfig_; + } + } + /** + *
+     * SSL configuration for the MySQL connection.
+     * 
+ * + * .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> + 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()); + sslConfig_ = null; + } + return sslConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java new file mode 100644 index 00000000..588bbd08 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlProfileOrBuilder.java @@ -0,0 +1,106 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * Required. Input only. Password for the MySQL connection.
+   * 
+ * + * 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]; + * @return The bytes for password. + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSslConfig ssl_config = 5; + */ + com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java new file mode 100644 index 00000000..a6944bec --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbms.java @@ -0,0 +1,870 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlRdbms) + MysqlRdbmsOrBuilder { +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) { + return new MysqlRdbms(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlRdbms( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlDatabases_ = java.util.Collections.unmodifiableList(mysqlDatabases_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + @java.lang.Override + public java.util.List getMysqlDatabasesList() { + return mysqlDatabases_; + } + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + @java.lang.Override + public java.util.List + getMysqlDatabasesOrBuilderList() { + return mysqlDatabases_; + } + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + @java.lang.Override + public int getMysqlDatabasesCount() { + return mysqlDatabases_.size(); + } + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) { + return mysqlDatabases_.get(index); + } + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( + int index) { + return mysqlDatabases_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mysqlDatabases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, mysqlDatabases_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getMysqlDatabasesList() + .equals(other.getMysqlDatabasesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getMysqlDatabasesCount() > 0) { + hash = (37 * hash) + MYSQL_DATABASES_FIELD_NUMBER; + hash = (53 * hash) + getMysqlDatabasesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.MysqlRdbms 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlRdbms.class, com.google.cloud.datastream.v1.MysqlRdbms.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlRdbms.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMysqlDatabasesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (mysqlDatabasesBuilder_ == null) { + mysqlDatabases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + mysqlDatabasesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlRdbms_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbms getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbms build() { + com.google.cloud.datastream.v1.MysqlRdbms result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (mysqlDatabasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mysqlDatabases_ = java.util.Collections.unmodifiableList(mysqlDatabases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mysqlDatabases_ = mysqlDatabases_; + } else { + result.mysqlDatabases_ = mysqlDatabasesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlRdbms other) { + if (other == com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance()) return this; + if (mysqlDatabasesBuilder_ == null) { + if (!other.mysqlDatabases_.isEmpty()) { + if (mysqlDatabases_.isEmpty()) { + mysqlDatabases_ = other.mysqlDatabases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.addAll(other.mysqlDatabases_); + } + onChanged(); + } + } else { + if (!other.mysqlDatabases_.isEmpty()) { + if (mysqlDatabasesBuilder_.isEmpty()) { + mysqlDatabasesBuilder_.dispose(); + mysqlDatabasesBuilder_ = null; + mysqlDatabases_ = other.mysqlDatabases_; + bitField0_ = (bitField0_ & ~0x00000001); + mysqlDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlDatabasesFieldBuilder() : null; + } else { + mysqlDatabasesBuilder_.addAllMessages(other.mysqlDatabases_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlRdbms parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlRdbms) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List mysqlDatabases_ = + java.util.Collections.emptyList(); + private void ensureMysqlDatabasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public java.util.List getMysqlDatabasesList() { + if (mysqlDatabasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(mysqlDatabases_); + } else { + return mysqlDatabasesBuilder_.getMessageList(); + } + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public int getMysqlDatabasesCount() { + if (mysqlDatabasesBuilder_ == null) { + return mysqlDatabases_.size(); + } else { + return mysqlDatabasesBuilder_.getCount(); + } + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) { + if (mysqlDatabasesBuilder_ == null) { + return mysqlDatabases_.get(index); + } else { + return mysqlDatabasesBuilder_.getMessage(index); + } + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder setMysqlDatabases( + int index, com.google.cloud.datastream.v1.MysqlDatabase value) { + if (mysqlDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.set(index, value); + onChanged(); + } else { + mysqlDatabasesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder setMysqlDatabases( + int index, com.google.cloud.datastream.v1.MysqlDatabase.Builder builderForValue) { + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.set(index, builderForValue.build()); + onChanged(); + } else { + mysqlDatabasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder addMysqlDatabases(com.google.cloud.datastream.v1.MysqlDatabase value) { + if (mysqlDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(value); + onChanged(); + } else { + mysqlDatabasesBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder addMysqlDatabases( + int index, com.google.cloud.datastream.v1.MysqlDatabase value) { + if (mysqlDatabasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(index, value); + onChanged(); + } else { + mysqlDatabasesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder addMysqlDatabases( + com.google.cloud.datastream.v1.MysqlDatabase.Builder builderForValue) { + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(builderForValue.build()); + onChanged(); + } else { + mysqlDatabasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder addMysqlDatabases( + int index, com.google.cloud.datastream.v1.MysqlDatabase.Builder builderForValue) { + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.add(index, builderForValue.build()); + onChanged(); + } else { + mysqlDatabasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder addAllMysqlDatabases( + java.lang.Iterable values) { + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlDatabases_); + onChanged(); + } else { + mysqlDatabasesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder clearMysqlDatabases() { + if (mysqlDatabasesBuilder_ == null) { + mysqlDatabases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mysqlDatabasesBuilder_.clear(); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public Builder removeMysqlDatabases(int index) { + if (mysqlDatabasesBuilder_ == null) { + ensureMysqlDatabasesIsMutable(); + mysqlDatabases_.remove(index); + onChanged(); + } else { + mysqlDatabasesBuilder_.remove(index); + } + return this; + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBuilder( + int index) { + return getMysqlDatabasesFieldBuilder().getBuilder(index); + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( + int index) { + if (mysqlDatabasesBuilder_ == null) { + 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() { + if (mysqlDatabasesBuilder_ != null) { + return mysqlDatabasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mysqlDatabases_); + } + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * 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()); + } + /** + *
+     * Mysql databases on the server
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + public com.google.cloud.datastream.v1.MysqlDatabase.Builder addMysqlDatabasesBuilder( + int index) { + 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() { + 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> + 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>( + mysqlDatabases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mysqlDatabases_ = null; + } + return mysqlDatabasesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java new file mode 100644 index 00000000..b9ba684b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlRdbmsOrBuilder.java @@ -0,0 +1,53 @@ +// 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 + // @@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(); + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index); + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + int getMysqlDatabasesCount(); + /** + *
+   * Mysql databases on the server
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlDatabase mysql_databases = 1; + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java new file mode 100644 index 00000000..9022d71a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfig.java @@ -0,0 +1,899 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSourceConfig) + MysqlSourceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use MysqlSourceConfig.newBuilder() to construct. + private MysqlSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MysqlSourceConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlSourceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlSourceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + 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_; + } + /** + *
+   * MySQL objects to retrieve from the source.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { + return getIncludeObjects(); + } + + 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 + 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_; + } + /** + *
+   * MySQL objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { + return getExcludeObjects(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (includeObjects_ != null) { + output.writeMessage(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + output.writeMessage(2, getExcludeObjects()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExcludeObjects()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects() + .equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects() + .equals(other.getExcludeObjects())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlSourceConfig.class, com.google.cloud.datastream.v1.MysqlSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig build() { + com.google.cloud.datastream.v1.MysqlSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfig buildPartial() { + com.google.cloud.datastream.v1.MysqlSourceConfig result = new com.google.cloud.datastream.v1.MysqlSourceConfig(this); + if (includeObjectsBuilder_ == null) { + result.includeObjects_ = includeObjects_; + } else { + result.includeObjects_ = includeObjectsBuilder_.build(); + } + if (excludeObjectsBuilder_ == null) { + result.excludeObjects_ = excludeObjects_; + } else { + result.excludeObjects_ = excludeObjectsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) { + if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlSourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlSourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * 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_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + /** + *
+     * MySQL objects to retrieve from the source.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + onChanged(); + } else { + includeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * MySQL objects to retrieve from the source.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + onChanged(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * MySQL objects to retrieve from the source.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (includeObjectsBuilder_ == null) { + if (includeObjects_ != null) { + includeObjects_ = + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder(includeObjects_).mergeFrom(value).buildPartial(); + } else { + includeObjects_ = value; + } + onChanged(); + } else { + includeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * MySQL objects to retrieve from the source.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + onChanged(); + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + + return this; + } + /** + *
+     * MySQL objects to retrieve from the source.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null ? + com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : includeObjects_; + } + } + /** + *
+     * MySQL objects to retrieve from the source.
+     * 
+ * + * .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> + 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()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + 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_; + /** + *
+     * 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_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + /** + *
+     * MySQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * MySQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * MySQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (excludeObjects_ != null) { + excludeObjects_ = + com.google.cloud.datastream.v1.MysqlRdbms.newBuilder(excludeObjects_).mergeFrom(value).buildPartial(); + } else { + excludeObjects_ = value; + } + onChanged(); + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * MySQL objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + onChanged(); + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + + return this; + } + /** + *
+     * MySQL objects to exclude from the stream.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null ? + com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance() : excludeObjects_; + } + } + /** + *
+     * MySQL objects to exclude from the stream.
+     * 
+ * + * .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> + 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()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.MysqlSourceConfig getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java new file mode 100644 index 00000000..1ee8e438 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSourceConfigOrBuilder.java @@ -0,0 +1,63 @@ +// 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 + // @@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.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms include_objects = 1; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms exclude_objects = 2; + */ + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java new file mode 100644 index 00000000..ecb6a012 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfig.java @@ -0,0 +1,1203 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlSslConfig) + MysqlSslConfigOrBuilder { +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_ = ""; + caCertificate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlSslConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlSslConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + clientKey_ = s; + break; + } + case 16: { + + 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(); + + caCertificate_ = s; + break; + } + case 48: { + + caCertificateSet_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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
+   * 'ca_certificate' fields are mandatory.
+   * 
+ * + * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The clientKey. + */ + @java.lang.Override + public java.lang.String getClientKey() { + java.lang.Object ref = clientKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * 'ca_certificate' fields are mandatory.
+   * 
+ * + * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for clientKey. + */ + @java.lang.Override + 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); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getClientKeySet() { + return clientKeySet_; + } + + 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
+   * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+   * 
+ * + * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The clientCertificate. + */ + @java.lang.Override + public java.lang.String getClientCertificate() { + java.lang.Object ref = clientCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+   * 
+ * + * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for clientCertificate. + */ + @java.lang.Override + 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); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getClientCertificateSet() { + return clientCertificateSet_; + } + + 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 + public java.lang.String getCaCertificate() { + java.lang.Object ref = caCertificate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + caCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getCaCertificateSet() { + return caCertificateSet_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (clientKeySet_ != false) { + output.writeBool(2, clientKeySet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clientCertificate_); + } + if (clientCertificateSet_ != false) { + output.writeBool(4, clientCertificateSet_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, caCertificate_); + } + if (caCertificateSet_ != false) { + output.writeBool(6, caCertificateSet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientKey_); + } + if (clientKeySet_ != false) { + 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_); + } + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().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 = (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 = (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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.MysqlSslConfig 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlSslConfig.class, com.google.cloud.datastream.v1.MysqlSslConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlSslConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + clientKey_ = ""; + + clientKeySet_ = false; + + clientCertificate_ = ""; + + clientCertificateSet_ = false; + + caCertificate_ = ""; + + caCertificateSet_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlSslConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSslConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSslConfig build() { + com.google.cloud.datastream.v1.MysqlSslConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.clientKey_ = clientKey_; + result.clientKeySet_ = clientKeySet_; + result.clientCertificate_ = clientCertificate_; + result.clientCertificateSet_ = clientCertificateSet_; + result.caCertificate_ = caCertificate_; + result.caCertificateSet_ = caCertificateSet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSslConfig other) { + if (other == com.google.cloud.datastream.v1.MysqlSslConfig.getDefaultInstance()) return this; + if (!other.getClientKey().isEmpty()) { + clientKey_ = other.clientKey_; + onChanged(); + } + if (other.getClientKeySet() != false) { + setClientKeySet(other.getClientKeySet()); + } + if (!other.getClientCertificate().isEmpty()) { + clientCertificate_ = other.clientCertificate_; + onChanged(); + } + if (other.getClientCertificateSet() != false) { + setClientCertificateSet(other.getClientCertificateSet()); + } + if (!other.getCaCertificate().isEmpty()) { + caCertificate_ = other.caCertificate_; + onChanged(); + } + if (other.getCaCertificateSet() != false) { + setCaCertificateSet(other.getCaCertificateSet()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlSslConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlSslConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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
+     * 'ca_certificate' fields are mandatory.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + clientKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Input only. PEM-encoded private key associated with the Client Certificate.
+     * If this field is used then the 'client_certificate' and the
+     * 'ca_certificate' fields are mandatory.
+     * 
+ * + * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for clientKey. + */ + 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); + clientKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input only. PEM-encoded private key associated with the Client Certificate.
+     * If this field is used then the 'client_certificate' and the
+     * 'ca_certificate' fields are mandatory.
+     * 
+ * + * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * 'ca_certificate' fields are mandatory.
+     * 
+ * + * 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
+     * 'ca_certificate' fields are mandatory.
+     * 
+ * + * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The bytes for clientKey to set. + * @return This builder for chaining. + */ + public Builder setClientKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientKey_ = value; + onChanged(); + return this; + } + + 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 + 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; + } + + 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
+     * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + clientCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Input only. PEM-encoded certificate that will be used by the replica to
+     * authenticate against the source database server. If this field is used
+     * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+     * 
+ * + * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for clientCertificate. + */ + 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); + clientCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input only. PEM-encoded certificate that will be used by the replica to
+     * authenticate against the source database server. If this field is used
+     * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+     * 
+ * + * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+     * 
+ * + * 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
+     * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+     * 
+ * + * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The bytes for clientCertificate to set. + * @return This builder for chaining. + */ + public Builder setClientCertificateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + clientCertificate_ = value; + onChanged(); + return this; + } + + 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 + 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; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + caCertificate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = caCertificate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + caCertificate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Input only. PEM-encoded certificate of the CA that signed the source
+     * database server's certificate.
+     * 
+ * + * string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * @param value The caCertificate to set. + * @return This builder for chaining. + */ + public Builder setCaCertificate( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + caCertificate_ = value; + onChanged(); + return this; + } + + 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 + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java new file mode 100644 index 00000000..907d4085 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlSslConfigOrBuilder.java @@ -0,0 +1,109 @@ +// 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 + // @@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
+   * 'ca_certificate' fields are mandatory.
+   * 
+ * + * 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
+   * 'ca_certificate' fields are mandatory.
+   * 
+ * + * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for clientKey. + */ + 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
+   * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+   * 
+ * + * 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
+   * then the 'client_key' and the 'ca_certificate' fields are mandatory.
+   * 
+ * + * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * @return The bytes for clientCertificate. + */ + 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(); + + /** + *
+   * 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java new file mode 100644 index 00000000..8219020d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTable.java @@ -0,0 +1,1082 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.MysqlTable) + MysqlTableOrBuilder { +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(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + mysqlColumns_.add( + input.readMessage(com.google.cloud.datastream.v1.MysqlColumn.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlColumns_ = java.util.Collections.unmodifiableList(mysqlColumns_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + @java.lang.Override + public java.util.List getMysqlColumnsList() { + return mysqlColumns_; + } + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + @java.lang.Override + public java.util.List + getMysqlColumnsOrBuilderList() { + return mysqlColumns_; + } + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + @java.lang.Override + public int getMysqlColumnsCount() { + return mysqlColumns_.size(); + } + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + @java.lang.Override + 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 lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + for (int i = 0; i < mysqlColumns_.size(); i++) { + output.writeMessage(2, mysqlColumns_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getTable() + .equals(other.getTable())) return false; + if (!getMysqlColumnsList() + .equals(other.getMysqlColumnsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getMysqlColumnsCount() > 0) { + hash = (37 * hash) + MYSQL_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getMysqlColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.MysqlTable 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.MysqlTable.class, com.google.cloud.datastream.v1.MysqlTable.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.MysqlTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMysqlColumnsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + table_ = ""; + + if (mysqlColumnsBuilder_ == null) { + mysqlColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + mysqlColumnsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_MysqlTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlTable getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlTable build() { + com.google.cloud.datastream.v1.MysqlTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.table_ = table_; + if (mysqlColumnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mysqlColumns_ = java.util.Collections.unmodifiableList(mysqlColumns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mysqlColumns_ = mysqlColumns_; + } else { + result.mysqlColumns_ = mysqlColumnsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlTable other) { + if (other == com.google.cloud.datastream.v1.MysqlTable.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + if (mysqlColumnsBuilder_ == null) { + if (!other.mysqlColumns_.isEmpty()) { + if (mysqlColumns_.isEmpty()) { + mysqlColumns_ = other.mysqlColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.addAll(other.mysqlColumns_); + } + onChanged(); + } + } else { + if (!other.mysqlColumns_.isEmpty()) { + if (mysqlColumnsBuilder_.isEmpty()) { + mysqlColumnsBuilder_.dispose(); + mysqlColumnsBuilder_ = null; + mysqlColumns_ = other.mysqlColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + mysqlColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlColumnsFieldBuilder() : null; + } else { + mysqlColumnsBuilder_.addAllMessages(other.mysqlColumns_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.MysqlTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.MysqlTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Table name.
+     * 
+ * + * string table = 1; + * @return The bytes for table. + */ + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Table name.
+     * 
+ * + * string table = 1; + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + + private java.util.List mysqlColumns_ = + java.util.Collections.emptyList(); + private void ensureMysqlColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public java.util.List getMysqlColumnsList() { + if (mysqlColumnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mysqlColumns_); + } else { + return mysqlColumnsBuilder_.getMessageList(); + } + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public int getMysqlColumnsCount() { + if (mysqlColumnsBuilder_ == null) { + return mysqlColumns_.size(); + } else { + return mysqlColumnsBuilder_.getCount(); + } + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) { + if (mysqlColumnsBuilder_ == null) { + return mysqlColumns_.get(index); + } else { + return mysqlColumnsBuilder_.getMessage(index); + } + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder setMysqlColumns( + int index, com.google.cloud.datastream.v1.MysqlColumn value) { + if (mysqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlColumnsIsMutable(); + mysqlColumns_.set(index, value); + onChanged(); + } else { + mysqlColumnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder setMysqlColumns( + int index, com.google.cloud.datastream.v1.MysqlColumn.Builder builderForValue) { + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + mysqlColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder addMysqlColumns(com.google.cloud.datastream.v1.MysqlColumn value) { + if (mysqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(value); + onChanged(); + } else { + mysqlColumnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder addMysqlColumns( + int index, com.google.cloud.datastream.v1.MysqlColumn value) { + if (mysqlColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(index, value); + onChanged(); + } else { + mysqlColumnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder addMysqlColumns( + com.google.cloud.datastream.v1.MysqlColumn.Builder builderForValue) { + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(builderForValue.build()); + onChanged(); + } else { + mysqlColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder addMysqlColumns( + int index, com.google.cloud.datastream.v1.MysqlColumn.Builder builderForValue) { + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + mysqlColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder addAllMysqlColumns( + java.lang.Iterable values) { + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlColumns_); + onChanged(); + } else { + mysqlColumnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder clearMysqlColumns() { + if (mysqlColumnsBuilder_ == null) { + mysqlColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mysqlColumnsBuilder_.clear(); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public Builder removeMysqlColumns(int index) { + if (mysqlColumnsBuilder_ == null) { + ensureMysqlColumnsIsMutable(); + mysqlColumns_.remove(index); + onChanged(); + } else { + mysqlColumnsBuilder_.remove(index); + } + return this; + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + 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 lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder( + int index) { + if (mysqlColumnsBuilder_ == null) { + return mysqlColumns_.get(index); } else { + return mysqlColumnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + public java.util.List + getMysqlColumnsOrBuilderList() { + if (mysqlColumnsBuilder_ != null) { + return mysqlColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mysqlColumns_); + } + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * 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()); + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * 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()); + } + /** + *
+     * MySQL columns in the database.
+     * When unspecified as part of include/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + 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> + 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()); + mysqlColumns_ = null; + } + return mysqlColumnsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java new file mode 100644 index 00000000..6b54f68e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/MysqlTableOrBuilder.java @@ -0,0 +1,83 @@ +// 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 + // @@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(); + + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + java.util.List + getMysqlColumnsList(); + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index); + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + int getMysqlColumnsCount(); + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + java.util.List + getMysqlColumnsOrBuilderList(); + /** + *
+   * MySQL columns in the database.
+   * When unspecified as part of include/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.MysqlColumn mysql_columns = 2; + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java new file mode 100644 index 00000000..c25434df --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadata.java @@ -0,0 +1,1892 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OperationMetadata) + OperationMetadataOrBuilder { +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_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OperationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperationMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + 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(); + + 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(); + + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the endTime field is set. + */ + @java.lang.Override + 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]; + * @return The endTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + 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 + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + 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 + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the validationResult field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * Output only. Results of executed validations if there are any.
+   * 
+ * + * .google.cloud.datastream.v1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationResultOrBuilder() { + return getValidationResult(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); + } + if (validationResult_ != null) { + output.writeMessage(8, getValidationResult()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (hasValidationResult() != other.hasValidationResult()) return false; + if (hasValidationResult()) { + if (!getValidationResult() + .equals(other.getValidationResult())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().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 = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + if (hasValidationResult()) { + hash = (37 * hash) + VALIDATION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getValidationResult().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OperationMetadata.class, com.google.cloud.datastream.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + target_ = ""; + + verb_ = ""; + + statusMessage_ = ""; + + requestedCancellation_ = false; + + apiVersion_ = ""; + + if (validationResultBuilder_ == null) { + validationResult_ = null; + } else { + validationResult_ = null; + validationResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OperationMetadata build() { + com.google.cloud.datastream.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OperationMetadata buildPartial() { + com.google.cloud.datastream.v1.OperationMetadata result = new com.google.cloud.datastream.v1.OperationMetadata(this); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.target_ = target_; + result.verb_ = verb_; + result.statusMessage_ = statusMessage_; + result.requestedCancellation_ = requestedCancellation_; + result.apiVersion_ = apiVersion_; + if (validationResultBuilder_ == null) { + result.validationResult_ = validationResult_; + } else { + result.validationResult_ = validationResultBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OperationMetadata other) { + if (other == com.google.cloud.datastream.v1.OperationMetadata.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + onChanged(); + } + if (other.hasValidationResult()) { + mergeValidationResult(other.getValidationResult()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OperationMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OperationMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * Output only. The time the operation was created.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The time the operation was created.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The time the operation was created.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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]; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + endTime_ = null; + } + return endTimeBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + target_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + verb_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + statusMessage_ = value; + onChanged(); + return this; + } + + private boolean requestedCancellation_ ; + /** + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have successfully been cancelled
+     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + /** + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have successfully been cancelled
+     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * 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
+     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + + requestedCancellation_ = false; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + apiVersion_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. Results of executed validations if there are any.
+     * 
+ * + * .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]; + * @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_; + } 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]; + */ + public Builder setValidationResult(com.google.cloud.datastream.v1.ValidationResult value) { + if (validationResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + validationResult_ = value; + onChanged(); + } else { + validationResultBuilder_.setMessage(value); + } + + 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]; + */ + public Builder setValidationResult( + com.google.cloud.datastream.v1.ValidationResult.Builder builderForValue) { + if (validationResultBuilder_ == null) { + validationResult_ = builderForValue.build(); + onChanged(); + } else { + validationResultBuilder_.setMessage(builderForValue.build()); + } + + 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]; + */ + 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(); + } else { + validationResult_ = value; + } + onChanged(); + } else { + validationResultBuilder_.mergeFrom(value); + } + + 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]; + */ + public Builder clearValidationResult() { + if (validationResultBuilder_ == null) { + validationResult_ = null; + onChanged(); + } else { + validationResult_ = null; + validationResultBuilder_ = null; + } + + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * Output only. Results of executed validations if there are any.
+     * 
+ * + * .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> + 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()); + validationResult_ = null; + } + return validationResultBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.OperationMetadata getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java new file mode 100644 index 00000000..1ea49f22 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,183 @@ +// 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 + // @@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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have successfully been cancelled
+   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * 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(); + + /** + *
+   * Output only. Results of executed validations if there are any.
+   * 
+ * + * .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]; + * @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]; + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java new file mode 100644 index 00000000..9601cd0d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumn.java @@ -0,0 +1,1407 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleColumn) + OracleColumnOrBuilder { +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_ = ""; + encoding_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OracleColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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: { + + scale_ = input.readInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getColumn() { + java.lang.Object ref = column_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDataType() { + java.lang.Object ref = dataType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LENGTH_FIELD_NUMBER = 3; + private int length_; + /** + *
+   * Column length.
+   * 
+ * + * int32 length = 3; + * @return The length. + */ + @java.lang.Override + public int getLength() { + return length_; + } + + public static final int PRECISION_FIELD_NUMBER = 4; + private int precision_; + /** + *
+   * Column precision.
+   * 
+ * + * int32 precision = 4; + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 5; + private int scale_; + /** + *
+   * Column scale.
+   * 
+ * + * int32 scale = 5; + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + 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 + public java.lang.String getEncoding() { + java.lang.Object ref = encoding_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + encoding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getPrimaryKey() { + return primaryKey_; + } + + 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 + public boolean getNullable() { + return nullable_; + } + + 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 + public int getOrdinalPosition() { + return ordinalPosition_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataType_); + } + if (length_ != 0) { + output.writeInt32(3, length_); + } + if (precision_ != 0) { + output.writeInt32(4, precision_); + } + if (scale_ != 0) { + output.writeInt32(5, scale_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, encoding_); + } + if (primaryKey_ != false) { + output.writeBool(7, primaryKey_); + } + if (nullable_ != false) { + output.writeBool(8, nullable_); + } + if (ordinalPosition_ != 0) { + output.writeInt32(9, ordinalPosition_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(column_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, column_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dataType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); + } + if (length_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, precision_); + } + if (scale_ != 0) { + 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_); + } + if (nullable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, nullable_); + } + if (ordinalPosition_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, ordinalPosition_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + COLUMN_FIELD_NUMBER; + hash = (53 * hash) + getColumn().hashCode(); + hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDataType().hashCode(); + hash = (37 * hash) + LENGTH_FIELD_NUMBER; + hash = (53 * hash) + getLength(); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + 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 = (37 * hash) + NULLABLE_FIELD_NUMBER; + 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(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.OracleColumn 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleColumn.class, com.google.cloud.datastream.v1.OracleColumn.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + column_ = ""; + + dataType_ = ""; + + length_ = 0; + + precision_ = 0; + + scale_ = 0; + + encoding_ = ""; + + primaryKey_ = false; + + nullable_ = false; + + ordinalPosition_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleColumn_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleColumn getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleColumn build() { + com.google.cloud.datastream.v1.OracleColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.column_ = column_; + result.dataType_ = dataType_; + result.length_ = length_; + result.precision_ = precision_; + result.scale_ = scale_; + result.encoding_ = encoding_; + result.primaryKey_ = primaryKey_; + result.nullable_ = nullable_; + result.ordinalPosition_ = ordinalPosition_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleColumn other) { + if (other == com.google.cloud.datastream.v1.OracleColumn.getDefaultInstance()) return this; + if (!other.getColumn().isEmpty()) { + column_ = other.column_; + onChanged(); + } + if (!other.getDataType().isEmpty()) { + dataType_ = other.dataType_; + onChanged(); + } + if (other.getLength() != 0) { + setLength(other.getLength()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + if (!other.getEncoding().isEmpty()) { + encoding_ = other.encoding_; + onChanged(); + } + if (other.getPrimaryKey() != false) { + setPrimaryKey(other.getPrimaryKey()); + } + if (other.getNullable() != false) { + setNullable(other.getNullable()); + } + if (other.getOrdinalPosition() != 0) { + setOrdinalPosition(other.getOrdinalPosition()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OracleColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + column_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Column name.
+     * 
+ * + * string column = 1; + * @return The bytes for column. + */ + 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); + column_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Column name.
+     * 
+ * + * string column = 1; + * @param value The column to set. + * @return This builder for chaining. + */ + public Builder setColumn( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + column_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + dataType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The Oracle data type.
+     * 
+ * + * string data_type = 2; + * @return The bytes for dataType. + */ + 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); + dataType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The Oracle data type.
+     * 
+ * + * string data_type = 2; + * @param value The dataType to set. + * @return This builder for chaining. + */ + public Builder setDataType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + dataType_ = value; + onChanged(); + return this; + } + + private int length_ ; + /** + *
+     * Column length.
+     * 
+ * + * int32 length = 3; + * @return The length. + */ + @java.lang.Override + 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_ ; + /** + *
+     * Column precision.
+     * 
+ * + * int32 precision = 4; + * @return The precision. + */ + @java.lang.Override + 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_ ; + /** + *
+     * Column scale.
+     * 
+ * + * int32 scale = 5; + * @return The scale. + */ + @java.lang.Override + 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 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; + java.lang.String s = bs.toStringUtf8(); + encoding_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Column encoding.
+     * 
+ * + * string encoding = 6; + * @return The bytes for encoding. + */ + 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); + encoding_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Column encoding.
+     * 
+ * + * string encoding = 6; + * @param value The encoding to set. + * @return This builder for chaining. + */ + public Builder setEncoding( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + encoding_ = value; + onChanged(); + return this; + } + + private boolean primaryKey_ ; + /** + *
+     * Whether or not the column represents a primary key.
+     * 
+ * + * bool primary_key = 7; + * @return The primaryKey. + */ + @java.lang.Override + 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_ ; + /** + *
+     * Whether or not the column can accept a null value.
+     * 
+ * + * bool nullable = 8; + * @return The nullable. + */ + @java.lang.Override + 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_ ; + /** + *
+     * The ordinal position of the column in the table.
+     * 
+ * + * int32 ordinal_position = 9; + * @return The ordinalPosition. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java new file mode 100644 index 00000000..6e4f0635 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleColumnOrBuilder.java @@ -0,0 +1,129 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java new file mode 100644 index 00000000..8d61b16c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfile.java @@ -0,0 +1,1501 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleProfile) + OracleProfileOrBuilder { +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_ = ""; + password_ = ""; + databaseService_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OracleProfile(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleProfile( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + + username_ = s; + break; + } + case 34: { + 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; + } + 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; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetConnectionAttributes(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getPort() { + return port_; + } + + 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 + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDatabaseService() { + java.lang.Object ref = databaseService_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + databaseService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; + private com.google.protobuf.MapField + internalGetConnectionAttributes() { + if (connectionAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + } + return connectionAttributes_; + } + + 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 java.lang.NullPointerException(); } + return internalGetConnectionAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectionAttributes() { + return getConnectionAttributesMap(); + } + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + @java.lang.Override + + public java.util.Map getConnectionAttributesMap() { + return internalGetConnectionAttributes().getMap(); + } + /** + *
+   * Connection string attributes
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + @java.lang.Override + + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (port_ != 0) { + output.writeInt32(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, password_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseService_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConnectionAttributes(), + ConnectionAttributesDefaultEntryHolder.defaultEntry, + 6); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); + } + if (port_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); + } + 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__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + hash = (37 * hash) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + DATABASE_SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseService().hashCode(); + if (!internalGetConnectionAttributes().getMap().isEmpty()) { + hash = (37 * hash) + CONNECTION_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnectionAttributes().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.OracleProfile 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 6: + return internalGetConnectionAttributes(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 6: + return internalGetMutableConnectionAttributes(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleProfile.class, com.google.cloud.datastream.v1.OracleProfile.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleProfile.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + hostname_ = ""; + + port_ = 0; + + username_ = ""; + + password_ = ""; + + databaseService_ = ""; + + internalGetMutableConnectionAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleProfile_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleProfile getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleProfile build() { + com.google.cloud.datastream.v1.OracleProfile result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.hostname_ = hostname_; + result.port_ = port_; + result.username_ = username_; + result.password_ = password_; + result.databaseService_ = databaseService_; + result.connectionAttributes_ = internalGetConnectionAttributes(); + result.connectionAttributes_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleProfile other) { + if (other == com.google.cloud.datastream.v1.OracleProfile.getDefaultInstance()) return this; + if (!other.getHostname().isEmpty()) { + hostname_ = other.hostname_; + onChanged(); + } + if (other.getPort() != 0) { + setPort(other.getPort()); + } + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + onChanged(); + } + if (!other.getDatabaseService().isEmpty()) { + databaseService_ = other.databaseService_; + onChanged(); + } + internalGetMutableConnectionAttributes().mergeFrom( + other.internalGetConnectionAttributes()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleProfile parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OracleProfile) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + hostname_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Hostname for the Oracle connection.
+     * 
+ * + * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The hostname to set. + * @return This builder for chaining. + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + hostname_ = value; + onChanged(); + return this; + } + + private int port_ ; + /** + *
+     * Port for the Oracle connection, default value is 1521.
+     * 
+ * + * int32 port = 2; + * @return The port. + */ + @java.lang.Override + 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; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Username for the Oracle connection.
+     * 
+ * + * string username = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + username_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Password for the Oracle connection.
+     * 
+ * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + password_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + databaseService_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = databaseService_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + databaseService_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Database for the Oracle connection.
+     * 
+ * + * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param value The databaseService to set. + * @return This builder for chaining. + */ + public Builder setDatabaseService( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + 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 + internalGetConnectionAttributes() { + if (connectionAttributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + } + return connectionAttributes_; + } + private com.google.protobuf.MapField + internalGetMutableConnectionAttributes() { + onChanged();; + if (connectionAttributes_ == null) { + connectionAttributes_ = com.google.protobuf.MapField.newMapField( + ConnectionAttributesDefaultEntryHolder.defaultEntry); + } + if (!connectionAttributes_.isMutable()) { + connectionAttributes_ = connectionAttributes_.copy(); + } + return connectionAttributes_; + } + + 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 java.lang.NullPointerException(); } + return internalGetConnectionAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectionAttributes() { + return getConnectionAttributesMap(); + } + /** + *
+     * Connection string attributes
+     * 
+ * + * map<string, string> connection_attributes = 6; + */ + @java.lang.Override + + public java.util.Map getConnectionAttributesMap() { + return internalGetConnectionAttributes().getMap(); + } + /** + *
+     * Connection string attributes
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Connection string attributes
+     * 
+ * + * map<string, string> connection_attributes = 6; + */ + @java.lang.Override + + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConnectionAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConnectionAttributes() { + 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 java.lang.NullPointerException(); } + internalGetMutableConnectionAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java new file mode 100644 index 00000000..870b97b2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleProfileOrBuilder.java @@ -0,0 +1,153 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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(); + + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + int getConnectionAttributesCount(); + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + boolean containsConnectionAttributes( + java.lang.String key); + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConnectionAttributes(); + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + java.util.Map + getConnectionAttributesMap(); + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + + java.lang.String getConnectionAttributesOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Connection string attributes
+   * 
+ * + * map<string, string> connection_attributes = 6; + */ + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java new file mode 100644 index 00000000..e9681b4c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbms.java @@ -0,0 +1,870 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleRdbms) + OracleRdbmsOrBuilder { +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) { + return new OracleRdbms(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleRdbms( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + oracleSchemas_ = java.util.Collections.unmodifiableList(oracleSchemas_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + @java.lang.Override + public java.util.List getOracleSchemasList() { + return oracleSchemas_; + } + /** + *
+   * Oracle schemas/databases in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + @java.lang.Override + public java.util.List + getOracleSchemasOrBuilderList() { + return oracleSchemas_; + } + /** + *
+   * Oracle schemas/databases in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + @java.lang.Override + public int getOracleSchemasCount() { + return oracleSchemas_.size(); + } + /** + *
+   * Oracle schemas/databases in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { + return oracleSchemas_.get(index); + } + /** + *
+   * Oracle schemas/databases in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < oracleSchemas_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, oracleSchemas_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getOracleSchemasList() + .equals(other.getOracleSchemasList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOracleSchemasCount() > 0) { + hash = (37 * hash) + ORACLE_SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getOracleSchemasList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.OracleRdbms 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleRdbms.class, com.google.cloud.datastream.v1.OracleRdbms.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleRdbms.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOracleSchemasFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (oracleSchemasBuilder_ == null) { + oracleSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + oracleSchemasBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleRdbms_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbms getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbms build() { + com.google.cloud.datastream.v1.OracleRdbms result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (oracleSchemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + oracleSchemas_ = java.util.Collections.unmodifiableList(oracleSchemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oracleSchemas_ = oracleSchemas_; + } else { + result.oracleSchemas_ = oracleSchemasBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleRdbms other) { + if (other == com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance()) return this; + if (oracleSchemasBuilder_ == null) { + if (!other.oracleSchemas_.isEmpty()) { + if (oracleSchemas_.isEmpty()) { + oracleSchemas_ = other.oracleSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOracleSchemasIsMutable(); + oracleSchemas_.addAll(other.oracleSchemas_); + } + onChanged(); + } + } else { + if (!other.oracleSchemas_.isEmpty()) { + if (oracleSchemasBuilder_.isEmpty()) { + oracleSchemasBuilder_.dispose(); + oracleSchemasBuilder_ = null; + oracleSchemas_ = other.oracleSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + oracleSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleSchemasFieldBuilder() : null; + } else { + oracleSchemasBuilder_.addAllMessages(other.oracleSchemas_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleRdbms parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OracleRdbms) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List oracleSchemas_ = + java.util.Collections.emptyList(); + private void ensureOracleSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public java.util.List getOracleSchemasList() { + if (oracleSchemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(oracleSchemas_); + } else { + return oracleSchemasBuilder_.getMessageList(); + } + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public int getOracleSchemasCount() { + if (oracleSchemasBuilder_ == null) { + return oracleSchemas_.size(); + } else { + return oracleSchemasBuilder_.getCount(); + } + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { + if (oracleSchemasBuilder_ == null) { + return oracleSchemas_.get(index); + } else { + return oracleSchemasBuilder_.getMessage(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) { + if (oracleSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleSchemasIsMutable(); + oracleSchemas_.set(index, value); + onChanged(); + } else { + oracleSchemasBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * 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.Builder builderForValue) { + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.set(index, builderForValue.build()); + onChanged(); + } else { + oracleSchemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public Builder addOracleSchemas(com.google.cloud.datastream.v1.OracleSchema value) { + if (oracleSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(value); + onChanged(); + } else { + oracleSchemasBuilder_.addMessage(value); + } + 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) { + if (oracleSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(index, value); + onChanged(); + } else { + oracleSchemasBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public Builder addOracleSchemas( + com.google.cloud.datastream.v1.OracleSchema.Builder builderForValue) { + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(builderForValue.build()); + onChanged(); + } else { + oracleSchemasBuilder_.addMessage(builderForValue.build()); + } + 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.Builder builderForValue) { + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.add(index, builderForValue.build()); + onChanged(); + } else { + oracleSchemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public Builder addAllOracleSchemas( + java.lang.Iterable values) { + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleSchemas_); + onChanged(); + } else { + oracleSchemasBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public Builder clearOracleSchemas() { + if (oracleSchemasBuilder_ == null) { + oracleSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + oracleSchemasBuilder_.clear(); + } + return this; + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public Builder removeOracleSchemas(int index) { + if (oracleSchemasBuilder_ == null) { + ensureOracleSchemasIsMutable(); + oracleSchemas_.remove(index); + onChanged(); + } else { + oracleSchemasBuilder_.remove(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) { + return getOracleSchemasFieldBuilder().getBuilder(index); + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( + int index) { + if (oracleSchemasBuilder_ == null) { + 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() { + if (oracleSchemasBuilder_ != null) { + return oracleSchemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(oracleSchemas_); + } + } + /** + *
+     * 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() { + 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()); + } + /** + *
+     * Oracle schemas/databases in the database server.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + 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> + 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>( + oracleSchemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + oracleSchemas_ = null; + } + return oracleSchemasBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java new file mode 100644 index 00000000..edefd8e8 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleRdbmsOrBuilder.java @@ -0,0 +1,53 @@ +// 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 + // @@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(); + /** + *
+   * Oracle schemas/databases in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + 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; + */ + int getOracleSchemasCount(); + /** + *
+   * Oracle schemas/databases in the database server.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleSchema oracle_schemas = 1; + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java new file mode 100644 index 00000000..968322c0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchema.java @@ -0,0 +1,1036 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSchema) + OracleSchemaOrBuilder { +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(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OracleSchema(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleSchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + oracleTables_.add( + input.readMessage(com.google.cloud.datastream.v1.OracleTable.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + oracleTables_ = java.util.Collections.unmodifiableList(oracleTables_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORACLE_TABLES_FIELD_NUMBER = 2; + private java.util.List oracleTables_; + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + @java.lang.Override + public java.util.List getOracleTablesList() { + return oracleTables_; + } + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + @java.lang.Override + public java.util.List + getOracleTablesOrBuilderList() { + return oracleTables_; + } + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + @java.lang.Override + public int getOracleTablesCount() { + return oracleTables_.size(); + } + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { + return oracleTables_.get(index); + } + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + for (int i = 0; i < oracleTables_.size(); i++) { + output.writeMessage(2, oracleTables_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getOracleTablesList() + .equals(other.getOracleTablesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + if (getOracleTablesCount() > 0) { + hash = (37 * hash) + ORACLE_TABLES_FIELD_NUMBER; + hash = (53 * hash) + getOracleTablesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.OracleSchema 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSchema.class, com.google.cloud.datastream.v1.OracleSchema.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleSchema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOracleTablesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + schema_ = ""; + + if (oracleTablesBuilder_ == null) { + oracleTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + oracleTablesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSchema_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSchema getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSchema build() { + com.google.cloud.datastream.v1.OracleSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.schema_ = schema_; + if (oracleTablesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + oracleTables_ = java.util.Collections.unmodifiableList(oracleTables_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oracleTables_ = oracleTables_; + } else { + result.oracleTables_ = oracleTablesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSchema other) { + if (other == com.google.cloud.datastream.v1.OracleSchema.getDefaultInstance()) return this; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (oracleTablesBuilder_ == null) { + if (!other.oracleTables_.isEmpty()) { + if (oracleTables_.isEmpty()) { + oracleTables_ = other.oracleTables_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOracleTablesIsMutable(); + oracleTables_.addAll(other.oracleTables_); + } + onChanged(); + } + } else { + if (!other.oracleTables_.isEmpty()) { + if (oracleTablesBuilder_.isEmpty()) { + oracleTablesBuilder_.dispose(); + oracleTablesBuilder_ = null; + oracleTables_ = other.oracleTables_; + bitField0_ = (bitField0_ & ~0x00000001); + oracleTablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleTablesFieldBuilder() : null; + } else { + oracleTablesBuilder_.addAllMessages(other.oracleTables_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OracleSchema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * @return The bytes for schema. + */ + 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); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Schema name.
+     * 
+ * + * string schema = 1; + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + private java.util.List oracleTables_ = + java.util.Collections.emptyList(); + private void ensureOracleTablesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public java.util.List getOracleTablesList() { + if (oracleTablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(oracleTables_); + } else { + return oracleTablesBuilder_.getMessageList(); + } + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public int getOracleTablesCount() { + if (oracleTablesBuilder_ == null) { + return oracleTables_.size(); + } else { + return oracleTablesBuilder_.getCount(); + } + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { + if (oracleTablesBuilder_ == null) { + return oracleTables_.get(index); + } else { + return oracleTablesBuilder_.getMessage(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) { + if (oracleTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleTablesIsMutable(); + oracleTables_.set(index, value); + onChanged(); + } else { + oracleTablesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public Builder setOracleTables( + int index, com.google.cloud.datastream.v1.OracleTable.Builder builderForValue) { + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.set(index, builderForValue.build()); + onChanged(); + } else { + oracleTablesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public Builder addOracleTables(com.google.cloud.datastream.v1.OracleTable value) { + if (oracleTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleTablesIsMutable(); + oracleTables_.add(value); + onChanged(); + } else { + oracleTablesBuilder_.addMessage(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) { + if (oracleTablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleTablesIsMutable(); + oracleTables_.add(index, value); + onChanged(); + } else { + oracleTablesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public Builder addOracleTables( + com.google.cloud.datastream.v1.OracleTable.Builder builderForValue) { + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.add(builderForValue.build()); + onChanged(); + } else { + oracleTablesBuilder_.addMessage(builderForValue.build()); + } + 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.Builder builderForValue) { + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.add(index, builderForValue.build()); + onChanged(); + } else { + oracleTablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public Builder addAllOracleTables( + java.lang.Iterable values) { + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleTables_); + onChanged(); + } else { + oracleTablesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public Builder clearOracleTables() { + if (oracleTablesBuilder_ == null) { + oracleTables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + oracleTablesBuilder_.clear(); + } + return this; + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + public Builder removeOracleTables(int index) { + if (oracleTablesBuilder_ == null) { + ensureOracleTablesIsMutable(); + oracleTables_.remove(index); + onChanged(); + } else { + oracleTablesBuilder_.remove(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) { + 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) { + if (oracleTablesBuilder_ == null) { + 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() { + if (oracleTablesBuilder_ != null) { + return oracleTablesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(oracleTables_); + } + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * 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()); + } + /** + *
+     * 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()); + } + /** + *
+     * Tables in the schema.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + 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> + 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()); + oracleTables_ = null; + } + return oracleTablesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java new file mode 100644 index 00000000..4518baf5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSchemaOrBuilder.java @@ -0,0 +1,73 @@ +// 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 + // @@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(); + + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + java.util.List + getOracleTablesList(); + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + com.google.cloud.datastream.v1.OracleTable getOracleTables(int index); + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + int getOracleTablesCount(); + /** + *
+   * Tables in the schema.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleTable oracle_tables = 2; + */ + 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); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java new file mode 100644 index 00000000..c0a7af1d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfig.java @@ -0,0 +1,899 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleSourceConfig) + OracleSourceConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use OracleSourceConfig.newBuilder() to construct. + private OracleSourceConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OracleSourceConfig() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OracleSourceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleSourceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.class, com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + } + + 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 + 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_; + } + /** + *
+   * Oracle objects to include in the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { + return getIncludeObjects(); + } + + 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 + 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_; + } + /** + *
+   * Oracle objects to exclude from the stream.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { + return getExcludeObjects(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (includeObjects_ != null) { + output.writeMessage(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + output.writeMessage(2, getExcludeObjects()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (includeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getIncludeObjects()); + } + if (excludeObjects_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExcludeObjects()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasIncludeObjects() != other.hasIncludeObjects()) return false; + if (hasIncludeObjects()) { + if (!getIncludeObjects() + .equals(other.getIncludeObjects())) return false; + } + if (hasExcludeObjects() != other.hasExcludeObjects()) return false; + if (hasExcludeObjects()) { + if (!getExcludeObjects() + .equals(other.getExcludeObjects())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasIncludeObjects()) { + hash = (37 * hash) + INCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeObjects().hashCode(); + } + if (hasExcludeObjects()) { + hash = (37 * hash) + EXCLUDE_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeObjects().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleSourceConfig.class, com.google.cloud.datastream.v1.OracleSourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleSourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleSourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig build() { + com.google.cloud.datastream.v1.OracleSourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfig buildPartial() { + com.google.cloud.datastream.v1.OracleSourceConfig result = new com.google.cloud.datastream.v1.OracleSourceConfig(this); + if (includeObjectsBuilder_ == null) { + result.includeObjects_ = includeObjects_; + } else { + result.includeObjects_ = includeObjectsBuilder_.build(); + } + if (excludeObjectsBuilder_ == null) { + result.excludeObjects_ = excludeObjects_; + } else { + result.excludeObjects_ = excludeObjectsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleSourceConfig other) { + if (other == com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance()) return this; + if (other.hasIncludeObjects()) { + mergeIncludeObjects(other.getIncludeObjects()); + } + if (other.hasExcludeObjects()) { + mergeExcludeObjects(other.getExcludeObjects()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleSourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OracleSourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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_; + /** + *
+     * 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_; + } else { + return includeObjectsBuilder_.getMessage(); + } + } + /** + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (includeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + includeObjects_ = value; + onChanged(); + } else { + includeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder setIncludeObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (includeObjectsBuilder_ == null) { + includeObjects_ = builderForValue.build(); + onChanged(); + } else { + includeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (includeObjectsBuilder_ == null) { + if (includeObjects_ != null) { + includeObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(includeObjects_).mergeFrom(value).buildPartial(); + } else { + includeObjects_ = value; + } + onChanged(); + } else { + includeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public Builder clearIncludeObjects() { + if (includeObjectsBuilder_ == null) { + includeObjects_ = null; + onChanged(); + } else { + includeObjects_ = null; + includeObjectsBuilder_ = null; + } + + return this; + } + /** + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getIncludeObjectsOrBuilder() { + if (includeObjectsBuilder_ != null) { + return includeObjectsBuilder_.getMessageOrBuilder(); + } else { + return includeObjects_ == null ? + com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : includeObjects_; + } + } + /** + *
+     * Oracle objects to include in the stream.
+     * 
+ * + * .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> + 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()); + includeObjects_ = null; + } + return includeObjectsBuilder_; + } + + 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_; + /** + *
+     * 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_; + } else { + return excludeObjectsBuilder_.getMessage(); + } + } + /** + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludeObjects_ = value; + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder setExcludeObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = builderForValue.build(); + onChanged(); + } else { + excludeObjectsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (excludeObjectsBuilder_ == null) { + if (excludeObjects_ != null) { + excludeObjects_ = + com.google.cloud.datastream.v1.OracleRdbms.newBuilder(excludeObjects_).mergeFrom(value).buildPartial(); + } else { + excludeObjects_ = value; + } + onChanged(); + } else { + excludeObjectsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public Builder clearExcludeObjects() { + if (excludeObjectsBuilder_ == null) { + excludeObjects_ = null; + onChanged(); + } else { + excludeObjects_ = null; + excludeObjectsBuilder_ = null; + } + + return this; + } + /** + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder() { + if (excludeObjectsBuilder_ != null) { + return excludeObjectsBuilder_.getMessageOrBuilder(); + } else { + return excludeObjects_ == null ? + com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance() : excludeObjects_; + } + } + /** + *
+     * Oracle objects to exclude from the stream.
+     * 
+ * + * .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> + 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()); + excludeObjects_ = null; + } + return excludeObjectsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.OracleSourceConfig getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java new file mode 100644 index 00000000..ff3f63ba --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleSourceConfigOrBuilder.java @@ -0,0 +1,63 @@ +// 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 + // @@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.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms include_objects = 1; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.OracleRdbms exclude_objects = 2; + */ + com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java new file mode 100644 index 00000000..da8e6add --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTable.java @@ -0,0 +1,1082 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.OracleTable) + OracleTableOrBuilder { +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(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OracleTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + oracleColumns_.add( + input.readMessage(com.google.cloud.datastream.v1.OracleColumn.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + oracleColumns_ = java.util.Collections.unmodifiableList(oracleColumns_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + @java.lang.Override + public java.util.List getOracleColumnsList() { + return oracleColumns_; + } + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + @java.lang.Override + public java.util.List + getOracleColumnsOrBuilderList() { + return oracleColumns_; + } + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + @java.lang.Override + public int getOracleColumnsCount() { + return oracleColumns_.size(); + } + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) { + return oracleColumns_.get(index); + } + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + for (int i = 0; i < oracleColumns_.size(); i++) { + output.writeMessage(2, oracleColumns_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getTable() + .equals(other.getTable())) return false; + if (!getOracleColumnsList() + .equals(other.getOracleColumnsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + if (getOracleColumnsCount() > 0) { + hash = (37 * hash) + ORACLE_COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getOracleColumnsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.OracleTable 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.OracleTable.class, com.google.cloud.datastream.v1.OracleTable.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.OracleTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOracleColumnsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + table_ = ""; + + if (oracleColumnsBuilder_ == null) { + oracleColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + oracleColumnsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_OracleTable_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleTable getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.OracleTable.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.OracleTable build() { + com.google.cloud.datastream.v1.OracleTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.table_ = table_; + if (oracleColumnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + oracleColumns_ = java.util.Collections.unmodifiableList(oracleColumns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.oracleColumns_ = oracleColumns_; + } else { + result.oracleColumns_ = oracleColumnsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.OracleTable other) { + if (other == com.google.cloud.datastream.v1.OracleTable.getDefaultInstance()) return this; + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + if (oracleColumnsBuilder_ == null) { + if (!other.oracleColumns_.isEmpty()) { + if (oracleColumns_.isEmpty()) { + oracleColumns_ = other.oracleColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOracleColumnsIsMutable(); + oracleColumns_.addAll(other.oracleColumns_); + } + onChanged(); + } + } else { + if (!other.oracleColumns_.isEmpty()) { + if (oracleColumnsBuilder_.isEmpty()) { + oracleColumnsBuilder_.dispose(); + oracleColumnsBuilder_ = null; + oracleColumns_ = other.oracleColumns_; + bitField0_ = (bitField0_ & ~0x00000001); + oracleColumnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleColumnsFieldBuilder() : null; + } else { + oracleColumnsBuilder_.addAllMessages(other.oracleColumns_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.OracleTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.OracleTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Table name.
+     * 
+ * + * string table = 1; + * @return The bytes for table. + */ + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Table name.
+     * 
+ * + * string table = 1; + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + + private java.util.List oracleColumns_ = + java.util.Collections.emptyList(); + private void ensureOracleColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public java.util.List getOracleColumnsList() { + if (oracleColumnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(oracleColumns_); + } else { + return oracleColumnsBuilder_.getMessageList(); + } + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public int getOracleColumnsCount() { + if (oracleColumnsBuilder_ == null) { + return oracleColumns_.size(); + } else { + return oracleColumnsBuilder_.getCount(); + } + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) { + if (oracleColumnsBuilder_ == null) { + return oracleColumns_.get(index); + } else { + return oracleColumnsBuilder_.getMessage(index); + } + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder setOracleColumns( + int index, com.google.cloud.datastream.v1.OracleColumn value) { + if (oracleColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleColumnsIsMutable(); + oracleColumns_.set(index, value); + onChanged(); + } else { + oracleColumnsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder setOracleColumns( + int index, com.google.cloud.datastream.v1.OracleColumn.Builder builderForValue) { + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.set(index, builderForValue.build()); + onChanged(); + } else { + oracleColumnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn value) { + if (oracleColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleColumnsIsMutable(); + oracleColumns_.add(value); + onChanged(); + } else { + oracleColumnsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder addOracleColumns( + int index, com.google.cloud.datastream.v1.OracleColumn value) { + if (oracleColumnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOracleColumnsIsMutable(); + oracleColumns_.add(index, value); + onChanged(); + } else { + oracleColumnsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder addOracleColumns( + com.google.cloud.datastream.v1.OracleColumn.Builder builderForValue) { + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.add(builderForValue.build()); + onChanged(); + } else { + oracleColumnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder addOracleColumns( + int index, com.google.cloud.datastream.v1.OracleColumn.Builder builderForValue) { + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.add(index, builderForValue.build()); + onChanged(); + } else { + oracleColumnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder addAllOracleColumns( + java.lang.Iterable values) { + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleColumns_); + onChanged(); + } else { + oracleColumnsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder clearOracleColumns() { + if (oracleColumnsBuilder_ == null) { + oracleColumns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + oracleColumnsBuilder_.clear(); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public Builder removeOracleColumns(int index) { + if (oracleColumnsBuilder_ == null) { + ensureOracleColumnsIsMutable(); + oracleColumns_.remove(index); + onChanged(); + } else { + oracleColumnsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + 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 inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBuilder( + int index) { + if (oracleColumnsBuilder_ == null) { + return oracleColumns_.get(index); } else { + return oracleColumnsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + public java.util.List + getOracleColumnsOrBuilderList() { + if (oracleColumnsBuilder_ != null) { + return oracleColumnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(oracleColumns_); + } + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * 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()); + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * 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()); + } + /** + *
+     * Oracle columns in the schema.
+     * When unspecified as part of inclue/exclude lists, includes/excludes
+     * everything.
+     * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + 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> + 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>( + oracleColumns_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + oracleColumns_ = null; + } + return oracleColumnsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java new file mode 100644 index 00000000..346258b2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/OracleTableOrBuilder.java @@ -0,0 +1,83 @@ +// 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 + // @@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(); + + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + java.util.List + getOracleColumnsList(); + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index); + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + int getOracleColumnsCount(); + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + java.util.List + getOracleColumnsOrBuilderList(); + /** + *
+   * Oracle columns in the schema.
+   * When unspecified as part of inclue/exclude lists, includes/excludes
+   * everything.
+   * 
+ * + * repeated .google.cloud.datastream.v1.OracleColumn oracle_columns = 2; + */ + 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/PrivateConnection.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java new file mode 100644 index 00000000..b3680655 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnection.java @@ -0,0 +1,2367 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PrivateConnection} + */ +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; + // Use PrivateConnection.newBuilder() to construct. + private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PrivateConnection() { + name_ = ""; + displayName_ = ""; + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PrivateConnection(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrivateConnection( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + + 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; + } + 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(); + + 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(); + } + + break; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * The private connection is in creation state - creating resources.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + *
+     * The private connection has been created with all of its resources.
+     * 
+ * + * CREATED = 2; + */ + CREATED(2), + /** + *
+     * The private connection creation has failed.
+     * 
+ * + * FAILED = 3; + */ + FAILED(3), + /** + *
+     * The private connection is being deleted.
+     * 
+ * + * DELETING = 4; + */ + DELETING(4), + /** + *
+     * Delete request has failed, resource is in invalid state.
+     * 
+ * + * FAILED_TO_DELETE = 5; + */ + FAILED_TO_DELETE(5), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The private connection is in creation state - creating resources.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + /** + *
+     * The private connection has been created with all of its resources.
+     * 
+ * + * CREATED = 2; + */ + public static final int CREATED_VALUE = 2; + /** + *
+     * The private connection creation has failed.
+     * 
+ * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + /** + *
+     * The private connection is being deleted.
+     * 
+ * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + /** + *
+     * Delete request has failed, resource is in invalid state.
+     * 
+ * + * FAILED_TO_DELETE = 5; + */ + public static final int FAILED_TO_DELETE_VALUE = 5; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.PrivateConnection.State) + } + + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return The enum numeric value on the wire for state. + */ + @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]; + * @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; + } + + 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]; + * @return Whether the error field is set. + */ + @java.lang.Override + 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]; + * @return The error. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { + return getError(); + } + + 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 + 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_; + } + /** + *
+   * VPC Peering Config.
+   * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { + return getVpcPeeringConfig(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + 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()) { + output.writeEnum(6, state_); + } + if (error_ != null) { + output.writeMessage(7, getError()); + } + if (vpcPeeringConfig_ != null) { + output.writeMessage(100, getVpcPeeringConfig()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + 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__); + } + 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 (error_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); + } + if (vpcPeeringConfig_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getVpcPeeringConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (state_ != other.state_) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError() + .equals(other.getError())) return false; + } + if (hasVpcPeeringConfig() != other.hasVpcPeeringConfig()) return false; + if (hasVpcPeeringConfig()) { + if (!getVpcPeeringConfig() + .equals(other.getVpcPeeringConfig())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasVpcPeeringConfig()) { + hash = (37 * hash) + VPC_PEERING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getVpcPeeringConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.PrivateConnection} + */ + 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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PrivateConnection.class, com.google.cloud.datastream.v1.PrivateConnection.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PrivateConnection.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + + state_ = 0; + + if (errorBuilder_ == null) { + error_ = null; + } else { + error_ = null; + errorBuilder_ = null; + } + if (vpcPeeringConfigBuilder_ == null) { + vpcPeeringConfig_ = null; + } else { + vpcPeeringConfig_ = null; + vpcPeeringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnection_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnection getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnection build() { + com.google.cloud.datastream.v1.PrivateConnection result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.displayName_ = displayName_; + result.state_ = state_; + if (errorBuilder_ == null) { + result.error_ = error_; + } else { + result.error_ = errorBuilder_.build(); + } + if (vpcPeeringConfigBuilder_ == null) { + result.vpcPeeringConfig_ = vpcPeeringConfig_; + } else { + result.vpcPeeringConfig_ = vpcPeeringConfigBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnection other) { + if (other == com.google.cloud.datastream.v1.PrivateConnection.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasVpcPeeringConfig()) { + mergeVpcPeeringConfig(other.getVpcPeeringConfig()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PrivateConnection parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PrivateConnection) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + 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]; + * @return The enum numeric value on the wire for state. + */ + @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]; + * @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]; + * @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; + } + /** + *
+     * Output only. The state of the Private Connection.
+     * 
+ * + * .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. + */ + public Builder setState(com.google.cloud.datastream.v1.PrivateConnection.State value) { + 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]; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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]; + * @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]; + * @return The error. + */ + public com.google.cloud.datastream.v1.Error getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.cloud.datastream.v1.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.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.cloud.datastream.v1.Error value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(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]; + */ + public Builder setError( + com.google.cloud.datastream.v1.Error.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + + 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]; + */ + 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(); + } else { + error_ = value; + } + onChanged(); + } else { + errorBuilder_.mergeFrom(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]; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + error_ = null; + onChanged(); + } else { + error_ = null; + errorBuilder_ = null; + } + + 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]; + */ + 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]; + */ + 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_; + } + } + /** + *
+     * 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + error_ = null; + } + return errorBuilder_; + } + + 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_; + /** + *
+     * 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_; + } else { + return vpcPeeringConfigBuilder_.getMessage(); + } + } + /** + *
+     * VPC Peering Config.
+     * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConfig value) { + if (vpcPeeringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vpcPeeringConfig_ = value; + onChanged(); + } else { + vpcPeeringConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * VPC Peering Config.
+     * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder setVpcPeeringConfig( + com.google.cloud.datastream.v1.VpcPeeringConfig.Builder builderForValue) { + if (vpcPeeringConfigBuilder_ == null) { + vpcPeeringConfig_ = builderForValue.build(); + onChanged(); + } else { + vpcPeeringConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * VPC Peering Config.
+     * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConfig value) { + if (vpcPeeringConfigBuilder_ == null) { + if (vpcPeeringConfig_ != null) { + vpcPeeringConfig_ = + com.google.cloud.datastream.v1.VpcPeeringConfig.newBuilder(vpcPeeringConfig_).mergeFrom(value).buildPartial(); + } else { + vpcPeeringConfig_ = value; + } + onChanged(); + } else { + vpcPeeringConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * VPC Peering Config.
+     * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public Builder clearVpcPeeringConfig() { + if (vpcPeeringConfigBuilder_ == null) { + vpcPeeringConfig_ = null; + onChanged(); + } else { + vpcPeeringConfig_ = null; + vpcPeeringConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * VPC Peering Config.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { + if (vpcPeeringConfigBuilder_ != null) { + return vpcPeeringConfigBuilder_.getMessageOrBuilder(); + } else { + return vpcPeeringConfig_ == null ? + com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; + } + } + /** + *
+     * VPC Peering Config.
+     * 
+ * + * .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> + 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()); + vpcPeeringConfig_ = null; + } + return vpcPeeringConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.PrivateConnection getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java new file mode 100644 index 00000000..9b30b8d2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionName.java @@ -0,0 +1,231 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class PrivateConnectionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CONNECTION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateConnections/{private_connection}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateConnection; + + @Deprecated + protected PrivateConnectionName() { + project = null; + location = null; + privateConnection = null; + } + + private PrivateConnectionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateConnection = Preconditions.checkNotNull(builder.getPrivateConnection()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static PrivateConnectionName of( + String project, String location, String privateConnection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .build(); + } + + public static String format(String project, String location, String privateConnection) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .build() + .toString(); + } + + public static PrivateConnectionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CONNECTION.validatedMatch( + formattedString, "PrivateConnectionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("private_connection")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (PrivateConnectionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CONNECTION.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateConnection != null) { + fieldMapBuilder.put("private_connection", privateConnection); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CONNECTION.instantiate( + "project", project, "location", location, "private_connection", privateConnection); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + PrivateConnectionName that = ((PrivateConnectionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateConnection, that.privateConnection); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateConnection); + return h; + } + + /** + * Builder for projects/{project}/locations/{location}/privateConnections/{private_connection}. + */ + public static class Builder { + private String project; + private String location; + private String privateConnection; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateConnection(String privateConnection) { + this.privateConnection = privateConnection; + return this; + } + + private Builder(PrivateConnectionName privateConnectionName) { + this.project = privateConnectionName.project; + this.location = privateConnectionName.location; + this.privateConnection = privateConnectionName.privateConnection; + } + + public PrivateConnectionName build() { + return new PrivateConnectionName(this); + } + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java new file mode 100644 index 00000000..a42d6389 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectionOrBuilder.java @@ -0,0 +1,233 @@ +// 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 + // @@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(); + + /** + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + 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(); + + /** + *
+   * Output only. The state of the Private Connection.
+   * 
+ * + * .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]; + * @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]; + * @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]; + * @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]; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.VpcPeeringConfig vpc_peering_config = 100; + */ + com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java new file mode 100644 index 00000000..0dc39fd0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivity.java @@ -0,0 +1,600 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.PrivateConnectivity) + PrivateConnectivityOrBuilder { +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) { + return new PrivateConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PrivateConnectivity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + privateConnection_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The privateConnection. + */ + @java.lang.Override + public java.lang.String getPrivateConnection() { + java.lang.Object ref = privateConnection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for privateConnection. + */ + @java.lang.Override + 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); + privateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnection_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, privateConnection_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getPrivateConnection() + .equals(other.getPrivateConnection())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getPrivateConnection().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.PrivateConnectivity parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.PrivateConnectivity.class, com.google.cloud.datastream.v1.PrivateConnectivity.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.PrivateConnectivity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + privateConnection_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_PrivateConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnectivity build() { + com.google.cloud.datastream.v1.PrivateConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.privateConnection_ = privateConnection_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.PrivateConnectivity other) { + if (other == com.google.cloud.datastream.v1.PrivateConnectivity.getDefaultInstance()) return this; + if (!other.getPrivateConnection().isEmpty()) { + privateConnection_ = other.privateConnection_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.PrivateConnectivity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.PrivateConnectivity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + privateConnection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + privateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The privateConnection to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnection( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for privateConnection to set. + * @return This builder for chaining. + */ + public Builder setPrivateConnectionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + privateConnection_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.PrivateConnectivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..7cf685c4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface PrivateConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. A reference to a private connection resource.
+   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The privateConnection. + */ + java.lang.String getPrivateConnection(); + /** + *
+   * Required. A reference to a private connection resource.
+   * Format: `projects/{project}/locations/{location}/privateConnections/{name}`
+   * 
+ * + * string private_connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for privateConnection. + */ + com.google.protobuf.ByteString + getPrivateConnectionBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java new file mode 100644 index 00000000..902f676f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Route.java @@ -0,0 +1,1809 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.Route} + */ +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; + // Use Route.newBuilder() to construct. + private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Route() { + name_ = ""; + displayName_ = ""; + destinationAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Route(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Route( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + + 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; + } + 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 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getDestinationAddress() { + java.lang.Object ref = destinationAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + destinationAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public int getDestinationPort() { + return destinationPort_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destinationAddress_); + } + if (destinationPort_ != 0) { + output.writeInt32(7, destinationPort_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + 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__); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationAddress_); + } + if (destinationPort_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, destinationPort_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESTINATION_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getDestinationAddress().hashCode(); + hash = (37 * hash) + DESTINATION_PORT_FIELD_NUMBER; + hash = (53 * hash) + getDestinationPort(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + 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) + 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); + } + public static com.google.cloud.datastream.v1.Route 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.Route parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + 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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.Route} + */ + 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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Route.class, com.google.cloud.datastream.v1.Route.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Route.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + + destinationAddress_ = ""; + + destinationPort_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Route_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Route getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Route.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Route build() { + com.google.cloud.datastream.v1.Route result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Route buildPartial() { + com.google.cloud.datastream.v1.Route result = new com.google.cloud.datastream.v1.Route(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.displayName_ = displayName_; + result.destinationAddress_ = destinationAddress_; + result.destinationPort_ = destinationPort_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Route other) { + if (other == com.google.cloud.datastream.v1.Route.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDestinationAddress().isEmpty()) { + destinationAddress_ = other.destinationAddress_; + onChanged(); + } + if (other.getDestinationPort() != 0) { + setDestinationPort(other.getDestinationPort()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.Route parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.Route) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The create time of the resource.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The update time of the resource.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + destinationAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = destinationAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destinationAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Destination address for connection
+     * 
+ * + * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param value The destinationAddress to set. + * @return This builder for chaining. + */ + public Builder setDestinationAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destinationAddress_ = value; + onChanged(); + return this; + } + + private int destinationPort_ ; + /** + *
+     * Destination port for connection
+     * 
+ * + * int32 destination_port = 7; + * @return The destinationPort. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java new file mode 100644 index 00000000..21849a05 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class RouteName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_PRIVATE_CONNECTION_ROUTE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String privateConnection; + private final String route; + + @Deprecated + protected RouteName() { + project = null; + location = null; + privateConnection = null; + route = null; + } + + private RouteName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + privateConnection = Preconditions.checkNotNull(builder.getPrivateConnection()); + route = Preconditions.checkNotNull(builder.getRoute()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public String getRoute() { + return route; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RouteName of( + String project, String location, String privateConnection, String route) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .setRoute(route) + .build(); + } + + public static String format( + String project, String location, String privateConnection, String route) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setPrivateConnection(privateConnection) + .setRoute(route) + .build() + .toString(); + } + + public static RouteName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_PRIVATE_CONNECTION_ROUTE.validatedMatch( + formattedString, "RouteName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("private_connection"), + matchMap.get("route")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (RouteName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_PRIVATE_CONNECTION_ROUTE.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (privateConnection != null) { + fieldMapBuilder.put("private_connection", privateConnection); + } + if (route != null) { + fieldMapBuilder.put("route", route); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_PRIVATE_CONNECTION_ROUTE.instantiate( + "project", + project, + "location", + location, + "private_connection", + privateConnection, + "route", + route); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + RouteName that = ((RouteName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.privateConnection, that.privateConnection) + && Objects.equals(this.route, that.route); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(privateConnection); + h *= 1000003; + h ^= Objects.hashCode(route); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}. + */ + public static class Builder { + private String project; + private String location; + private String privateConnection; + private String route; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getPrivateConnection() { + return privateConnection; + } + + public String getRoute() { + return route; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setPrivateConnection(String privateConnection) { + this.privateConnection = privateConnection; + return this; + } + + public Builder setRoute(String route) { + this.route = route; + return this; + } + + private Builder(RouteName routeName) { + this.project = routeName.project; + this.location = routeName.location; + this.privateConnection = routeName.privateConnection; + this.route = routeName.route; + } + + public RouteName build() { + return new RouteName(this); + } + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java new file mode 100644 index 00000000..681fc29b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/RouteOrBuilder.java @@ -0,0 +1,187 @@ +// 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 + // @@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(); + + /** + *
+   * Output only. The create time of the resource.
+   * 
+ * + * .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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + 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(); + + /** + *
+   * 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(); + + /** + *
+   * 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java new file mode 100644 index 00000000..110dc2a9 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfig.java @@ -0,0 +1,1193 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceConfig) + SourceConfigOrBuilder { +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) { + return new SourceConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SourceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceStreamConfigCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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) = { ... } + * @return The sourceConnectionProfile. + */ + @java.lang.Override + public java.lang.String getSourceConnectionProfile() { + java.lang.Object ref = sourceConnectionProfile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for sourceConnectionProfile. + */ + @java.lang.Override + 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); + sourceConnectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + 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.getDefaultInstance(); + } + /** + *
+   * Oracle data source configuration
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + @java.lang.Override + 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.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 + 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.getDefaultInstance(); + } + /** + *
+   * MySQL data source configuration
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + @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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (sourceStreamConfigCase_ == 101) { + output.writeMessage(101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfile_)) { + 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_); + } + if (sourceStreamConfigCase_ == 101) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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; + break; + case 101: + if (!getMysqlSourceConfig() + .equals(other.getMysqlSourceConfig())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SOURCE_CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getSourceConnectionProfile().hashCode(); + switch (sourceStreamConfigCase_) { + case 100: + hash = (37 * hash) + ORACLE_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOracleSourceConfig().hashCode(); + break; + case 101: + hash = (37 * hash) + MYSQL_SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMysqlSourceConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.SourceConfig 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceConfig.class, com.google.cloud.datastream.v1.SourceConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sourceConnectionProfile_ = ""; + + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceConfig build() { + com.google.cloud.datastream.v1.SourceConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.sourceConnectionProfile_ = sourceConnectionProfile_; + if (sourceStreamConfigCase_ == 100) { + if (oracleSourceConfigBuilder_ == null) { + result.sourceStreamConfig_ = sourceStreamConfig_; + } else { + result.sourceStreamConfig_ = oracleSourceConfigBuilder_.build(); + } + } + if (sourceStreamConfigCase_ == 101) { + if (mysqlSourceConfigBuilder_ == null) { + result.sourceStreamConfig_ = sourceStreamConfig_; + } else { + result.sourceStreamConfig_ = mysqlSourceConfigBuilder_.build(); + } + } + result.sourceStreamConfigCase_ = sourceStreamConfigCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceConfig other) { + if (other == com.google.cloud.datastream.v1.SourceConfig.getDefaultInstance()) return this; + if (!other.getSourceConnectionProfile().isEmpty()) { + sourceConnectionProfile_ = other.sourceConnectionProfile_; + 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; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.SourceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.SourceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceStreamConfigCase_ = 0; + private java.lang.Object sourceStreamConfig_; + public SourceStreamConfigCase + getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber( + sourceStreamConfigCase_); + } + + public Builder clearSourceStreamConfig() { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + sourceConnectionProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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) = { ... } + * @return The bytes for sourceConnectionProfile. + */ + 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); + sourceConnectionProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The sourceConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setSourceConnectionProfile( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for sourceConnectionProfile to set. + * @return This builder for chaining. + */ + public Builder setSourceConnectionProfileBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + 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_; + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + * @return Whether the oracleSourceConfig field is set. + */ + @java.lang.Override + 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 (oracleSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 100) { + return oracleSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + } + } + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSourceConfig value) { + if (oracleSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + oracleSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 100; + return this; + } + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + public Builder setOracleSourceConfig( + com.google.cloud.datastream.v1.OracleSourceConfig.Builder builderForValue) { + if (oracleSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + oracleSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 100; + 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) { + 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(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 100) { + oracleSourceConfigBuilder_.mergeFrom(value); + } + oracleSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 100; + return this; + } + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + public Builder clearOracleSourceConfig() { + if (oracleSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 100) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 100) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + oracleSourceConfigBuilder_.clear(); + } + return this; + } + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + public com.google.cloud.datastream.v1.OracleSourceConfig.Builder getOracleSourceConfigBuilder() { + return getOracleSourceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 100) && (oracleSourceConfigBuilder_ != null)) { + return oracleSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 100) { + return (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.OracleSourceConfig.getDefaultInstance(); + } + } + /** + *
+     * Oracle data source configuration
+     * 
+ * + * .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> + getOracleSourceConfigFieldBuilder() { + if (oracleSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 100)) { + 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>( + (com.google.cloud.datastream.v1.OracleSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 100; + 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_; + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + * @return Whether the mysqlSourceConfig field is set. + */ + @java.lang.Override + 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 (mysqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); + } else { + if (sourceStreamConfigCase_ == 101) { + return mysqlSourceConfigBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); + } + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceConfig value) { + if (mysqlSourceConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceStreamConfig_ = value; + onChanged(); + } else { + mysqlSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 101; + return this; + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + public Builder setMysqlSourceConfig( + com.google.cloud.datastream.v1.MysqlSourceConfig.Builder builderForValue) { + if (mysqlSourceConfigBuilder_ == null) { + sourceStreamConfig_ = builderForValue.build(); + onChanged(); + } else { + mysqlSourceConfigBuilder_.setMessage(builderForValue.build()); + } + sourceStreamConfigCase_ = 101; + return this; + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + 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(); + } else { + sourceStreamConfig_ = value; + } + onChanged(); + } else { + if (sourceStreamConfigCase_ == 101) { + mysqlSourceConfigBuilder_.mergeFrom(value); + } + mysqlSourceConfigBuilder_.setMessage(value); + } + sourceStreamConfigCase_ = 101; + return this; + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + public Builder clearMysqlSourceConfig() { + if (mysqlSourceConfigBuilder_ == null) { + if (sourceStreamConfigCase_ == 101) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + onChanged(); + } + } else { + if (sourceStreamConfigCase_ == 101) { + sourceStreamConfigCase_ = 0; + sourceStreamConfig_ = null; + } + mysqlSourceConfigBuilder_.clear(); + } + return this; + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceConfigBuilder() { + return getMysqlSourceConfigFieldBuilder().getBuilder(); + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { + if ((sourceStreamConfigCase_ == 101) && (mysqlSourceConfigBuilder_ != null)) { + return mysqlSourceConfigBuilder_.getMessageOrBuilder(); + } else { + if (sourceStreamConfigCase_ == 101) { + return (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_; + } + return com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance(); + } + } + /** + *
+     * MySQL data source configuration
+     * 
+ * + * .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> + getMysqlSourceConfigFieldBuilder() { + if (mysqlSourceConfigBuilder_ == null) { + if (!(sourceStreamConfigCase_ == 101)) { + 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>( + (com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_, + getParentForChildren(), + isClean()); + sourceStreamConfig_ = null; + } + sourceStreamConfigCase_ = 101; + onChanged();; + return mysqlSourceConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java new file mode 100644 index 00000000..7f87e055 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceConfigOrBuilder.java @@ -0,0 +1,87 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for sourceConnectionProfile. + */ + 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
+   * 
+ * + * .google.cloud.datastream.v1.OracleSourceConfig oracle_source_config = 100; + */ + 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
+   * 
+ * + * .google.cloud.datastream.v1.MysqlSourceConfig mysql_source_config = 101; + */ + com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java new file mode 100644 index 00000000..3c4edbbe --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifier.java @@ -0,0 +1,2616 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier) + SourceObjectIdentifierOrBuilder { +private static final long serialVersionUID = 0L; + // Use SourceObjectIdentifier.newBuilder() to construct. + private SourceObjectIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SourceObjectIdentifier() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SourceObjectIdentifier(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SourceObjectIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + sourceIdentifierCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); + } + + 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(); + + /** + *
+     * 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(); + } + /** + *
+   * 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) + OracleObjectIdentifierOrBuilder { + 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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OracleObjectIdentifier(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OracleObjectIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getSchema() { + java.lang.Object ref = schema_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schema_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schema_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + 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; + + if (!getSchema() + .equals(other.getSchema())) return false; + if (!getTable() + .equals(other.getTable())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSchema().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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 { + 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 { + 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 { + return PARSER.parseFrom(data, extensionRegistry); + } + 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 { + 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, + 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, + 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, + 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 static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + schema_ = ""; + + table_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_OracleObjectIdentifier_descriptor; + } + + @java.lang.Override + 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(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.schema_ = schema_; + result.table_ = table_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } 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; + if (!other.getSchema().isEmpty()) { + schema_ = other.schema_; + onChanged(); + } + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + 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; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + schema_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for schema. + */ + 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); + schema_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required. The schema name.
+       * 
+ * + * string schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The schema to set. + * @return This builder for chaining. + */ + public Builder setSchema( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schema_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for table. + */ + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + 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(); + + /** + *
+     * 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(); + } + /** + *
+   * 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) + MysqlObjectIdentifierOrBuilder { + 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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MysqlObjectIdentifier(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MysqlObjectIdentifier( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getDatabase() { + java.lang.Object ref = database_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getTable() { + java.lang.Object ref = table_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, table_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, table_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + 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; + + if (!getDatabase() + .equals(other.getDatabase())) return false; + if (!getTable() + .equals(other.getTable())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATABASE_FIELD_NUMBER; + hash = (53 * hash) + getDatabase().hashCode(); + hash = (37 * hash) + TABLE_FIELD_NUMBER; + hash = (53 * hash) + getTable().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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 { + 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 { + 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 { + return PARSER.parseFrom(data, extensionRegistry); + } + 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 { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier 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 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + database_ = ""; + + table_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_MysqlObjectIdentifier_descriptor; + } + + @java.lang.Override + 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(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.database_ = database_; + result.table_ = table_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } 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; + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + onChanged(); + } + if (!other.getTable().isEmpty()) { + table_ = other.table_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + 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; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + database_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required. The database name.
+       * 
+ * + * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for database. + */ + 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); + database_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required. The database name.
+       * 
+ * + * string database = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param value The database to set. + * @return This builder for chaining. + */ + public Builder setDatabase( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + database_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + table_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for table. + */ + 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); + table_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Required. The table name.
+       * 
+ * + * string table = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The table to set. + * @return This builder for chaining. + */ + public Builder setTable( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + table_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ORACLE_IDENTIFIER(1), + MYSQL_IDENTIFIER(2), + SOURCEIDENTIFIER_NOT_SET(0); + private final int value; + private SourceIdentifierCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static SourceIdentifierCase forNumber(int value) { + switch (value) { + case 1: return ORACLE_IDENTIFIER; + case 2: return MYSQL_IDENTIFIER; + case 0: return SOURCEIDENTIFIER_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + 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; + * @return Whether the oracleIdentifier field is set. + */ + @java.lang.Override + public boolean hasOracleIdentifier() { + return sourceIdentifierCase_ == 1; + } + /** + *
+   * Oracle data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * @return The oracleIdentifier. + */ + @java.lang.Override + 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.getDefaultInstance(); + } + /** + *
+   * Oracle data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + + public static final int MYSQL_IDENTIFIER_FIELD_NUMBER = 2; + /** + *
+   * Mysql data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * @return Whether the mysqlIdentifier field is set. + */ + @java.lang.Override + public boolean hasMysqlIdentifier() { + return sourceIdentifierCase_ == 2; + } + /** + *
+   * Mysql data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * @return The mysqlIdentifier. + */ + @java.lang.Override + 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.getDefaultInstance(); + } + /** + *
+   * Mysql data source object identifier.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (sourceIdentifierCase_ == 2) { + output.writeMessage(2, (com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier) sourceIdentifier_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceIdentifierCase_ == 1) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getSourceIdentifierCase().equals(other.getSourceIdentifierCase())) return false; + switch (sourceIdentifierCase_) { + case 1: + if (!getOracleIdentifier() + .equals(other.getOracleIdentifier())) return false; + break; + case 2: + if (!getMysqlIdentifier() + .equals(other.getMysqlIdentifier())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (sourceIdentifierCase_) { + case 1: + hash = (37 * hash) + ORACLE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getOracleIdentifier().hashCode(); + break; + case 2: + hash = (37 * hash) + MYSQL_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getMysqlIdentifier().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier parseFrom( + 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) + 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) + 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, + 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 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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.SourceObjectIdentifier.class, com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier build() { + com.google.cloud.datastream.v1.SourceObjectIdentifier result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier buildPartial() { + com.google.cloud.datastream.v1.SourceObjectIdentifier result = new com.google.cloud.datastream.v1.SourceObjectIdentifier(this); + if (sourceIdentifierCase_ == 1) { + if (oracleIdentifierBuilder_ == null) { + result.sourceIdentifier_ = sourceIdentifier_; + } else { + result.sourceIdentifier_ = oracleIdentifierBuilder_.build(); + } + } + if (sourceIdentifierCase_ == 2) { + if (mysqlIdentifierBuilder_ == null) { + result.sourceIdentifier_ = sourceIdentifier_; + } else { + result.sourceIdentifier_ = mysqlIdentifierBuilder_.build(); + } + } + result.sourceIdentifierCase_ = sourceIdentifierCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier other) { + 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 SOURCEIDENTIFIER_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.SourceObjectIdentifier parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.SourceObjectIdentifier) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int sourceIdentifierCase_ = 0; + private java.lang.Object sourceIdentifier_; + public SourceIdentifierCase + getSourceIdentifierCase() { + return SourceIdentifierCase.forNumber( + sourceIdentifierCase_); + } + + public Builder clearSourceIdentifier() { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + 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_; + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * @return Whether the oracleIdentifier field is set. + */ + @java.lang.Override + public boolean hasOracleIdentifier() { + return sourceIdentifierCase_ == 1; + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + * @return The oracleIdentifier. + */ + @java.lang.Override + 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.getDefaultInstance(); + } else { + if (sourceIdentifierCase_ == 1) { + return oracleIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.getDefaultInstance(); + } + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + public Builder setOracleIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier value) { + if (oracleIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceIdentifier_ = value; + onChanged(); + } else { + oracleIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 1; + return this; + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + public Builder setOracleIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier.Builder builderForValue) { + if (oracleIdentifierBuilder_ == null) { + sourceIdentifier_ = builderForValue.build(); + onChanged(); + } else { + oracleIdentifierBuilder_.setMessage(builderForValue.build()); + } + sourceIdentifierCase_ = 1; + return this; + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + 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(); + } else { + sourceIdentifier_ = value; + } + onChanged(); + } else { + if (sourceIdentifierCase_ == 1) { + oracleIdentifierBuilder_.mergeFrom(value); + } + oracleIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 1; + return this; + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + public Builder clearOracleIdentifier() { + if (oracleIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 1) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + } + } else { + if (sourceIdentifierCase_ == 1) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + } + oracleIdentifierBuilder_.clear(); + } + return this; + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.OracleObjectIdentifier oracle_identifier = 1; + */ + 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; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + } + /** + *
+     * Oracle data source object identifier.
+     * 
+ * + * .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> + getOracleIdentifierFieldBuilder() { + if (oracleIdentifierBuilder_ == null) { + if (!(sourceIdentifierCase_ == 1)) { + 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_, + getParentForChildren(), + isClean()); + sourceIdentifier_ = null; + } + sourceIdentifierCase_ = 1; + 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_; + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * @return Whether the mysqlIdentifier field is set. + */ + @java.lang.Override + public boolean hasMysqlIdentifier() { + return sourceIdentifierCase_ == 2; + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + * @return The mysqlIdentifier. + */ + @java.lang.Override + 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.getDefaultInstance(); + } else { + if (sourceIdentifierCase_ == 2) { + return mysqlIdentifierBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.getDefaultInstance(); + } + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + public Builder setMysqlIdentifier(com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier value) { + if (mysqlIdentifierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceIdentifier_ = value; + onChanged(); + } else { + mysqlIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 2; + return this; + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + public Builder setMysqlIdentifier( + com.google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier.Builder builderForValue) { + if (mysqlIdentifierBuilder_ == null) { + sourceIdentifier_ = builderForValue.build(); + onChanged(); + } else { + mysqlIdentifierBuilder_.setMessage(builderForValue.build()); + } + sourceIdentifierCase_ = 2; + return this; + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + 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(); + } else { + sourceIdentifier_ = value; + } + onChanged(); + } else { + if (sourceIdentifierCase_ == 2) { + mysqlIdentifierBuilder_.mergeFrom(value); + } + mysqlIdentifierBuilder_.setMessage(value); + } + sourceIdentifierCase_ = 2; + return this; + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + public Builder clearMysqlIdentifier() { + if (mysqlIdentifierBuilder_ == null) { + if (sourceIdentifierCase_ == 2) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + onChanged(); + } + } else { + if (sourceIdentifierCase_ == 2) { + sourceIdentifierCase_ = 0; + sourceIdentifier_ = null; + } + mysqlIdentifierBuilder_.clear(); + } + return this; + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier.MysqlObjectIdentifier mysql_identifier = 2; + */ + 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; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + } + /** + *
+     * Mysql data source object identifier.
+     * 
+ * + * .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> + getMysqlIdentifierFieldBuilder() { + if (mysqlIdentifierBuilder_ == null) { + if (!(sourceIdentifierCase_ == 2)) { + 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_, + getParentForChildren(), + isClean()); + sourceIdentifier_ = null; + } + sourceIdentifierCase_ = 2; + onChanged();; + return mysqlIdentifierBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifier getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..b89e2dd1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -0,0 +1,65 @@ +// 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(); + + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java new file mode 100644 index 00000000..a81a5827 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequest.java @@ -0,0 +1,593 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StartBackfillJobRequest) + StartBackfillJobRequestOrBuilder { +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) { + return new StartBackfillJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StartBackfillJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + object_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The object. + */ + @java.lang.Override + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for object. + */ + @java.lang.Override + 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); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, object_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getObject() + .equals(other.getObject())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.StartBackfillJobRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.StartBackfillJobRequest.class, com.google.cloud.datastream.v1.StartBackfillJobRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.StartBackfillJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + object_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StartBackfillJobRequest build() { + com.google.cloud.datastream.v1.StartBackfillJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.object_ = object_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobRequest other) { + if (other == com.google.cloud.datastream.v1.StartBackfillJobRequest.getDefaultInstance()) return this; + if (!other.getObject().isEmpty()) { + object_ = other.object_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.StartBackfillJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.StartBackfillJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The object to set. + * @return This builder for chaining. + */ + public Builder setObject( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for object to set. + * @return This builder for chaining. + */ + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + object_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StartBackfillJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..be48119f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java new file mode 100644 index 00000000..d16e2a08 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponse.java @@ -0,0 +1,663 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StartBackfillJobResponse) + StartBackfillJobResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StartBackfillJobResponse.newBuilder() to construct. + private StartBackfillJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StartBackfillJobResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StartBackfillJobResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StartBackfillJobResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + 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_; + } + /** + *
+   * The stream object resource a backfill job was started for.
+   * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() { + return getObject(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (object_ != null) { + output.writeMessage(1, getObject()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (object_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObject()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasObject() != other.hasObject()) return false; + if (hasObject()) { + if (!getObject() + .equals(other.getObject())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasObject()) { + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.StartBackfillJobResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.StartBackfillJobResponse.class, com.google.cloud.datastream.v1.StartBackfillJobResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.StartBackfillJobResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (objectBuilder_ == null) { + object_ = null; + } else { + object_ = null; + objectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StartBackfillJobResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StartBackfillJobResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StartBackfillJobResponse build() { + com.google.cloud.datastream.v1.StartBackfillJobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StartBackfillJobResponse buildPartial() { + com.google.cloud.datastream.v1.StartBackfillJobResponse result = new com.google.cloud.datastream.v1.StartBackfillJobResponse(this); + if (objectBuilder_ == null) { + result.object_ = object_; + } else { + result.object_ = objectBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.StartBackfillJobResponse other) { + if (other == com.google.cloud.datastream.v1.StartBackfillJobResponse.getDefaultInstance()) return this; + if (other.hasObject()) { + mergeObject(other.getObject()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.StartBackfillJobResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.StartBackfillJobResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * 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_; + } else { + return objectBuilder_.getMessage(); + } + } + /** + *
+     * 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 value) { + if (objectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + object_ = value; + onChanged(); + } else { + objectBuilder_.setMessage(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) { + if (objectBuilder_ == null) { + object_ = builderForValue.build(); + onChanged(); + } else { + objectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The stream object resource a backfill job was started for.
+     * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + 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(); + } else { + object_ = value; + } + onChanged(); + } else { + objectBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The stream object resource a backfill job was started for.
+     * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + public Builder clearObject() { + if (objectBuilder_ == null) { + object_ = null; + onChanged(); + } else { + object_ = null; + objectBuilder_ = null; + } + + return this; + } + /** + *
+     * The stream object resource a backfill job was started for.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + 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_; + } + } + /** + *
+     * The stream object resource a backfill job was started for.
+     * 
+ * + * .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> + 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()); + object_ = null; + } + return objectBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.StartBackfillJobResponse getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java new file mode 100644 index 00000000..b9f25bec --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StartBackfillJobResponseOrBuilder.java @@ -0,0 +1,36 @@ +// 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 + // @@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.
+   * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java new file mode 100644 index 00000000..9adaf3ca --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivity.java @@ -0,0 +1,427 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StaticServiceIpConnectivity) + StaticServiceIpConnectivityOrBuilder { +private static final long serialVersionUID = 0L; + // Use StaticServiceIpConnectivity.newBuilder() to construct. + private StaticServiceIpConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StaticServiceIpConnectivity() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StaticServiceIpConnectivity(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StaticServiceIpConnectivity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.StaticServiceIpConnectivity parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.StaticServiceIpConnectivity.class, com.google.cloud.datastream.v1.StaticServiceIpConnectivity.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.StaticServiceIpConnectivity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StaticServiceIpConnectivity_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity build() { + com.google.cloud.datastream.v1.StaticServiceIpConnectivity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.StaticServiceIpConnectivity other) { + if (other == com.google.cloud.datastream.v1.StaticServiceIpConnectivity.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.StaticServiceIpConnectivity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.StaticServiceIpConnectivity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StaticServiceIpConnectivity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..d385d5d4 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StaticServiceIpConnectivityOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream_resources.proto + +package com.google.cloud.datastream.v1; + +public interface StaticServiceIpConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.StaticServiceIpConnectivity) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java new file mode 100644 index 00000000..8e82e2aa --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequest.java @@ -0,0 +1,595 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobRequest} + */ +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; + // 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) { + return new StopBackfillJobRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StopBackfillJobRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + object_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The object. + */ + @java.lang.Override + public java.lang.String getObject() { + java.lang.Object ref = object_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for object. + */ + @java.lang.Override + 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); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, object_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getObject() + .equals(other.getObject())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.StopBackfillJobRequest parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.StopBackfillJobRequest} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.StopBackfillJobRequest.class, com.google.cloud.datastream.v1.StopBackfillJobRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.StopBackfillJobRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + object_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StopBackfillJobRequest build() { + com.google.cloud.datastream.v1.StopBackfillJobRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.object_ = object_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.StopBackfillJobRequest other) { + if (other == com.google.cloud.datastream.v1.StopBackfillJobRequest.getDefaultInstance()) return this; + if (!other.getObject().isEmpty()) { + object_ = other.object_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.StopBackfillJobRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.StopBackfillJobRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + object_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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. + */ + 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); + object_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The object to set. + * @return This builder for chaining. + */ + public Builder setObject( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for object to set. + * @return This builder for chaining. + */ + public Builder setObjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + object_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StopBackfillJobRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + 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 new file mode 100644 index 00000000..673f995d --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1/datastream.proto + +package com.google.cloud.datastream.v1; + +public interface 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java new file mode 100644 index 00000000..83a7aae6 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponse.java @@ -0,0 +1,663 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StopBackfillJobResponse) + StopBackfillJobResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use StopBackfillJobResponse.newBuilder() to construct. + private StopBackfillJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StopBackfillJobResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StopBackfillJobResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StopBackfillJobResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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 + 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_; + } + /** + *
+   * The stream object resource the backfill job was stopped for.
+   * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() { + return getObject(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (object_ != null) { + output.writeMessage(1, getObject()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (object_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getObject()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasObject() != other.hasObject()) return false; + if (hasObject()) { + if (!getObject() + .equals(other.getObject())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasObject()) { + hash = (37 * hash) + OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getObject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.StopBackfillJobResponse parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.StopBackfillJobResponse.class, com.google.cloud.datastream.v1.StopBackfillJobResponse.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.StopBackfillJobResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (objectBuilder_ == null) { + object_ = null; + } else { + object_ = null; + objectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_StopBackfillJobResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StopBackfillJobResponse build() { + com.google.cloud.datastream.v1.StopBackfillJobResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StopBackfillJobResponse buildPartial() { + com.google.cloud.datastream.v1.StopBackfillJobResponse result = new com.google.cloud.datastream.v1.StopBackfillJobResponse(this); + if (objectBuilder_ == null) { + result.object_ = object_; + } else { + result.object_ = objectBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.StopBackfillJobResponse other) { + if (other == com.google.cloud.datastream.v1.StopBackfillJobResponse.getDefaultInstance()) return this; + if (other.hasObject()) { + mergeObject(other.getObject()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.StopBackfillJobResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.StopBackfillJobResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * 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_; + } else { + return objectBuilder_.getMessage(); + } + } + /** + *
+     * 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 value) { + if (objectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + object_ = value; + onChanged(); + } else { + objectBuilder_.setMessage(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) { + if (objectBuilder_ == null) { + object_ = builderForValue.build(); + onChanged(); + } else { + objectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The stream object resource the backfill job was stopped for.
+     * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + 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(); + } else { + object_ = value; + } + onChanged(); + } else { + objectBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The stream object resource the backfill job was stopped for.
+     * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + public Builder clearObject() { + if (objectBuilder_ == null) { + object_ = null; + onChanged(); + } else { + object_ = null; + objectBuilder_ = null; + } + + return this; + } + /** + *
+     * The stream object resource the backfill job was stopped for.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + 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_; + } + } + /** + *
+     * The stream object resource the backfill job was stopped for.
+     * 
+ * + * .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> + 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()); + object_ = null; + } + return objectBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.StopBackfillJobResponse getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java new file mode 100644 index 00000000..abb22f8b --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StopBackfillJobResponseOrBuilder.java @@ -0,0 +1,36 @@ +// 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 + // @@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.
+   * 
+ * + * .google.cloud.datastream.v1.StreamObject object = 1; + */ + com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java new file mode 100644 index 00000000..8c468f5f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Stream.java @@ -0,0 +1,5186 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream) + StreamOrBuilder { +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_ = ""; + state_ = 0; + errors_ = java.util.Collections.emptyList(); + customerManagedEncryptionKey_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Stream(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Stream( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + + 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; + } + 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 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 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.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(); + } + 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; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + } + 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_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * Unspecified stream state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * The stream has been created but has not yet started streaming data.
+     * 
+ * + * NOT_STARTED = 1; + */ + NOT_STARTED(1), + /** + *
+     * The stream is running.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + *
+     * The stream is paused.
+     * 
+ * + * PAUSED = 3; + */ + PAUSED(3), + /** + *
+     * The stream is in maintenance mode.
+     * Updates are rejected on the resource in this state.
+     * 
+ * + * MAINTENANCE = 4; + */ + MAINTENANCE(4), + /** + *
+     * The stream is experiencing an error that is preventing data from being
+     * streamed.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + /** + *
+     * The stream has experienced a terminal failure.
+     * 
+ * + * FAILED_PERMANENTLY = 6; + */ + FAILED_PERMANENTLY(6), + /** + *
+     * The stream is starting, but not yet running.
+     * 
+ * + * STARTING = 7; + */ + STARTING(7), + /** + *
+     * The Stream is no longer reading new events, but still writing events in
+     * the buffer.
+     * 
+ * + * DRAINING = 8; + */ + DRAINING(8), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified stream state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * The stream has been created but has not yet started streaming data.
+     * 
+ * + * NOT_STARTED = 1; + */ + public static final int NOT_STARTED_VALUE = 1; + /** + *
+     * The stream is running.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + /** + *
+     * The stream is paused.
+     * 
+ * + * PAUSED = 3; + */ + public static final int PAUSED_VALUE = 3; + /** + *
+     * The stream is in maintenance mode.
+     * Updates are rejected on the resource in this state.
+     * 
+ * + * MAINTENANCE = 4; + */ + public static final int MAINTENANCE_VALUE = 4; + /** + *
+     * The stream is experiencing an error that is preventing data from being
+     * streamed.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + /** + *
+     * The stream has experienced a terminal failure.
+     * 
+ * + * FAILED_PERMANENTLY = 6; + */ + public static final int FAILED_PERMANENTLY_VALUE = 6; + /** + *
+     * The stream is starting, but not yet running.
+     * 
+ * + * STARTING = 7; + */ + public static final int STARTING_VALUE = 7; + /** + *
+     * The Stream is no longer reading new events, but still writing events in
+     * the buffer.
+     * 
+ * + * DRAINING = 8; + */ + public static final int DRAINING_VALUE = 8; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.Stream.State) + } + + 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.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + 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.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); + + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); + } + /** + *
+   * Backfill strategy to automatically backfill the Stream's objects.
+   * Specific objects can be excluded.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy} + */ + 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; + // Use BackfillAllStrategy.newBuilder() to construct. + private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BackfillAllStrategy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BackfillAllStrategy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BackfillAllStrategy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + 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(); + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExcludedObjectsCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + 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.getDefaultInstance(); + } + /** + *
+     * Oracle data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + @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.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 + 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.getDefaultInstance(); + } + /** + *
+     * MySQL data source objects to avoid backfilling.
+     * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + @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.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (excludedObjectsCase_ == 2) { + output.writeMessage(2, (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (excludedObjectsCase_ == 1) { + 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 += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; + switch (excludedObjectsCase_) { + case 1: + if (!getOracleExcludedObjects() + .equals(other.getOracleExcludedObjects())) return false; + break; + case 2: + if (!getMysqlExcludedObjects() + .equals(other.getMysqlExcludedObjects())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (excludedObjectsCase_) { + case 1: + hash = (37 * hash) + ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getOracleExcludedObjects().hashCode(); + break; + case 2: + hash = (37 * hash) + MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getMysqlExcludedObjects().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Backfill strategy to automatically backfill the Stream's objects.
+     * Specific objects can be excluded.
+     * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.Stream.BackfillAllStrategy} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + excludedObjectsCase_ = 0; + excludedObjects_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillAllStrategy_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy build() { + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy buildPartial() { + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy result = new com.google.cloud.datastream.v1.Stream.BackfillAllStrategy(this); + if (excludedObjectsCase_ == 1) { + if (oracleExcludedObjectsBuilder_ == null) { + result.excludedObjects_ = excludedObjects_; + } else { + result.excludedObjects_ = oracleExcludedObjectsBuilder_.build(); + } + } + if (excludedObjectsCase_ == 2) { + if (mysqlExcludedObjectsBuilder_ == null) { + result.excludedObjects_ = excludedObjects_; + } else { + result.excludedObjects_ = mysqlExcludedObjectsBuilder_.build(); + } + } + result.excludedObjectsCase_ = excludedObjectsCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other) { + 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 EXCLUDEDOBJECTS_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int excludedObjectsCase_ = 0; + private java.lang.Object excludedObjects_; + public ExcludedObjectsCase + getExcludedObjectsCase() { + return ExcludedObjectsCase.forNumber( + excludedObjectsCase_); + } + + public Builder clearExcludedObjects() { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + 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_; + /** + *
+       * 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 + 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 (oracleExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 1) { + return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 1) { + return oracleExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdbms value) { + if (oracleExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + oracleExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 1; + return this; + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + public Builder setOracleExcludedObjects( + com.google.cloud.datastream.v1.OracleRdbms.Builder builderForValue) { + if (oracleExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + oracleExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 1; + return this; + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + 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(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 1) { + oracleExcludedObjectsBuilder_.mergeFrom(value); + } + oracleExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 1; + return this; + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + public Builder clearOracleExcludedObjects() { + if (oracleExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 1) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 1) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + oracleExcludedObjectsBuilder_.clear(); + } + return this; + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjectsBuilder() { + return getOracleExcludedObjectsFieldBuilder().getBuilder(); + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.OracleRdbms oracle_excluded_objects = 1; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { + return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 1) { + return (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.OracleRdbms.getDefaultInstance(); + } + } + /** + *
+       * Oracle data source objects to avoid backfilling.
+       * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.OracleRdbms) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 1; + 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_; + /** + *
+       * 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 + 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 (mysqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 2) { + return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } else { + if (excludedObjectsCase_ == 2) { + return mysqlExcludedObjectsBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms value) { + if (mysqlExcludedObjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + excludedObjects_ = value; + onChanged(); + } else { + mysqlExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 2; + return this; + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + public Builder setMysqlExcludedObjects( + com.google.cloud.datastream.v1.MysqlRdbms.Builder builderForValue) { + if (mysqlExcludedObjectsBuilder_ == null) { + excludedObjects_ = builderForValue.build(); + onChanged(); + } else { + mysqlExcludedObjectsBuilder_.setMessage(builderForValue.build()); + } + excludedObjectsCase_ = 2; + return this; + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + 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(); + } else { + excludedObjects_ = value; + } + onChanged(); + } else { + if (excludedObjectsCase_ == 2) { + mysqlExcludedObjectsBuilder_.mergeFrom(value); + } + mysqlExcludedObjectsBuilder_.setMessage(value); + } + excludedObjectsCase_ = 2; + return this; + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + public Builder clearMysqlExcludedObjects() { + if (mysqlExcludedObjectsBuilder_ == null) { + if (excludedObjectsCase_ == 2) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + onChanged(); + } + } else { + if (excludedObjectsCase_ == 2) { + excludedObjectsCase_ = 0; + excludedObjects_ = null; + } + mysqlExcludedObjectsBuilder_.clear(); + } + return this; + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlExcludedObjectsBuilder() { + return getMysqlExcludedObjectsFieldBuilder().getBuilder(); + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .google.cloud.datastream.v1.MysqlRdbms mysql_excluded_objects = 2; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { + if ((excludedObjectsCase_ == 2) && (mysqlExcludedObjectsBuilder_ != null)) { + return mysqlExcludedObjectsBuilder_.getMessageOrBuilder(); + } else { + if (excludedObjectsCase_ == 2) { + return (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_; + } + return com.google.cloud.datastream.v1.MysqlRdbms.getDefaultInstance(); + } + } + /** + *
+       * MySQL data source objects to avoid backfilling.
+       * 
+ * + * .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> + 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>( + (com.google.cloud.datastream.v1.MysqlRdbms) excludedObjects_, + getParentForChildren(), + isClean()); + excludedObjects_ = null; + } + excludedObjectsCase_ = 2; + onChanged();; + return mysqlExcludedObjectsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BackfillNoneStrategyOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Stream.BackfillNoneStrategy) + BackfillNoneStrategyOrBuilder { + private static final long serialVersionUID = 0L; + // Use BackfillNoneStrategy.newBuilder() to construct. + private BackfillNoneStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private BackfillNoneStrategy() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new BackfillNoneStrategy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private BackfillNoneStrategy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parseFrom( + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.class, com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_BackfillNoneStrategy_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy build() { + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy other) { + if (other == com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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, + 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; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BackfillStrategyCase valueOf(int value) { + return forNumber(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; + } + } + public int getNumber() { + return this.value; + } + }; + + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+   * Labels.
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the sourceConfig field is set. + */ + @java.lang.Override + public boolean hasSourceConfig() { + return sourceConfig_ != null; + } + /** + *
+   * Required. Source connection profile configuration.
+   * 
+ * + * .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_; + } + /** + *
+   * Required. Source connection profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder() { + return getSourceConfig(); + } + + 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]; + * @return Whether the destinationConfig field is set. + */ + @java.lang.Override + public boolean hasDestinationConfig() { + return destinationConfig_ != null; + } + /** + *
+   * Required. Destination connection profile configuration.
+   * 
+ * + * .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_; + } + /** + *
+   * Required. Destination connection profile configuration.
+   * 
+ * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder() { + return getDestinationConfig(); + } + + 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() { + 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() { + @SuppressWarnings("deprecation") + 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 + 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.getDefaultInstance(); + } + /** + *
+   * Automatically backfill objects included in the stream source
+   * configuration. Specific objects can be excluded.
+   * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + @java.lang.Override + 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.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 + 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.getDefaultInstance(); + } + /** + *
+   * Do not automatically backfill any objects.
+   * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + */ + @java.lang.Override + 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.getDefaultInstance(); + } + + 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]; + */ + @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]; + */ + @java.lang.Override + 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]; + */ + @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]; + */ + @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]; + */ + @java.lang.Override + 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.
+   * If left blank, data will be encrypted using an internal Stream-specific
+   * encryption key provisioned through KMS.
+   * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return Whether the customerManagedEncryptionKey field is set. + */ + @java.lang.Override + 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.
+   * If left blank, data will be encrypted using an internal Stream-specific
+   * encryption key provisioned through KMS.
+   * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The customerManagedEncryptionKey. + */ + @java.lang.Override + public java.lang.String getCustomerManagedEncryptionKey() { + java.lang.Object ref = customerManagedEncryptionKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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.
+   * If left blank, data will be encrypted using an internal Stream-specific
+   * encryption key provisioned through KMS.
+   * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for customerManagedEncryptionKey. + */ + @java.lang.Override + 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); + customerManagedEncryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + 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 (sourceConfig_ != null) { + output.writeMessage(6, getSourceConfig()); + } + if (destinationConfig_ != null) { + output.writeMessage(7, getDestinationConfig()); + } + if (state_ != com.google.cloud.datastream.v1.Stream.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(9, errors_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, customerManagedEncryptionKey_); + } + if (backfillStrategyCase_ == 101) { + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + 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__); + } + 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()); + } + if (destinationConfig_ != null) { + 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_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, errors_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + 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_); + } + if (backfillStrategyCase_ == 102) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + 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 (hasSourceConfig() != other.hasSourceConfig()) return false; + if (hasSourceConfig()) { + if (!getSourceConfig() + .equals(other.getSourceConfig())) return false; + } + if (hasDestinationConfig() != other.hasDestinationConfig()) return false; + if (hasDestinationConfig()) { + if (!getDestinationConfig() + .equals(other.getDestinationConfig())) return false; + } + if (state_ != other.state_) 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 (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; + switch (backfillStrategyCase_) { + case 101: + if (!getBackfillAll() + .equals(other.getBackfillAll())) return false; + break; + case 102: + if (!getBackfillNone() + .equals(other.getBackfillNone())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasSourceConfig()) { + hash = (37 * hash) + SOURCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSourceConfig().hashCode(); + } + if (hasDestinationConfig()) { + hash = (37 * hash) + DESTINATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDestinationConfig().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (hasCustomerManagedEncryptionKey()) { + hash = (37 * hash) + CUSTOMER_MANAGED_ENCRYPTION_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomerManagedEncryptionKey().hashCode(); + } + switch (backfillStrategyCase_) { + case 101: + hash = (37 * hash) + BACKFILL_ALL_FIELD_NUMBER; + hash = (53 * hash) + getBackfillAll().hashCode(); + break; + case 102: + hash = (37 * hash) + BACKFILL_NONE_FIELD_NUMBER; + hash = (53 * hash) + getBackfillNone().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + 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) + 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); + } + public static com.google.cloud.datastream.v1.Stream 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.Stream 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 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.Stream 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.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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Stream.class, com.google.cloud.datastream.v1.Stream.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Stream.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getErrorsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + displayName_ = ""; + + if (sourceConfigBuilder_ == null) { + sourceConfig_ = null; + } else { + sourceConfig_ = null; + sourceConfigBuilder_ = null; + } + if (destinationConfigBuilder_ == null) { + destinationConfig_ = null; + } else { + destinationConfig_ = null; + destinationConfigBuilder_ = null; + } + state_ = 0; + + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + errorsBuilder_.clear(); + } + customerManagedEncryptionKey_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Stream_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Stream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Stream build() { + com.google.cloud.datastream.v1.Stream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + result.displayName_ = displayName_; + if (sourceConfigBuilder_ == null) { + result.sourceConfig_ = sourceConfig_; + } else { + result.sourceConfig_ = sourceConfigBuilder_.build(); + } + if (destinationConfigBuilder_ == null) { + result.destinationConfig_ = destinationConfig_; + } else { + result.destinationConfig_ = destinationConfigBuilder_.build(); + } + result.state_ = state_; + if (backfillStrategyCase_ == 101) { + if (backfillAllBuilder_ == null) { + result.backfillStrategy_ = backfillStrategy_; + } else { + result.backfillStrategy_ = backfillAllBuilder_.build(); + } + } + if (backfillStrategyCase_ == 102) { + if (backfillNoneBuilder_ == null) { + result.backfillStrategy_ = backfillStrategy_; + } else { + result.backfillStrategy_ = backfillNoneBuilder_.build(); + } + } + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.customerManagedEncryptionKey_ = customerManagedEncryptionKey_; + result.bitField0_ = to_bitField0_; + result.backfillStrategyCase_ = backfillStrategyCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Stream other) { + if (other == com.google.cloud.datastream.v1.Stream.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (other.hasSourceConfig()) { + mergeSourceConfig(other.getSourceConfig()); + } + if (other.hasDestinationConfig()) { + mergeDestinationConfig(other.getDestinationConfig()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.hasCustomerManagedEncryptionKey()) { + bitField0_ |= 0x00000004; + customerManagedEncryptionKey_ = other.customerManagedEncryptionKey_; + onChanged(); + } + switch (other.getBackfillStrategyCase()) { + case BACKFILL_ALL: { + mergeBackfillAll(other.getBackfillAll()); + break; + } + case BACKFILL_NONE: { + mergeBackfillNone(other.getBackfillNone()); + break; + } + case BACKFILLSTRATEGY_NOT_SET: { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.Stream parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.Stream) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int backfillStrategyCase_ = 0; + private java.lang.Object backfillStrategy_; + public BackfillStrategyCase + getBackfillStrategyCase() { + return BackfillStrategyCase.forNumber( + backfillStrategyCase_); + } + + public Builder clearBackfillStrategy() { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The stream's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The creation time of the stream.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The creation time of the stream.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The creation time of the stream.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The creation time of the stream.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The creation time of the stream.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The last update time of the stream.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last update time of the stream.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last update time of the stream.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last update time of the stream.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last update time of the stream.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + private com.google.protobuf.MapField + internalGetMutableLabels() { + onChanged();; + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + return labels_; + } + + 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 java.lang.NullPointerException(); } + return internalGetLabels().getMap().containsKey(key); + } + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + /** + *
+     * Labels.
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + @java.lang.Override + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + internalGetMutableLabels().getMutableMap() + .clear(); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); + return this; + } + /** + *
+     * Labels.
+     * 
+ * + * map<string, string> labels = 4; + */ + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .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]; + * @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_; + } else { + return sourceConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + sourceConfig_ = value; + onChanged(); + } else { + sourceConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSourceConfig( + com.google.cloud.datastream.v1.SourceConfig.Builder builderForValue) { + if (sourceConfigBuilder_ == null) { + sourceConfig_ = builderForValue.build(); + onChanged(); + } else { + sourceConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .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(); + } else { + sourceConfig_ = value; + } + onChanged(); + } else { + sourceConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSourceConfig() { + if (sourceConfigBuilder_ == null) { + sourceConfig_ = null; + onChanged(); + } else { + sourceConfig_ = null; + sourceConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. Source connection profile configuration.
+     * 
+ * + * .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> + 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()); + sourceConfig_ = null; + } + return sourceConfigBuilder_; + } + + 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_; + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .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]; + * @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_; + } else { + return destinationConfigBuilder_.getMessage(); + } + } + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + destinationConfig_ = value; + onChanged(); + } else { + destinationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setDestinationConfig( + com.google.cloud.datastream.v1.DestinationConfig.Builder builderForValue) { + if (destinationConfigBuilder_ == null) { + destinationConfig_ = builderForValue.build(); + onChanged(); + } else { + destinationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .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(); + } else { + destinationConfig_ = value; + } + onChanged(); + } else { + destinationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearDestinationConfig() { + if (destinationConfigBuilder_ == null) { + destinationConfig_ = null; + onChanged(); + } else { + destinationConfig_ = null; + destinationConfigBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. Destination connection profile configuration.
+     * 
+ * + * .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> + 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()); + destinationConfig_ = null; + } + return destinationConfigBuilder_; + } + + 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() { + 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_); + 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. + */ + 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_; + /** + *
+     * 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 + 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 (backfillAllBuilder_ == null) { + if (backfillStrategyCase_ == 101) { + return (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_; + } + return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + } else { + if (backfillStrategyCase_ == 101) { + return backfillAllBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance(); + } + } + /** + *
+     * Automatically backfill objects included in the stream source
+     * configuration. Specific objects can be excluded.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + public Builder setBackfillAll(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy value) { + if (backfillAllBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backfillStrategy_ = value; + onChanged(); + } else { + backfillAllBuilder_.setMessage(value); + } + backfillStrategyCase_ = 101; + return this; + } + /** + *
+     * Automatically backfill objects included in the stream source
+     * configuration. Specific objects can be excluded.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + public Builder setBackfillAll( + com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.Builder builderForValue) { + if (backfillAllBuilder_ == null) { + backfillStrategy_ = builderForValue.build(); + onChanged(); + } else { + backfillAllBuilder_.setMessage(builderForValue.build()); + } + backfillStrategyCase_ = 101; + return this; + } + /** + *
+     * Automatically backfill objects included in the stream source
+     * configuration. Specific objects can be excluded.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + 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(); + } else { + backfillStrategy_ = value; + } + onChanged(); + } else { + if (backfillStrategyCase_ == 101) { + backfillAllBuilder_.mergeFrom(value); + } + backfillAllBuilder_.setMessage(value); + } + backfillStrategyCase_ = 101; + return this; + } + /** + *
+     * Automatically backfill objects included in the stream source
+     * configuration. Specific objects can be excluded.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + public Builder clearBackfillAll() { + if (backfillAllBuilder_ == null) { + if (backfillStrategyCase_ == 101) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + onChanged(); + } + } else { + if (backfillStrategyCase_ == 101) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + } + backfillAllBuilder_.clear(); + } + return this; + } + /** + *
+     * Automatically backfill objects included in the stream source
+     * configuration. Specific objects can be excluded.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + 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.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() { + if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) { + return backfillAllBuilder_.getMessageOrBuilder(); + } else { + if (backfillStrategyCase_ == 101) { + 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.
+     * 
+ * + * .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> + getBackfillAllFieldBuilder() { + if (backfillAllBuilder_ == null) { + if (!(backfillStrategyCase_ == 101)) { + 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>( + (com.google.cloud.datastream.v1.Stream.BackfillAllStrategy) backfillStrategy_, + getParentForChildren(), + isClean()); + backfillStrategy_ = null; + } + backfillStrategyCase_ = 101; + 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_; + /** + *
+     * 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 + 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 (backfillNoneBuilder_ == null) { + if (backfillStrategyCase_ == 102) { + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + } + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } else { + if (backfillStrategyCase_ == 102) { + return backfillNoneBuilder_.getMessage(); + } + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } + } + /** + *
+     * 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) { + if (backfillNoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backfillStrategy_ = value; + onChanged(); + } else { + backfillNoneBuilder_.setMessage(value); + } + backfillStrategyCase_ = 102; + return this; + } + /** + *
+     * 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.Builder builderForValue) { + if (backfillNoneBuilder_ == null) { + backfillStrategy_ = builderForValue.build(); + onChanged(); + } else { + backfillNoneBuilder_.setMessage(builderForValue.build()); + } + backfillStrategyCase_ = 102; + 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) { + 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(); + } else { + backfillStrategy_ = value; + } + onChanged(); + } else { + if (backfillStrategyCase_ == 102) { + backfillNoneBuilder_.mergeFrom(value); + } + backfillNoneBuilder_.setMessage(value); + } + backfillStrategyCase_ = 102; + return this; + } + /** + *
+     * Do not automatically backfill any objects.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + */ + public Builder clearBackfillNone() { + if (backfillNoneBuilder_ == null) { + if (backfillStrategyCase_ == 102) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + onChanged(); + } + } else { + if (backfillStrategyCase_ == 102) { + backfillStrategyCase_ = 0; + backfillStrategy_ = null; + } + backfillNoneBuilder_.clear(); + } + 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() { + return getBackfillNoneFieldBuilder().getBuilder(); + } + /** + *
+     * Do not automatically backfill any objects.
+     * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder() { + if ((backfillStrategyCase_ == 102) && (backfillNoneBuilder_ != null)) { + return backfillNoneBuilder_.getMessageOrBuilder(); + } else { + if (backfillStrategyCase_ == 102) { + return (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_; + } + return com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy.getDefaultInstance(); + } + } + /** + *
+     * Do not automatically backfill any objects.
+     * 
+ * + * .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> + getBackfillNoneFieldBuilder() { + if (backfillNoneBuilder_ == null) { + if (!(backfillStrategyCase_ == 102)) { + 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>( + (com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy) backfillStrategy_, + getParentForChildren(), + isClean()); + backfillStrategy_ = null; + } + backfillStrategyCase_ = 102; + onChanged();; + return backfillNoneBuilder_; + } + + private java.util.List errors_ = + 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_; + + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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) { + return getErrorsFieldBuilder().getBuilder(index); + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + 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]; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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()); + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * 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()); + } + /** + *
+     * Output only. Errors on the Stream.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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()); + errors_ = null; + } + return errorsBuilder_; + } + + private java.lang.Object customerManagedEncryptionKey_ = ""; + /** + *
+     * Immutable. A reference to a KMS encryption key.
+     * If provided, it will be used to encrypt the data.
+     * If left blank, data will be encrypted using an internal Stream-specific
+     * encryption key provisioned through KMS.
+     * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @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.
+     * If left blank, data will be encrypted using an internal Stream-specific
+     * encryption key provisioned through KMS.
+     * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @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; + java.lang.String s = bs.toStringUtf8(); + customerManagedEncryptionKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Immutable. A reference to a KMS encryption key.
+     * If provided, it will be used to encrypt the data.
+     * If left blank, data will be encrypted using an internal Stream-specific
+     * encryption key provisioned through KMS.
+     * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for customerManagedEncryptionKey. + */ + 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); + customerManagedEncryptionKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Immutable. A reference to a KMS encryption key.
+     * If provided, it will be used to encrypt the data.
+     * If left blank, data will be encrypted using an internal Stream-specific
+     * encryption key provisioned through KMS.
+     * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The customerManagedEncryptionKey to set. + * @return This builder for chaining. + */ + public Builder setCustomerManagedEncryptionKey( + java.lang.String value) { + if (value == null) { + 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.
+     * If left blank, data will be encrypted using an internal Stream-specific
+     * encryption key provisioned through KMS.
+     * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return This builder for chaining. + */ + public Builder clearCustomerManagedEncryptionKey() { + bitField0_ = (bitField0_ & ~0x00000004); + customerManagedEncryptionKey_ = getDefaultInstance().getCustomerManagedEncryptionKey(); + onChanged(); + return this; + } + /** + *
+     * Immutable. A reference to a KMS encryption key.
+     * If provided, it will be used to encrypt the data.
+     * If left blank, data will be encrypted using an internal Stream-specific
+     * encryption key provisioned through KMS.
+     * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @param value The bytes for customerManagedEncryptionKey to set. + * @return This builder for chaining. + */ + public Builder setCustomerManagedEncryptionKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000004; + customerManagedEncryptionKey_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java new file mode 100644 index 00000000..ac76a9d1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class StreamName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_STREAM = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/streams/{stream}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String stream; + + @Deprecated + protected StreamName() { + project = null; + location = null; + stream = null; + } + + private StreamName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + stream = Preconditions.checkNotNull(builder.getStream()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getStream() { + return stream; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StreamName of(String project, String location, String stream) { + return newBuilder().setProject(project).setLocation(location).setStream(stream).build(); + } + + public static String format(String project, String location, String stream) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setStream(stream) + .build() + .toString(); + } + + public static StreamName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_STREAM.validatedMatch( + formattedString, "StreamName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("stream")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (StreamName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_STREAM.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (stream != null) { + fieldMapBuilder.put("stream", stream); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_STREAM.instantiate( + "project", project, "location", location, "stream", stream); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StreamName that = ((StreamName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.stream, that.stream); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(stream); + return h; + } + + /** Builder for projects/{project}/locations/{location}/streams/{stream}. */ + public static class Builder { + private String project; + private String location; + private String stream; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getStream() { + return stream; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setStream(String stream) { + this.stream = stream; + return this; + } + + private Builder(StreamName streamName) { + this.project = streamName.project; + this.location = streamName.location; + this.stream = streamName.stream; + } + + public StreamName build() { + return new StreamName(this); + } + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java new file mode 100644 index 00000000..e1cdd674 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObject.java @@ -0,0 +1,2146 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.StreamObject) + StreamObjectOrBuilder { +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_ = ""; + errors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StreamObject(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StreamObject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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(); + } + + 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 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; + } + 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(); + } + + break; + } + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + 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 + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + */ + @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]; + */ + @java.lang.Override + 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]; + */ + @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]; + */ + @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]; + */ + @java.lang.Override + 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 + 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_; + } + /** + *
+   * The latest backfill job that was initiated for the stream object.
+   * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder() { + return getBackfillJob(); + } + + 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 + 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_; + } + /** + *
+   * The object identifier in the data source.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder() { + return getSourceObject(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(6, errors_.get(i)); + } + if (backfillJob_ != null) { + output.writeMessage(7, getBackfillJob()); + } + if (sourceObject_ != null) { + output.writeMessage(8, getSourceObject()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + 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)); + } + if (backfillJob_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getBackfillJob()); + } + if (sourceObject_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getSourceObject()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getName() + .equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) 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 (hasSourceObject() != other.hasSourceObject()) return false; + if (hasSourceObject()) { + if (!getSourceObject() + .equals(other.getSourceObject())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + if (hasBackfillJob()) { + hash = (37 * hash) + BACKFILL_JOB_FIELD_NUMBER; + hash = (53 * hash) + getBackfillJob().hashCode(); + } + if (hasSourceObject()) { + hash = (37 * hash) + SOURCE_OBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSourceObject().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.StreamObject 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.StreamObject.class, com.google.cloud.datastream.v1.StreamObject.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.StreamObject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getErrorsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + displayName_ = ""; + + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + errorsBuilder_.clear(); + } + if (backfillJobBuilder_ == null) { + backfillJob_ = null; + } else { + backfillJob_ = null; + backfillJobBuilder_ = null; + } + if (sourceObjectBuilder_ == null) { + sourceObject_ = null; + } else { + sourceObject_ = null; + sourceObjectBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_StreamObject_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StreamObject getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.StreamObject.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.StreamObject build() { + com.google.cloud.datastream.v1.StreamObject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.displayName_ = displayName_; + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + if (backfillJobBuilder_ == null) { + result.backfillJob_ = backfillJob_; + } else { + result.backfillJob_ = backfillJobBuilder_.build(); + } + if (sourceObjectBuilder_ == null) { + result.sourceObject_ = sourceObject_; + } else { + result.sourceObject_ = sourceObjectBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.StreamObject other) { + if (other == com.google.cloud.datastream.v1.StreamObject.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000001); + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + if (other.hasBackfillJob()) { + mergeBackfillJob(other.getBackfillJob()); + } + if (other.hasSourceObject()) { + mergeSourceObject(other.getSourceObject()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.StreamObject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.StreamObject) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The object resource's name.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Output only. The creation time of the object.
+     * 
+ * + * .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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The creation time of the object.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The creation time of the object.
+     * 
+ * + * .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(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The creation time of the object.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The creation time of the object.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The last update time of the object.
+     * 
+ * + * .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]; + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last update time of the object.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last update time of the object.
+     * 
+ * + * .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(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last update time of the object.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last update time of the object.
+     * 
+ * + * .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]; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for displayName. + */ + 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); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Display name.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.util.List errors_ = + 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_; + + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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) { + 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]; + */ + public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( + int index) { + if (errorsBuilder_ == null) { + 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]; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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()); + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * 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()); + } + /** + *
+     * Output only. Active errors on the object.
+     * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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> + 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()); + errors_ = null; + } + return errorsBuilder_; + } + + 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_; + /** + *
+     * 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_; + } else { + return backfillJobBuilder_.getMessage(); + } + } + /** + *
+     * The latest backfill job that was initiated for the stream object.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + public Builder setBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) { + if (backfillJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backfillJob_ = value; + onChanged(); + } else { + backfillJobBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The latest backfill job that was initiated for the stream object.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + public Builder setBackfillJob( + com.google.cloud.datastream.v1.BackfillJob.Builder builderForValue) { + if (backfillJobBuilder_ == null) { + backfillJob_ = builderForValue.build(); + onChanged(); + } else { + backfillJobBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The latest backfill job that was initiated for the stream object.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + 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(); + } else { + backfillJob_ = value; + } + onChanged(); + } else { + backfillJobBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The latest backfill job that was initiated for the stream object.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + public Builder clearBackfillJob() { + if (backfillJobBuilder_ == null) { + backfillJob_ = null; + onChanged(); + } else { + backfillJob_ = null; + backfillJobBuilder_ = null; + } + + return this; + } + /** + *
+     * The latest backfill job that was initiated for the stream object.
+     * 
+ * + * .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.
+     * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + public com.google.cloud.datastream.v1.BackfillJobOrBuilder getBackfillJobOrBuilder() { + if (backfillJobBuilder_ != null) { + return backfillJobBuilder_.getMessageOrBuilder(); + } else { + return backfillJob_ == null ? + com.google.cloud.datastream.v1.BackfillJob.getDefaultInstance() : backfillJob_; + } + } + /** + *
+     * The latest backfill job that was initiated for the stream object.
+     * 
+ * + * .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> + 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()); + backfillJob_ = null; + } + return backfillJobBuilder_; + } + + 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_; + /** + *
+     * 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_; + } else { + return sourceObjectBuilder_.getMessage(); + } + } + /** + *
+     * The object identifier in the data source.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + */ + public Builder setSourceObject(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + if (sourceObjectBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceObject_ = value; + onChanged(); + } else { + sourceObjectBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The object identifier in the data source.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + */ + public Builder setSourceObject( + com.google.cloud.datastream.v1.SourceObjectIdentifier.Builder builderForValue) { + if (sourceObjectBuilder_ == null) { + sourceObject_ = builderForValue.build(); + onChanged(); + } else { + sourceObjectBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The object identifier in the data source.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + */ + public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIdentifier value) { + if (sourceObjectBuilder_ == null) { + if (sourceObject_ != null) { + sourceObject_ = + com.google.cloud.datastream.v1.SourceObjectIdentifier.newBuilder(sourceObject_).mergeFrom(value).buildPartial(); + } else { + sourceObject_ = value; + } + onChanged(); + } else { + sourceObjectBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The object identifier in the data source.
+     * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + */ + public Builder clearSourceObject() { + if (sourceObjectBuilder_ == null) { + sourceObject_ = null; + onChanged(); + } else { + sourceObject_ = null; + sourceObjectBuilder_ = null; + } + + return this; + } + /** + *
+     * The object identifier in the data source.
+     * 
+ * + * .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() { + if (sourceObjectBuilder_ != null) { + return sourceObjectBuilder_.getMessageOrBuilder(); + } else { + return sourceObject_ == null ? + com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance() : sourceObject_; + } + } + /** + *
+     * The object identifier in the data source.
+     * 
+ * + * .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> + 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()); + sourceObject_ = null; + } + return sourceObjectBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java new file mode 100644 index 00000000..4517dcb5 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectName.java @@ -0,0 +1,257 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class StreamObjectName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_STREAM_OBJECT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/streams/{stream}/objects/{object}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String stream; + private final String object; + + @Deprecated + protected StreamObjectName() { + project = null; + location = null; + stream = null; + object = null; + } + + private StreamObjectName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + stream = Preconditions.checkNotNull(builder.getStream()); + object = Preconditions.checkNotNull(builder.getObject()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getStream() { + return stream; + } + + public String getObject() { + return object; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static StreamObjectName of(String project, String location, String stream, String object) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setStream(stream) + .setObject(object) + .build(); + } + + public static String format(String project, String location, String stream, String object) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setStream(stream) + .setObject(object) + .build() + .toString(); + } + + public static StreamObjectName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_STREAM_OBJECT.validatedMatch( + formattedString, "StreamObjectName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("stream"), + matchMap.get("object")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (StreamObjectName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_STREAM_OBJECT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (stream != null) { + fieldMapBuilder.put("stream", stream); + } + if (object != null) { + fieldMapBuilder.put("object", object); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_STREAM_OBJECT.instantiate( + "project", project, "location", location, "stream", stream, "object", object); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + StreamObjectName that = ((StreamObjectName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.stream, that.stream) + && Objects.equals(this.object, that.object); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(stream); + h *= 1000003; + h ^= Objects.hashCode(object); + return h; + } + + /** Builder for projects/{project}/locations/{location}/streams/{stream}/objects/{object}. */ + public static class Builder { + private String project; + private String location; + private String stream; + private String object; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getStream() { + return stream; + } + + public String getObject() { + return object; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setStream(String stream) { + this.stream = stream; + return this; + } + + public Builder setObject(String object) { + this.object = object; + return this; + } + + private Builder(StreamObjectName streamObjectName) { + this.project = streamObjectName.project; + this.location = streamObjectName.location; + this.stream = streamObjectName.stream; + this.object = streamObjectName.object; + } + + public StreamObjectName build() { + return new StreamObjectName(this); + } + } +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java new file mode 100644 index 00000000..1551449c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamObjectOrBuilder.java @@ -0,0 +1,201 @@ +// 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 + // @@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(); + + /** + *
+   * Output only. The creation time of the object.
+   * 
+ * + * .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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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(); + + /** + *
+   * Output only. Active errors on the object.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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]; + */ + 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]; + */ + int getErrorsCount(); + /** + *
+   * Output only. Active errors on the object.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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]; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.BackfillJob backfill_job = 7; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.SourceObjectIdentifier source_object = 8; + */ + com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceObjectOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java new file mode 100644 index 00000000..0ab6f150 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/StreamOrBuilder.java @@ -0,0 +1,371 @@ +// 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 + // @@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(); + + /** + *
+   * Output only. The creation time of the stream.
+   * 
+ * + * .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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + int getLabelsCount(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getLabels(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + java.util.Map + getLabelsMap(); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Labels.
+   * 
+ * + * map<string, string> labels = 4; + */ + + 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(); + + /** + *
+   * Required. Source connection profile configuration.
+   * 
+ * + * .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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + */ + 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.
+   * 
+ * + * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + */ + 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]; + */ + java.util.List + getErrorsList(); + /** + *
+   * Output only. Errors on the Stream.
+   * 
+ * + * 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]; + */ + int getErrorsCount(); + /** + *
+   * Output only. Errors on the Stream.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + java.util.List + getErrorsOrBuilderList(); + /** + *
+   * Output only. Errors on the Stream.
+   * 
+ * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + 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.
+   * If left blank, data will be encrypted using an internal Stream-specific
+   * encryption key provisioned through KMS.
+   * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @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.
+   * If left blank, data will be encrypted using an internal Stream-specific
+   * encryption key provisioned through KMS.
+   * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @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.
+   * If left blank, data will be encrypted using an internal Stream-specific
+   * encryption key provisioned through KMS.
+   * 
+ * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * @return The bytes for customerManagedEncryptionKey. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java new file mode 100644 index 00000000..0cca5b89 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequest.java @@ -0,0 +1,1349 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UpdateConnectionProfileRequest) + UpdateConnectionProfileRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateConnectionProfileRequest.newBuilder() to construct. + 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) { + return new UpdateConnectionProfileRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateConnectionProfileRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + + break; + } + 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(); + + requestId_ = s; + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } + case 40: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + 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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The updateMask. + */ + @java.lang.Override + 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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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]; + * @return Whether the connectionProfile field is set. + */ + @java.lang.Override + 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]; + * @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_; + } + /** + *
+   * Required. The connection profile to update.
+   * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { + return 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (connectionProfile_ != null) { + output.writeMessage(2, getConnectionProfile()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + if (force_ != false) { + output.writeBool(5, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); + } + if (connectionProfile_ != null) { + 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_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasConnectionProfile()) { + hash = (37 * hash) + CONNECTION_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getConnectionProfile().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 = (37 * hash) + FORCE_FIELD_NUMBER; + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.datastream.v1.UpdateConnectionProfileRequest 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.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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (connectionProfileBuilder_ == null) { + connectionProfile_ = null; + } else { + connectionProfile_ = null; + connectionProfileBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateConnectionProfileRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest build() { + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UpdateConnectionProfileRequest buildPartial() { + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest result = new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (connectionProfileBuilder_ == null) { + result.connectionProfile_ = connectionProfile_; + } else { + result.connectionProfile_ = connectionProfileBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + result.force_ = force_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.UpdateConnectionProfileRequest other) { + if (other == com.google.cloud.datastream.v1.UpdateConnectionProfileRequest.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasConnectionProfile()) { + mergeConnectionProfile(other.getConnectionProfile()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.UpdateConnectionProfileRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.UpdateConnectionProfileRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * ConnectionProfile resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + 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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * ConnectionProfile resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * ConnectionProfile resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * ConnectionProfile resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * ConnectionProfile resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + 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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + 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_; + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .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]; + * @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_; + } else { + return connectionProfileBuilder_.getMessage(); + } + } + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + connectionProfile_ = value; + onChanged(); + } else { + connectionProfileBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setConnectionProfile( + com.google.cloud.datastream.v1.ConnectionProfile.Builder builderForValue) { + if (connectionProfileBuilder_ == null) { + connectionProfile_ = builderForValue.build(); + onChanged(); + } else { + connectionProfileBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .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(); + } else { + connectionProfile_ = value; + } + onChanged(); + } else { + connectionProfileBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .google.cloud.datastream.v1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearConnectionProfile() { + if (connectionProfileBuilder_ == null) { + connectionProfile_ = null; + onChanged(); + } else { + connectionProfile_ = null; + connectionProfileBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. The connection profile to update.
+     * 
+ * + * .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> + 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()); + connectionProfile_ = null; + } + return connectionProfileBuilder_; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + 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 + 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_ ; + /** + *
+     * Optional. Update the connection profile without validating it.
+     * 
+ * + * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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; + static { + DEFAULT_INSTANCE = new com.google.cloud.datastream.v1.UpdateConnectionProfileRequest(); + } + + public static com.google.cloud.datastream.v1.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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..585f35c1 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateConnectionProfileRequestOrBuilder.java @@ -0,0 +1,136 @@ +// 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 + // @@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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. The connection profile to update.
+   * 
+ * + * .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]; + * @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]; + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java new file mode 100644 index 00000000..ff571c60 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequest.java @@ -0,0 +1,1349 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.UpdateStreamRequest) + UpdateStreamRequestOrBuilder { +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) { + return new UpdateStreamRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateStreamRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + 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(); + } + + break; + } + 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(); + + requestId_ = s; + break; + } + case 32: { + + validateOnly_ = input.readBool(); + break; + } + case 40: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + 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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The updateMask. + */ + @java.lang.Override + 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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + 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]; + * @return Whether the stream field is set. + */ + @java.lang.Override + public boolean hasStream() { + return stream_ != null; + } + /** + *
+   * Required. The stream resource to update.
+   * 
+ * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The stream. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() { + return getStream(); + } + + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + @java.lang.Override + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public boolean getValidateOnly() { + return validateOnly_; + } + + 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 + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (updateMask_ != null) { + output.writeMessage(1, getUpdateMask()); + } + if (stream_ != null) { + output.writeMessage(2, getStream()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + if (force_ != false) { + output.writeBool(5, force_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); + } + if (stream_ != null) { + 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_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasStream()) { + hash = (37 * hash) + STREAM_FIELD_NUMBER; + hash = (53 * hash) + getStream().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 = (37 * hash) + FORCE_FIELD_NUMBER; + 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 { + return PARSER.parseFrom(data); + } + public static com.google.cloud.datastream.v1.UpdateStreamRequest 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.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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.UpdateStreamRequest.class, com.google.cloud.datastream.v1.UpdateStreamRequest.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.UpdateStreamRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + if (streamBuilder_ == null) { + stream_ = null; + } else { + stream_ = null; + streamBuilder_ = null; + } + requestId_ = ""; + + validateOnly_ = false; + + force_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_UpdateStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UpdateStreamRequest build() { + com.google.cloud.datastream.v1.UpdateStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.UpdateStreamRequest buildPartial() { + com.google.cloud.datastream.v1.UpdateStreamRequest result = new com.google.cloud.datastream.v1.UpdateStreamRequest(this); + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + if (streamBuilder_ == null) { + result.stream_ = stream_; + } else { + result.stream_ = streamBuilder_.build(); + } + result.requestId_ = requestId_; + result.validateOnly_ = validateOnly_; + result.force_ = force_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.UpdateStreamRequest other) { + if (other == com.google.cloud.datastream.v1.UpdateStreamRequest.getDefaultInstance()) return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasStream()) { + mergeStream(other.getStream()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.UpdateStreamRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.UpdateStreamRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * stream resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + 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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * stream resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * stream resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * stream resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * stream resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + 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.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields will be overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + 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_; + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .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]; + * @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_; + } else { + return streamBuilder_.getMessage(); + } + } + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .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) { + if (value == null) { + throw new NullPointerException(); + } + stream_ = value; + onChanged(); + } else { + streamBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStream( + com.google.cloud.datastream.v1.Stream.Builder builderForValue) { + if (streamBuilder_ == null) { + stream_ = builderForValue.build(); + onChanged(); + } else { + streamBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .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(); + } else { + stream_ = value; + } + onChanged(); + } else { + streamBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .google.cloud.datastream.v1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStream() { + if (streamBuilder_ == null) { + stream_ = null; + onChanged(); + } else { + stream_ = null; + streamBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .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]; + */ + 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_; + } + } + /** + *
+     * Required. The stream resource to update.
+     * 
+ * + * .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> + 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()); + stream_ = null; + } + return streamBuilder_; + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. A request ID to identify requests. Specify a unique request ID
+     * so that if you must retry your request, the server will know to ignore
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 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
+     * the request if it has already been completed. The server will guarantee
+     * that for at least 60 minutes since the first request.
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request ID,
+     * the server can check if original operation with the same request ID was
+     * received, and if so, will ignore the second request. This prevents clients
+     * from accidentally creating duplicate commitments.
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestId_ = value; + onChanged(); + return this; + } + + 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 + 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_ ; + /** + *
+     * Optional. Update the stream without validating it.
+     * 
+ * + * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The force. + */ + @java.lang.Override + 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) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.UpdateStreamRequest getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java new file mode 100644 index 00000000..b808f835 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/UpdateStreamRequestOrBuilder.java @@ -0,0 +1,136 @@ +// 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 + // @@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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @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.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields will be overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + *
+   * Required. The stream resource to update.
+   * 
+ * + * .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]; + * @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]; + */ + 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 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
+   * the request if it has already been completed. The server will guarantee
+   * that for at least 60 minutes since the first request.
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request ID,
+   * the server can check if original operation with the same request ID was
+   * received, and if so, will ignore the second request. This prevents clients
+   * from accidentally creating duplicate commitments.
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for requestId. + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java new file mode 100644 index 00000000..ada67f1f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/Validation.java @@ -0,0 +1,1488 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.Validation) + ValidationOrBuilder { +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; + message_ = java.util.Collections.emptyList(); + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Validation(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Validation( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + 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; + } + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + message_ = java.util.Collections.unmodifiableList(message_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + *
+     * Validation did not execute.
+     * 
+ * + * NOT_EXECUTED = 1; + */ + NOT_EXECUTED(1), + /** + *
+     * Validation failed.
+     * 
+ * + * FAILED = 2; + */ + FAILED(2), + /** + *
+     * Validation passed.
+     * 
+ * + * PASSED = 3; + */ + PASSED(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + /** + *
+     * Validation did not execute.
+     * 
+ * + * NOT_EXECUTED = 1; + */ + public static final int NOT_EXECUTED_VALUE = 1; + /** + *
+     * Validation failed.
+     * 
+ * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + /** + *
+     * Validation passed.
+     * 
+ * + * PASSED = 3; + */ + public static final int PASSED_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.Validation.State) + } + + 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 + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + 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() { + @SuppressWarnings("deprecation") + 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.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + @java.lang.Override + public java.util.List getMessageList() { + return message_; + } + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + @java.lang.Override + public java.util.List + getMessageOrBuilderList() { + return message_; + } + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + @java.lang.Override + public int getMessageCount() { + return message_.size(); + } + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { + return message_.get(index); + } + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + @java.lang.Override + 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 + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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 (state_ != com.google.cloud.datastream.v1.Validation.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + for (int i = 0; i < message_.size(); i++) { + output.writeMessage(3, message_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + 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_); + } + for (int i = 0; i < message_.size(); 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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getMessageCount() > 0) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessageList().hashCode(); + } + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.Validation 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.Validation.class, com.google.cloud.datastream.v1.Validation.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.Validation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMessageFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + description_ = ""; + + state_ = 0; + + if (messageBuilder_ == null) { + message_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + messageBuilder_.clear(); + } + code_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_Validation_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Validation getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.Validation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.Validation build() { + com.google.cloud.datastream.v1.Validation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.description_ = description_; + result.state_ = state_; + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + message_ = java.util.Collections.unmodifiableList(message_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.message_ = message_; + } else { + result.message_ = messageBuilder_.build(); + } + result.code_ = code_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.Validation other) { + if (other == com.google.cloud.datastream.v1.Validation.getDefaultInstance()) return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (messageBuilder_ == null) { + if (!other.message_.isEmpty()) { + if (message_.isEmpty()) { + message_ = other.message_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMessageIsMutable(); + message_.addAll(other.message_); + } + onChanged(); + } + } else { + if (!other.message_.isEmpty()) { + if (messageBuilder_.isEmpty()) { + messageBuilder_.dispose(); + messageBuilder_ = null; + message_ = other.message_; + bitField0_ = (bitField0_ & ~0x00000001); + messageBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMessageFieldBuilder() : null; + } else { + messageBuilder_.addAllMessages(other.message_); + } + } + } + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.Validation parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.Validation) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A short description of the validation.
+     * 
+ * + * string description = 1; + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A short description of the validation.
+     * 
+ * + * string description = 1; + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + 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() { + 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_); + 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. + */ + 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(); + private void ensureMessageIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public java.util.List getMessageList() { + if (messageBuilder_ == null) { + return java.util.Collections.unmodifiableList(message_); + } else { + return messageBuilder_.getMessageList(); + } + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public int getMessageCount() { + if (messageBuilder_ == null) { + return message_.size(); + } else { + return messageBuilder_.getCount(); + } + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { + if (messageBuilder_ == null) { + return message_.get(index); + } else { + return messageBuilder_.getMessage(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) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.set(index, value); + onChanged(); + } else { + messageBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public Builder setMessage( + int index, com.google.cloud.datastream.v1.ValidationMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.set(index, builderForValue.build()); + onChanged(); + } else { + messageBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public Builder addMessage(com.google.cloud.datastream.v1.ValidationMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.add(value); + onChanged(); + } else { + messageBuilder_.addMessage(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) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessageIsMutable(); + message_.add(index, value); + onChanged(); + } else { + messageBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public Builder addMessage( + com.google.cloud.datastream.v1.ValidationMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(builderForValue.build()); + onChanged(); + } else { + messageBuilder_.addMessage(builderForValue.build()); + } + 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.Builder builderForValue) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.add(index, builderForValue.build()); + onChanged(); + } else { + messageBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public Builder addAllMessage( + java.lang.Iterable values) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, message_); + onChanged(); + } else { + messageBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public Builder clearMessage() { + if (messageBuilder_ == null) { + message_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + messageBuilder_.clear(); + } + return this; + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public Builder removeMessage(int index) { + if (messageBuilder_ == null) { + ensureMessageIsMutable(); + message_.remove(index); + onChanged(); + } else { + messageBuilder_.remove(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) { + return getMessageFieldBuilder().getBuilder(index); + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBuilder( + int index) { + if (messageBuilder_ == null) { + 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() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(message_); + } + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * 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()); + } + /** + *
+     * 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()); + } + /** + *
+     * Messages reflecting the validation results.
+     * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + 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> + 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()); + message_ = null; + } + return messageBuilder_; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A custom code identifying this validation.
+     * 
+ * + * string code = 4; + * @return The bytes for code. + */ + 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); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A custom code identifying this validation.
+     * 
+ * + * string code = 4; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java new file mode 100644 index 00000000..d038ea5c --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessage.java @@ -0,0 +1,1358 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ValidationMessage) + ValidationMessageOrBuilder { +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; + code_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ValidationMessage(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ValidationMessage( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + 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; + } + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + 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 + .ensureFieldAccessorsInitialized( + 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 { + /** + *
+     * Unspecified level.
+     * 
+ * + * LEVEL_UNSPECIFIED = 0; + */ + LEVEL_UNSPECIFIED(0), + /** + *
+     * Potentially cause issues with the Stream.
+     * 
+ * + * WARNING = 1; + */ + WARNING(1), + /** + *
+     * Definitely cause issues with the Stream.
+     * 
+ * + * ERROR = 2; + */ + ERROR(2), + UNRECOGNIZED(-1), + ; + + /** + *
+     * Unspecified level.
+     * 
+ * + * LEVEL_UNSPECIFIED = 0; + */ + public static final int LEVEL_UNSPECIFIED_VALUE = 0; + /** + *
+     * Potentially cause issues with the Stream.
+     * 
+ * + * WARNING = 1; + */ + public static final int WARNING_VALUE = 1; + /** + *
+     * Definitely cause issues with the Stream.
+     * 
+ * + * ERROR = 2; + */ + public static final int ERROR_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Level valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return 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) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Level(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1.ValidationMessage.Level) + } + + 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 + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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() { + 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() { + @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; + } + + 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, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + 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 java.lang.NullPointerException(); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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()) { + output.writeEnum(2, level_); + } + 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_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + 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_); + } + 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_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + 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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (37 * hash) + LEVEL_FIELD_NUMBER; + hash = (53 * hash) + level_; + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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, + 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + 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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ValidationMessage.class, com.google.cloud.datastream.v1.ValidationMessage.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ValidationMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + message_ = ""; + + level_ = 0; + + internalGetMutableMetadata().clear(); + code_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationMessage build() { + com.google.cloud.datastream.v1.ValidationMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + result.message_ = message_; + result.level_ = level_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + result.code_ = code_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationMessage other) { + if (other == com.google.cloud.datastream.v1.ValidationMessage.getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + onChanged(); + } + if (other.level_ != 0) { + setLevelValue(other.getLevelValue()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + if (!other.getCode().isEmpty()) { + code_ = other.code_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ValidationMessage parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ValidationMessage) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The result of the validation.
+     * 
+ * + * string message = 1; + * @return The bytes for message. + */ + 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); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The result of the validation.
+     * 
+ * + * string message = 1; + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + message_ = value; + onChanged(); + return this; + } + + 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() { + 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; + } + /** + *
+     * 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. + */ + public Builder setLevel(com.google.cloud.datastream.v1.ValidationMessage.Level value) { + 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() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + 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 java.lang.NullPointerException(); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + *
+     * Additional metadata related to the result.
+     * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + *
+     * Additional metadata related to the result.
+     * 
+ * + * 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 java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Additional metadata related to the result.
+     * 
+ * + * map<string, string> metadata = 3; + */ + @java.lang.Override + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + 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 java.lang.NullPointerException(); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + 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 java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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); + 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; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * A custom code identifying this specific message.
+     * 
+ * + * string code = 4; + * @return The bytes for code. + */ + 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); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * A custom code identifying this specific message.
+     * 
+ * + * string code = 4; + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + code_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + public static com.google.cloud.datastream.v1.ValidationMessage getDefaultInstance() { + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java new file mode 100644 index 00000000..f9140a4f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationMessageOrBuilder.java @@ -0,0 +1,122 @@ +// 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 + // @@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(); + + /** + *
+   * 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.
+   * 
+ * + * map<string, string> metadata = 3; + */ + int getMetadataCount(); + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * map<string, string> metadata = 3; + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * map<string, string> metadata = 3; + */ + java.util.Map + getMetadataMap(); + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * map<string, string> metadata = 3; + */ + + java.lang.String getMetadataOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+   * Additional metadata related to the result.
+   * 
+ * + * map<string, string> metadata = 3; + */ + + 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java new file mode 100644 index 00000000..7ab98b63 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationOrBuilder.java @@ -0,0 +1,112 @@ +// 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 + // @@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(); + + /** + *
+   * 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(); + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + com.google.cloud.datastream.v1.ValidationMessage getMessage(int index); + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + int getMessageCount(); + /** + *
+   * Messages reflecting the validation results.
+   * 
+ * + * repeated .google.cloud.datastream.v1.ValidationMessage message = 3; + */ + 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); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java new file mode 100644 index 00000000..77d63dfb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResult.java @@ -0,0 +1,893 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1.ValidationResult) + ValidationResultOrBuilder { +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) { + return new ValidationResult(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ValidationResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + validations_ = java.util.Collections.unmodifiableList(validations_); + } + 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_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 + .ensureFieldAccessorsInitialized( + 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).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + @java.lang.Override + public java.util.List getValidationsList() { + return validations_; + } + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + @java.lang.Override + public java.util.List + getValidationsOrBuilderList() { + return validations_; + } + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + @java.lang.Override + public int getValidationsCount() { + return validations_.size(); + } + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + @java.lang.Override + 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).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + @java.lang.Override + 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; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < validations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, validations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getValidationsList() + .equals(other.getValidationsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValidationsCount() > 0) { + hash = (37 * hash) + VALIDATIONS_FIELD_NUMBER; + hash = (53 * hash) + getValidationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.ValidationResult 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.ValidationResult.class, com.google.cloud.datastream.v1.ValidationResult.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.ValidationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValidationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (validationsBuilder_ == null) { + validations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + validationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_ValidationResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationResult getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.ValidationResult build() { + com.google.cloud.datastream.v1.ValidationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + int from_bitField0_ = bitField0_; + if (validationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + validations_ = java.util.Collections.unmodifiableList(validations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.validations_ = validations_; + } else { + result.validations_ = validationsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.ValidationResult other) { + if (other == com.google.cloud.datastream.v1.ValidationResult.getDefaultInstance()) return this; + if (validationsBuilder_ == null) { + if (!other.validations_.isEmpty()) { + if (validations_.isEmpty()) { + validations_ = other.validations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValidationsIsMutable(); + validations_.addAll(other.validations_); + } + onChanged(); + } + } else { + if (!other.validations_.isEmpty()) { + if (validationsBuilder_.isEmpty()) { + validationsBuilder_.dispose(); + validationsBuilder_ = null; + validations_ = other.validations_; + bitField0_ = (bitField0_ & ~0x00000001); + validationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidationsFieldBuilder() : null; + } else { + validationsBuilder_.addAllMessages(other.validations_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.ValidationResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.ValidationResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List validations_ = + java.util.Collections.emptyList(); + private void ensureValidationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + 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_; + + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public java.util.List getValidationsList() { + if (validationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(validations_); + } else { + return validationsBuilder_.getMessageList(); + } + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public int getValidationsCount() { + if (validationsBuilder_ == null) { + return validations_.size(); + } else { + return validationsBuilder_.getCount(); + } + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public com.google.cloud.datastream.v1.Validation getValidations(int index) { + if (validationsBuilder_ == null) { + return validations_.get(index); + } else { + return validationsBuilder_.getMessage(index); + } + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder setValidations( + int index, com.google.cloud.datastream.v1.Validation value) { + if (validationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationsIsMutable(); + validations_.set(index, value); + onChanged(); + } else { + validationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder setValidations( + int index, com.google.cloud.datastream.v1.Validation.Builder builderForValue) { + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.set(index, builderForValue.build()); + onChanged(); + } else { + validationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder addValidations(com.google.cloud.datastream.v1.Validation value) { + if (validationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationsIsMutable(); + validations_.add(value); + onChanged(); + } else { + validationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder addValidations( + int index, com.google.cloud.datastream.v1.Validation value) { + if (validationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidationsIsMutable(); + validations_.add(index, value); + onChanged(); + } else { + validationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder addValidations( + com.google.cloud.datastream.v1.Validation.Builder builderForValue) { + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.add(builderForValue.build()); + onChanged(); + } else { + validationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder addValidations( + int index, com.google.cloud.datastream.v1.Validation.Builder builderForValue) { + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.add(index, builderForValue.build()); + onChanged(); + } else { + validationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder addAllValidations( + java.lang.Iterable values) { + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validations_); + onChanged(); + } else { + validationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder clearValidations() { + if (validationsBuilder_ == null) { + validations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + validationsBuilder_.clear(); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public Builder removeValidations(int index) { + if (validationsBuilder_ == null) { + ensureValidationsIsMutable(); + validations_.remove(index); + onChanged(); + } else { + validationsBuilder_.remove(index); + } + return this; + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + 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).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilder( + int index) { + if (validationsBuilder_ == null) { + return validations_.get(index); } else { + return validationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + public java.util.List + getValidationsOrBuilderList() { + if (validationsBuilder_ != null) { + return validationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validations_); + } + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * 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()); + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * 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()); + } + /** + *
+     * A list of validations (includes both executed as well as not executed
+     * validations).
+     * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + 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> + 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()); + validations_ = null; + } + return validationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java new file mode 100644 index 00000000..bc914cee --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ValidationResultOrBuilder.java @@ -0,0 +1,58 @@ +// 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 + // @@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).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + java.util.List + getValidationsList(); + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + com.google.cloud.datastream.v1.Validation getValidations(int index); + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + int getValidationsCount(); + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + java.util.List + getValidationsOrBuilderList(); + /** + *
+   * A list of validations (includes both executed as well as not executed
+   * validations).
+   * 
+ * + * repeated .google.cloud.datastream.v1.Validation validations = 1; + */ + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java new file mode 100644 index 00000000..17935eb2 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfig.java @@ -0,0 +1,768 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.VpcPeeringConfig} + */ +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; + // Use VpcPeeringConfig.newBuilder() to construct. + private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VpcPeeringConfig() { + vpc_ = ""; + subnet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VpcPeeringConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private VpcPeeringConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + 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; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + 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) = { ... } + * @return The vpc. + */ + @java.lang.Override + public java.lang.String getVpc() { + java.lang.Object ref = vpc_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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) = { ... } + * @return The bytes for vpc. + */ + @java.lang.Override + 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); + vpc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 + public java.lang.String getSubnet() { + java.lang.Object ref = subnet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + 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() { + 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); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + 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_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnet_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpc_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, vpc_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subnet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnet_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + 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; + + if (!getVpc() + .equals(other.getVpc())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + VPC_FIELD_NUMBER; + hash = (53 * hash) + getVpc().hashCode(); + hash = (37 * hash) + SUBNET_FIELD_NUMBER; + hash = (53 * hash) + getSubnet().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.cloud.datastream.v1.VpcPeeringConfig 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.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.cloud.datastream.v1.VpcPeeringConfig} + */ + 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; + } + + @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 + .ensureFieldAccessorsInitialized( + com.google.cloud.datastream.v1.VpcPeeringConfig.class, com.google.cloud.datastream.v1.VpcPeeringConfig.Builder.class); + } + + // Construct using com.google.cloud.datastream.v1.VpcPeeringConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + vpc_ = ""; + + subnet_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_VpcPeeringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.datastream.v1.VpcPeeringConfig getDefaultInstanceForType() { + return com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.datastream.v1.VpcPeeringConfig build() { + com.google.cloud.datastream.v1.VpcPeeringConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @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); + result.vpc_ = vpc_; + result.subnet_ = subnet_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + 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); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.datastream.v1.VpcPeeringConfig other) { + if (other == com.google.cloud.datastream.v1.VpcPeeringConfig.getDefaultInstance()) return this; + if (!other.getVpc().isEmpty()) { + vpc_ = other.vpc_; + onChanged(); + } + if (!other.getSubnet().isEmpty()) { + subnet_ = other.subnet_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.cloud.datastream.v1.VpcPeeringConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.cloud.datastream.v1.VpcPeeringConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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) = { ... } + * @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; + java.lang.String s = bs.toStringUtf8(); + vpc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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) = { ... } + * @return The bytes for vpc. + */ + 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); + vpc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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) = { ... } + * @param value The vpc to set. + * @return This builder for chaining. + */ + public Builder setVpc( + java.lang.String value) { + if (value == null) { + 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) = { ... } + * @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) = { ... } + * @param value The bytes for vpc to set. + * @return This builder for chaining. + */ + public Builder setVpcBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + vpc_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + subnet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = subnet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subnet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. A free subnet for peering. (CIDR of /29)
+     * 
+ * + * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param value The subnet to set. + * @return This builder for chaining. + */ + public Builder setSubnet( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + 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) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnet_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + 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(); + } + + 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); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + 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/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java new file mode 100644 index 00000000..d4f2223f --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/VpcPeeringConfigOrBuilder.java @@ -0,0 +1,51 @@ +// 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 + // @@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) = { ... } + * @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) = { ... } + * @return The bytes for vpc. + */ + 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(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto new file mode 100644 index 00000000..0c11a1eb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream.proto @@ -0,0 +1,1036 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.datastream.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/datastream/v1/datastream_resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Datastream.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1;datastream"; +option java_multiple_files = true; +option java_outer_classname = "DatastreamProto"; +option java_package = "com.google.cloud.datastream.v1"; +option php_namespace = "Google\\Cloud\\Datastream\\V1"; +option ruby_package = "Google::Cloud::Datastream::V1"; + +// Datastream service +service Datastream { + option (google.api.default_host) = "datastream.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + + // Use this method to list connection profiles created in a project and + // location. + rpc ListConnectionProfiles(ListConnectionProfilesRequest) returns (ListConnectionProfilesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/connectionProfiles" + }; + option (google.api.method_signature) = "parent"; + } + + // Use this method to get details about a connection profile. + rpc GetConnectionProfile(GetConnectionProfileRequest) returns (ConnectionProfile) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/connectionProfiles/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Use this method to create a connection profile in a project and location. + rpc CreateConnectionProfile(CreateConnectionProfileRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/connectionProfiles" + body: "connection_profile" + }; + option (google.api.method_signature) = "parent,connection_profile,connection_profile_id"; + option (google.longrunning.operation_info) = { + response_type: "ConnectionProfile" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to update the parameters of a connection profile. + rpc UpdateConnectionProfile(UpdateConnectionProfileRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{connection_profile.name=projects/*/locations/*/connectionProfiles/*}" + body: "connection_profile" + }; + option (google.api.method_signature) = "connection_profile,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "ConnectionProfile" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to delete a connection profile. + rpc DeleteConnectionProfile(DeleteConnectionProfileRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/connectionProfiles/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // 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. + rpc DiscoverConnectionProfile(DiscoverConnectionProfileRequest) returns (DiscoverConnectionProfileResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/connectionProfiles:discover" + body: "*" + }; + } + + // Use this method to list streams in a project and location. + rpc ListStreams(ListStreamsRequest) returns (ListStreamsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/streams" + }; + option (google.api.method_signature) = "parent"; + } + + // Use this method to get details about a stream. + rpc GetStream(GetStreamRequest) returns (Stream) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/streams/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Use this method to create a stream. + rpc CreateStream(CreateStreamRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/streams" + body: "stream" + }; + option (google.api.method_signature) = "parent,stream,stream_id"; + option (google.longrunning.operation_info) = { + response_type: "Stream" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to update the configuration of a stream. + rpc UpdateStream(UpdateStreamRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{stream.name=projects/*/locations/*/streams/*}" + body: "stream" + }; + option (google.api.method_signature) = "stream,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Stream" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to delete a stream. + rpc DeleteStream(DeleteStreamRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/streams/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to get details about a stream object. + rpc GetStreamObject(GetStreamObjectRequest) returns (StreamObject) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/streams/*/objects/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Use this method to look up a stream object by its source object identifier. + rpc LookupStreamObject(LookupStreamObjectRequest) returns (StreamObject) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/streams/*}/objects:lookup" + body: "*" + }; + } + + // Use this method to list the objects of a specific stream. + rpc ListStreamObjects(ListStreamObjectsRequest) returns (ListStreamObjectsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/streams/*}/objects" + }; + option (google.api.method_signature) = "parent"; + } + + // Use this method to start a backfill job for the specified stream object. + rpc StartBackfillJob(StartBackfillJobRequest) returns (StartBackfillJobResponse) { + option (google.api.http) = { + post: "/v1/{object=projects/*/locations/*/streams/*/objects/*}:startBackfillJob" + body: "*" + }; + option (google.api.method_signature) = "object"; + } + + // Use this method to stop a backfill job for the specified stream object. + rpc StopBackfillJob(StopBackfillJobRequest) returns (StopBackfillJobResponse) { + option (google.api.http) = { + post: "/v1/{object=projects/*/locations/*/streams/*/objects/*}:stopBackfillJob" + body: "*" + }; + option (google.api.method_signature) = "object"; + } + + // The FetchStaticIps API call exposes the static IP addresses used by + // Datastream. + rpc FetchStaticIps(FetchStaticIpsRequest) returns (FetchStaticIpsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*}:fetchStaticIps" + }; + option (google.api.method_signature) = "name"; + } + + // Use this method to create a private connectivity configuration. + rpc CreatePrivateConnection(CreatePrivateConnectionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/privateConnections" + body: "private_connection" + }; + option (google.api.method_signature) = "parent,private_connection,private_connection_id"; + option (google.longrunning.operation_info) = { + response_type: "PrivateConnection" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to get details about a private connectivity configuration. + rpc GetPrivateConnection(GetPrivateConnectionRequest) returns (PrivateConnection) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateConnections/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Use this method to list private connectivity configurations in a project + // and location. + rpc ListPrivateConnections(ListPrivateConnectionsRequest) returns (ListPrivateConnectionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/privateConnections" + }; + option (google.api.method_signature) = "parent"; + } + + // Use this method to delete a private connectivity configuration. + rpc DeletePrivateConnection(DeletePrivateConnectionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateConnections/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to create a route for a private connectivity configuration + // in a project and location. + rpc CreateRoute(CreateRouteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/privateConnections/*}/routes" + body: "route" + }; + option (google.api.method_signature) = "parent,route,route_id"; + option (google.longrunning.operation_info) = { + response_type: "Route" + metadata_type: "OperationMetadata" + }; + } + + // Use this method to get details about a route. + rpc GetRoute(GetRouteRequest) returns (Route) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/privateConnections/*/routes/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Use this method to list routes created for a private connectivity + // configuration in a project and location. + rpc ListRoutes(ListRoutesRequest) returns (ListRoutesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/privateConnections/*}/routes" + }; + option (google.api.method_signature) = "parent"; + } + + // Use this method to delete a route. + rpc DeleteRoute(DeleteRouteRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/privateConnections/*/routes/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } +} + +// Request message for 'discover' ConnectionProfile request. +message DiscoverConnectionProfileRequest { + // 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) = { + child_type: "datastream.googleapis.com/ConnectionProfile" + } + ]; + + // The connection profile on which to run discover. + oneof target { + // An ad-hoc connection profile configuration. + ConnectionProfile connection_profile = 200; + + // A reference to an existing connection profile. + string connection_profile_name = 201; + } + + // The depth of the retrieved hierarchy of data objects. + oneof hierarchy { + // Whether to retrieve the full hierarchy of data objects (TRUE) or only the + // current level (FALSE). + bool full_hierarchy = 3; + + // The number of hierarchy levels below the current level to be retrieved. + int32 hierarchy_depth = 4; + } + + // The data object to populate with child data objects and metadata. + oneof data_object { + // Oracle RDBMS to enrich with child data objects and metadata. + OracleRdbms oracle_rdbms = 100; + + // MySQL RDBMS to enrich with child data objects and metadata. + MysqlRdbms mysql_rdbms = 101; + } +} + +// Response from a discover request. +message DiscoverConnectionProfileResponse { + // The data object that has been enriched by the discover API call. + oneof data_object { + // Enriched Oracle RDBMS object. + OracleRdbms oracle_rdbms = 100; + + // Enriched MySQL RDBMS object. + MysqlRdbms mysql_rdbms = 101; + } +} + +// Request message for 'FetchStaticIps' request. +message FetchStaticIpsRequest { + // Required. The resource name for the location for which static IPs should be returned. + // Must be in the format `projects/*/locations/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Maximum number of Ips to return, will likely not be specified. + int32 page_size = 2; + + // A page token, received from a previous `ListStaticIps` call. + // will likely not be specified. + string page_token = 3; +} + +// Response message for a 'FetchStaticIps' response. +message FetchStaticIpsResponse { + // list of static ips by account + repeated string static_ips = 1; + + // 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; +} + +// Request message for listing connection profiles. +message ListConnectionProfilesRequest { + // Required. The parent that owns the collection of connection profiles. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/ConnectionProfile" + } + ]; + + // Maximum number of connection profiles to return. + // If unspecified, at most 50 connection profiles will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // Page token received from a previous `ListConnectionProfiles` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListConnectionProfiles` + // must match the call that provided the page token. + string page_token = 3; + + // Filter request. + string filter = 4; + + // Order by fields for the result. + string order_by = 5; +} + +// Response message for listing connection profiles. +message ListConnectionProfilesResponse { + // List of connection profiles. + repeated ConnectionProfile connection_profiles = 1; + + // 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; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for getting a connection profile. +message GetConnectionProfileRequest { + // Required. The name of the connection profile resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/ConnectionProfile" + } + ]; +} + +// Request message for creating a connection profile. +message CreateConnectionProfileRequest { + // Required. The parent that owns the collection of ConnectionProfiles. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/ConnectionProfile" + } + ]; + + // Required. The connection profile identifier. + string connection_profile_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The connection profile resource to create. + ConnectionProfile connection_profile = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only validate the connection profile, but don't create any resources. + // The default is false. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Create the connection profile without validating it. + bool force = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Connection profile update message. +message UpdateConnectionProfileRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // ConnectionProfile resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The connection profile to update. + ConnectionProfile connection_profile = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only validate the connection profile, but don't update any resources. + // The default is false. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Update the connection profile without validating it. + bool force = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for deleting a connection profile. +message DeleteConnectionProfileRequest { + // Required. The name of the connection profile resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/ConnectionProfile" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for listing streams. +message ListStreamsRequest { + // Required. The parent that owns the collection of streams. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/Stream" + } + ]; + + // Maximum number of streams to return. + // If unspecified, at most 50 streams will be returned. The maximum + // value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2; + + // Page token received from a previous `ListStreams` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListStreams` + // must match the call that provided the page token. + string page_token = 3; + + // Filter request. + string filter = 4; + + // Order by fields for the result. + string order_by = 5; +} + +// Response message for listing streams. +message ListStreamsResponse { + // List of streams + repeated Stream streams = 1; + + // 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; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request message for getting a stream. +message GetStreamRequest { + // Required. The name of the stream resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/Stream" + } + ]; +} + +// Request message for creating a stream. +message CreateStreamRequest { + // Required. The parent that owns the collection of streams. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/Stream" + } + ]; + + // Required. The stream identifier. + string stream_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The stream resource to create. + Stream stream = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only validate the stream, but don't create any resources. + // The default is false. + bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Create the stream without validating it. + bool force = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for updating a stream. +message UpdateStreamRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // stream resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The stream resource to update. + Stream stream = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only validate the stream with the changes, without actually updating it. + // The default is false. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Update the stream without validating it. + bool force = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for deleting a stream. +message DeleteStreamRequest { + // Required. The name of the stream resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/Stream" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for fetching a specific stream object. +message GetStreamObjectRequest { + // Required. The name of the stream object resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/StreamObject" + } + ]; +} + +// Request for looking up a specific stream object by its source object +// identifier. +message LookupStreamObjectRequest { + // Required. The parent stream that owns the collection of objects. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/Stream" + } + ]; + + // Required. The source object identifier which maps to the stream object. + SourceObjectIdentifier source_object_identifier = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request for manually initiating a backfill job for a specific stream object. +message StartBackfillJobRequest { + // Required. The name of the stream object resource to start a backfill job for. + string object = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/StreamObject" + } + ]; +} + +// Response for manually initiating a backfill job for a specific stream object. +message StartBackfillJobResponse { + // The stream object resource a backfill job was started for. + StreamObject object = 1; +} + +// Request for manually stopping a running backfill job for a specific stream +// object. +message StopBackfillJobRequest { + // Required. The name of the stream object resource to stop the backfill job for. + string object = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/StreamObject" + } + ]; +} + +// Response for manually stop a backfill job for a specific stream object. +message StopBackfillJobResponse { + // The stream object resource the backfill job was stopped for. + StreamObject object = 1; +} + +// Request for listing all objects for a specific stream. +message ListStreamObjectsRequest { + // Required. The parent stream that owns the collection of objects. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/StreamObject" + } + ]; + + // 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; + + // Page token received from a previous `ListStreamObjectsRequest` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListStreamObjectsRequest` must match the call that provided the page + // token. + string page_token = 3; +} + +// Response containing the objects for a stream. +message ListStreamObjectsResponse { + // List of stream objects. + repeated StreamObject stream_objects = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + string next_page_token = 2; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have successfully been cancelled + // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Results of executed validations if there are any. + ValidationResult validation_result = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request for creating a private connection. +message CreatePrivateConnectionRequest { + // Required. The parent that owns the collection of PrivateConnections. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/PrivateConnection" + } + ]; + + // Required. The private connectivity identifier. + string private_connection_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Private Connectivity resource to create. + PrivateConnection private_connection = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for listing private connections. +message ListPrivateConnectionsRequest { + // Required. The parent that owns the collection of private connectivity configurations. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/PrivateConnection" + } + ]; + + // Maximum number of private connectivity configurations to return. + // If unspecified, at most 50 private connectivity configurations that will be + // returned. The maximum value is 1000; values above 1000 will be coerced to + // 1000. + int32 page_size = 2; + + // Page token received from a previous `ListPrivateConnections` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListPrivateConnections` must match the call that provided the page + // token. + string page_token = 3; + + // Filter request. + string filter = 4; + + // Order by fields for the result. + string order_by = 5; +} + +// Response containing a list of private connection configurations. +message ListPrivateConnectionsResponse { + // List of private connectivity configurations. + repeated PrivateConnection private_connections = 1; + + // 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; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Request to delete a private connection. +message DeletePrivateConnectionRequest { + // Required. The name of the private connectivity configuration to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/PrivateConnection" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // 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]; +} + +// Request to get a private connection configuration. +message GetPrivateConnectionRequest { + // Required. The name of the private connectivity configuration to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/PrivateConnection" + } + ]; +} + +// Route creation request. +message CreateRouteRequest { + // Required. The parent that owns the collection of Routes. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/Route" + } + ]; + + // Required. The Route identifier. + string route_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Route resource to create. + Route route = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Route list request. +message ListRoutesRequest { + // Required. The parent that owns the collection of Routess. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "datastream.googleapis.com/Route" + } + ]; + + // Maximum number of Routes to return. The service may return + // fewer than this value. If unspecified, at most 50 Routes + // will be returned. The maximum value is 1000; values above 1000 will be + // coerced to 1000. + int32 page_size = 2; + + // Page token received from a previous `ListRoutes` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListRoutes` must match the call that provided the page + // token. + string page_token = 3; + + // Filter request. + string filter = 4; + + // Order by fields for the result. + string order_by = 5; +} + +// Route list response. +message ListRoutesResponse { + // List of Routes. + repeated Route routes = 1; + + // 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; + + // Locations that could not be reached. + repeated string unreachable = 3; +} + +// Route deletion request. +message DeleteRouteRequest { + // Required. The name of the Route resource to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/Route" + } + ]; + + // Optional. A request ID to identify requests. Specify a unique request ID + // so that if you must retry your request, the server will know to ignore + // the request if it has already been completed. The server will guarantee + // that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request ID, + // the server can check if original operation with the same request ID was + // received, and if so, will ignore the second request. This prevents clients + // from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Route get request. +message GetRouteRequest { + // Required. The name of the Route resource to get. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "datastream.googleapis.com/Route" + } + ]; +} diff --git a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto new file mode 100644 index 00000000..efcd8632 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/proto/google/cloud/datastream/v1/datastream_resources.proto @@ -0,0 +1,836 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.datastream.v1; + +import "google/api/annotations.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.Datastream.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/datastream/v1;datastream"; +option java_multiple_files = true; +option java_outer_classname = "DatastreamResourcesProto"; +option java_package = "com.google.cloud.datastream.v1"; +option php_namespace = "Google\\Cloud\\Datastream\\V1"; +option ruby_package = "Google::Cloud::Datastream::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/Networks" + pattern: "projects/{project}/global/networks/{network}" +}; + +// Oracle database profile. +message OracleProfile { + // Required. Hostname for the Oracle connection. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Port for the Oracle connection, default value is 1521. + int32 port = 2; + + // Required. Username for the Oracle connection. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Password for the Oracle connection. + string password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database for the Oracle connection. + string database_service = 5 [(google.api.field_behavior) = REQUIRED]; + + // Connection string attributes + map connection_attributes = 6; +} + +// MySQL database profile. +message MysqlProfile { + // Required. Hostname for the MySQL connection. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Port for the MySQL connection, default value is 3306. + int32 port = 2; + + // Required. Username for the MySQL connection. + string username = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Input only. Password for the MySQL connection. + string password = 4 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // SSL configuration for the MySQL connection. + MysqlSslConfig ssl_config = 5; +} + +// Cloud Storage bucket profile. +message GcsProfile { + // Required. The Cloud Storage bucket name. + string bucket = 1 [(google.api.field_behavior) = REQUIRED]; + + // The root path inside the Cloud Storage bucket. + string root_path = 2; +} + +// Static IP address connectivity. +message StaticServiceIpConnectivity {} + +// Forward SSH Tunnel connectivity. +message ForwardSshTunnelConnectivity { + // Required. Hostname for the SSH tunnel. + string hostname = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Username for the SSH tunnel. + string username = 2 [(google.api.field_behavior) = REQUIRED]; + + // Port for the SSH tunnel, default value is 22. + int32 port = 3; + + oneof authentication_method { + // Input only. SSH password. + string password = 100 [(google.api.field_behavior) = INPUT_ONLY]; + + // Input only. SSH private key. + string private_key = 101 [(google.api.field_behavior) = INPUT_ONLY]; + } +} + +// The VPC Peering configuration is used to create VPC peering between +// Datastream and the consumer's VPC. +message VpcPeeringConfig { + // 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) = { + type: "compute.googleapis.com/Networks" + } + ]; + + // Required. A free subnet for peering. (CIDR of /29) + string subnet = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// The PrivateConnection resource is used to establish private connectivity +// between Datastream and a customer's network. +message PrivateConnection { + option (google.api.resource) = { + type: "datastream.googleapis.com/PrivateConnection" + pattern: "projects/{project}/locations/{location}/privateConnections/{private_connection}" + }; + + // Private Connection state. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // The private connection is in creation state - creating resources. + CREATING = 1; + + // The private connection has been created with all of its resources. + CREATED = 2; + + // The private connection creation has failed. + FAILED = 3; + + // The private connection is being deleted. + DELETING = 4; + + // Delete request has failed, resource is in invalid state. + FAILED_TO_DELETE = 5; + } + + // Output only. The resource's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The create time of the resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The update time of the resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels. + map labels = 4; + + // Required. Display name. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the Private Connection. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. In case of error, the details of the error in a user-friendly + // format. + Error error = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // VPC Peering Config. + VpcPeeringConfig vpc_peering_config = 100; +} + +// Private Connectivity +message PrivateConnectivity { + // 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) = { + type: "datastream.googleapis.com/PrivateConnection" + } + ]; +} + +// The route resource is the child of the private connection resource, +// used for defining a route for a private connection. +message Route { + option (google.api.resource) = { + type: "datastream.googleapis.com/Route" + pattern: "projects/{project}/locations/{location}/privateConnections/{private_connection}/routes/{route}" + }; + + // Output only. The resource's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The create time of the resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The update time of the resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels. + map labels = 4; + + // Required. Display name. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Destination address for connection + string destination_address = 6 [(google.api.field_behavior) = REQUIRED]; + + // Destination port for connection + int32 destination_port = 7; +} + +// MySQL SSL configuration information. +message MysqlSslConfig { + // Input only. PEM-encoded private key associated with the Client Certificate. + // If this field is used then the 'client_certificate' and the + // 'ca_certificate' fields are mandatory. + string client_key = 1 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Indicates whether the client_key field is set. + bool client_key_set = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input only. PEM-encoded certificate that will be used by the replica to + // authenticate against the source database server. If this field is used + // then the 'client_key' and the 'ca_certificate' fields are mandatory. + string client_certificate = 3 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Indicates whether the client_certificate field is set. + bool client_certificate_set = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input only. PEM-encoded certificate of the CA that signed the source + // database server's certificate. + string ca_certificate = 5 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. Indicates whether the ca_certificate field is set. + bool ca_certificate_set = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A set of reusable connection configurations to be used as a source or +// destination for a stream. +message ConnectionProfile { + option (google.api.resource) = { + type: "datastream.googleapis.com/ConnectionProfile" + pattern: "projects/{project}/locations/{location}/connectionProfiles/{connection_profile}" + }; + + // Output only. The resource's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The create time of the resource. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The update time of the resource. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels. + map labels = 4; + + // Required. Display name. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Connection configuration for the ConnectionProfile. + oneof profile { + // Oracle ConnectionProfile configuration. + OracleProfile oracle_profile = 100; + + // Cloud Storage ConnectionProfile configuration. + GcsProfile gcs_profile = 101; + + // MySQL ConnectionProfile configuration. + MysqlProfile mysql_profile = 102; + } + + // Connectivity options used to establish a connection to the profile. + oneof connectivity { + // Static Service IP connectivity. + StaticServiceIpConnectivity static_service_ip_connectivity = 200; + + // Forward SSH tunnel connectivity. + ForwardSshTunnelConnectivity forward_ssh_connectivity = 201; + + // Private connectivity. + PrivateConnectivity private_connectivity = 202; + } +} + +// Oracle Column. +message OracleColumn { + // Column name. + string column = 1; + + // The Oracle data type. + string data_type = 2; + + // Column length. + int32 length = 3; + + // Column precision. + int32 precision = 4; + + // Column scale. + int32 scale = 5; + + // Column encoding. + string encoding = 6; + + // Whether or not the column represents a primary key. + bool primary_key = 7; + + // Whether or not the column can accept a null value. + bool nullable = 8; + + // The ordinal position of the column in the table. + int32 ordinal_position = 9; +} + +// Oracle table. +message OracleTable { + // Table name. + string table = 1; + + // Oracle columns in the schema. + // When unspecified as part of inclue/exclude lists, includes/excludes + // everything. + repeated OracleColumn oracle_columns = 2; +} + +// Oracle schema. +message OracleSchema { + // Schema name. + string schema = 1; + + // Tables in the schema. + repeated OracleTable oracle_tables = 2; +} + +// Oracle database structure. +message OracleRdbms { + // Oracle schemas/databases in the database server. + repeated OracleSchema oracle_schemas = 1; +} + +// Oracle data source configuration +message OracleSourceConfig { + // Oracle objects to include in the stream. + OracleRdbms include_objects = 1; + + // Oracle objects to exclude from the stream. + OracleRdbms exclude_objects = 2; +} + +// MySQL Column. +message MysqlColumn { + // Column name. + string column = 1; + + // 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; + + // Column length. + int32 length = 3; + + // Column collation. + string collation = 4; + + // Whether or not the column represents a primary key. + bool primary_key = 5; + + // Whether or not the column can accept a null value. + bool nullable = 6; + + // The ordinal position of the column in the table. + int32 ordinal_position = 7; +} + +// MySQL table. +message MysqlTable { + // Table name. + string table = 1; + + // MySQL columns in the database. + // When unspecified as part of include/exclude lists, includes/excludes + // everything. + repeated MysqlColumn mysql_columns = 2; +} + +// MySQL database. +message MysqlDatabase { + // Database name. + string database = 1; + + // Tables in the database. + repeated MysqlTable mysql_tables = 2; +} + +// MySQL database structure +message MysqlRdbms { + // Mysql databases on the server + repeated MysqlDatabase mysql_databases = 1; +} + +// MySQL source configuration +message MysqlSourceConfig { + // MySQL objects to retrieve from the source. + MysqlRdbms include_objects = 1; + + // MySQL objects to exclude from the stream. + MysqlRdbms exclude_objects = 2; +} + +// The configuration of the stream source. +message SourceConfig { + // 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) = { + type: "datastream.googleapis.com/ConnectionProfile" + } + ]; + + // Stream configuration that is specific to the data source type. + oneof source_stream_config { + // Oracle data source configuration + OracleSourceConfig oracle_source_config = 100; + + // MySQL data source configuration + MysqlSourceConfig mysql_source_config = 101; + } +} + +// AVRO file format configuration. +message AvroFileFormat {} + +// JSON file format configuration. +message JsonFileFormat { + // Schema file format. + enum SchemaFileFormat { + // Unspecified schema file format. + SCHEMA_FILE_FORMAT_UNSPECIFIED = 0; + + // Do not attach schema file. + NO_SCHEMA_FILE = 1; + + // Avro schema format. + AVRO_SCHEMA_FILE = 2; + } + + // Json file compression. + enum JsonCompression { + // Unspecified json file compression. + JSON_COMPRESSION_UNSPECIFIED = 0; + + // Do not compress JSON file. + NO_COMPRESSION = 1; + + // Gzip compression. + GZIP = 2; + } + + // The schema file format along JSON data files. + SchemaFileFormat schema_file_format = 1; + + // Compression of the loaded JSON file. + JsonCompression compression = 2; +} + +// Google Cloud Storage destination configuration +message GcsDestinationConfig { + // Path inside the Cloud Storage bucket to write data to. + string path = 1; + + // The maximum file size to be saved in the bucket. + int32 file_rotation_mb = 2; + + // The maximum duration for which new events are added before a file is + // closed and a new file is created. + google.protobuf.Duration file_rotation_interval = 3; + + // File Format that the data should be written in. + oneof file_format { + // AVRO file format configuration. + AvroFileFormat avro_file_format = 100; + + // JSON file format configuration. + JsonFileFormat json_file_format = 101; + } +} + +// The configuration of the stream destination. +message DestinationConfig { + // 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) = { + type: "datastream.googleapis.com/ConnectionProfile" + } + ]; + + // Stream configuration that is specific to the data destination type. + oneof destination_stream_config { + // A configuration for how data should be loaded to Cloud Storage. + GcsDestinationConfig gcs_destination_config = 100; + } +} + +// A resource representing streaming data from a source to a destination. +message Stream { + option (google.api.resource) = { + type: "datastream.googleapis.com/Stream" + pattern: "projects/{project}/locations/{location}/streams/{stream}" + }; + + // Stream state. + enum State { + // Unspecified stream state. + STATE_UNSPECIFIED = 0; + + // The stream has been created but has not yet started streaming data. + NOT_STARTED = 1; + + // The stream is running. + RUNNING = 2; + + // The stream is paused. + PAUSED = 3; + + // The stream is in maintenance mode. + // + // Updates are rejected on the resource in this state. + MAINTENANCE = 4; + + // The stream is experiencing an error that is preventing data from being + // streamed. + FAILED = 5; + + // The stream has experienced a terminal failure. + FAILED_PERMANENTLY = 6; + + // The stream is starting, but not yet running. + STARTING = 7; + + // The Stream is no longer reading new events, but still writing events in + // the buffer. + DRAINING = 8; + } + + // Backfill strategy to automatically backfill the Stream's objects. + // Specific objects can be excluded. + message BackfillAllStrategy { + // List of objects to exclude. + oneof excluded_objects { + // Oracle data source objects to avoid backfilling. + OracleRdbms oracle_excluded_objects = 1; + + // MySQL data source objects to avoid backfilling. + MysqlRdbms mysql_excluded_objects = 2; + } + } + + // Backfill strategy to disable automatic backfill for the Stream's objects. + message BackfillNoneStrategy {} + + // Output only. The stream's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The creation time of the stream. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update time of the stream. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Labels. + map labels = 4; + + // Required. Display name. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Required. Source connection profile configuration. + SourceConfig source_config = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. Destination connection profile configuration. + DestinationConfig destination_config = 7 + [(google.api.field_behavior) = REQUIRED]; + + // The state of the stream. + State state = 8; + + // Stream backfill strategy. + oneof backfill_strategy { + // Automatically backfill objects included in the stream source + // configuration. Specific objects can be excluded. + BackfillAllStrategy backfill_all = 101; + + // Do not automatically backfill any objects. + BackfillNoneStrategy backfill_none = 102; + } + + // Output only. Errors on the Stream. + repeated Error errors = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. A reference to a KMS encryption key. + // If provided, it will be used to encrypt the data. + // If left blank, data will be encrypted using an internal Stream-specific + // encryption key provisioned through KMS. + optional string customer_managed_encryption_key = 10 + [(google.api.field_behavior) = IMMUTABLE]; +} + +// A specific stream object (e.g a specific DB table). +message StreamObject { + option (google.api.resource) = { + type: "datastream.googleapis.com/StreamObject" + pattern: "projects/{project}/locations/{location}/streams/{stream}/objects/{object}" + }; + + // Output only. The object resource's name. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The creation time of the object. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The last update time of the object. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Display name. + string display_name = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Active errors on the object. + repeated Error errors = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The latest backfill job that was initiated for the stream object. + BackfillJob backfill_job = 7; + + // The object identifier in the data source. + SourceObjectIdentifier source_object = 8; +} + +// Represents an identifier of an object in the data source. +message SourceObjectIdentifier { + // Oracle data source object identifier. + message OracleObjectIdentifier { + // Required. The schema name. + string schema = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The table name. + string table = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Mysql data source object identifier. + message MysqlObjectIdentifier { + // Required. The database name. + string database = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The table name. + string table = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // The identifier for an object in the data source. + oneof source_identifier { + // Oracle data source object identifier. + OracleObjectIdentifier oracle_identifier = 1; + + // Mysql data source object identifier. + MysqlObjectIdentifier mysql_identifier = 2; + } +} + +// Represents a backfill job on a specific stream object. +message BackfillJob { + // State of the stream object's backfill job. + enum State { + // Default value. + 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 + // automatic backfill). + NOT_STARTED = 1; + + // Backfill job will start pending available resources. + PENDING = 2; + + // Backfill job is running. + ACTIVE = 3; + + // Backfill job stopped (next job run will start from beginning). + STOPPED = 4; + + // Backfill job failed (due to an error). + FAILED = 5; + + // Backfill completed successfully. + COMPLETED = 6; + + // Backfill job failed since the table structure is currently unsupported + // for backfill. + UNSUPPORTED = 7; + } + + // Triggering reason for a backfill job. + enum Trigger { + // Default value. + TRIGGER_UNSPECIFIED = 0; + + // Object backfill job was triggered automatically according to the stream's + // backfill strategy. + AUTOMATIC = 1; + + // Object backfill job was triggered manually using the dedicated API. + MANUAL = 2; + } + + // Backfill job state. + State state = 1; + + // Backfill job's triggering reason. + Trigger trigger = 2; + + // Output only. Backfill job's start time. + google.protobuf.Timestamp last_start_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Backfill job's end time. + google.protobuf.Timestamp last_end_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Errors which caused the backfill job to fail. + repeated Error errors = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Represent a user-facing Error. +message Error { + // A title that explains the reason for the error. + string reason = 1; + + // A unique identifier for this specific error, + // allowing it to be traced throughout the system in logs and API responses. + string error_uuid = 2; + + // A message containing more information about the error that occurred. + string message = 3; + + // The time when the error occurred. + google.protobuf.Timestamp error_time = 4; + + // Additional information about the error. + map details = 5; +} + +// Contains the current validation results. +message ValidationResult { + // A list of validations (includes both executed as well as not executed + // validations). + repeated Validation validations = 1; +} + +// A validation to perform on a stream. +message Validation { + // Validation execution state. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Validation did not execute. + NOT_EXECUTED = 1; + + // Validation failed. + FAILED = 2; + + // Validation passed. + PASSED = 3; + } + + // A short description of the validation. + string description = 1; + + // Validation execution status. + State state = 2; + + // Messages reflecting the validation results. + repeated ValidationMessage message = 3; + + // A custom code identifying this validation. + string code = 4; +} + +// Represent user-facing validation result message. +message ValidationMessage { + // Validation message level. + enum Level { + // Unspecified level. + LEVEL_UNSPECIFIED = 0; + + // Potentially cause issues with the Stream. + WARNING = 1; + + // Definitely cause issues with the Stream. + ERROR = 2; + } + + // The result of the validation. + string message = 1; + + // Message severity level (warning or error). + Level level = 2; + + // Additional metadata related to the result. + map metadata = 3; + + // A custom code identifying this specific message. + string code = 4; +} diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java similarity index 98% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java index e5f09a0f..464d8ef4 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java +++ b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java @@ -61,13 +61,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. *
* @@ -2754,11 +2754,8 @@ 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< @@ -2780,9 +2777,7 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, - ConnectionProfile, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -2818,11 +2813,8 @@ 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) { @@ -2842,10 +2834,7 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, - ListStreamsResponse, - Stream, - ListStreamsPage, + ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2892,10 +2881,7 @@ public ApiFuture createPageAsync( public static class ListStreamsFixedSizeCollection extends AbstractFixedSizeCollection< - ListStreamsRequest, - ListStreamsResponse, - Stream, - ListStreamsPage, + ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, ListStreamsFixedSizeCollection> { private ListStreamsFixedSizeCollection(List pages, int collectionSize) { @@ -2915,10 +2901,7 @@ protected ListStreamsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, - FetchStaticIpsResponse, - String, - FetchStaticIpsPage, + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2968,10 +2951,7 @@ public ApiFuture createPageAsync( public static class FetchStaticIpsFixedSizeCollection extends AbstractFixedSizeCollection< - FetchStaticIpsRequest, - FetchStaticIpsResponse, - String, - FetchStaticIpsPage, + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { private FetchStaticIpsFixedSizeCollection(List pages, int collectionSize) { @@ -2991,11 +2971,8 @@ protected FetchStaticIpsFixedSizeCollection createCollection( public static class ListPrivateConnectionsPagedResponse extends AbstractPagedListResponse< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, - PrivateConnection, - ListPrivateConnectionsPage, - ListPrivateConnectionsFixedSizeCollection> { + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsPage, ListPrivateConnectionsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -3017,9 +2994,7 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, - PrivateConnection, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3055,11 +3030,8 @@ 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) { @@ -3079,10 +3051,7 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, - ListRoutesResponse, - Route, - ListRoutesPage, + ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3129,10 +3098,7 @@ 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/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java similarity index 97% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java index 17b71807..b52612ca 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java +++ b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.datastream.v1alpha1.stub.DatastreamStubSettings; @@ -48,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 @@ -78,8 +79,7 @@ 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(); @@ -215,8 +215,7 @@ 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(); @@ -365,8 +364,7 @@ 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(); @@ -507,8 +505,7 @@ 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/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json similarity index 100% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java similarity index 100% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java similarity index 100% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java similarity index 98% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java index 8c09735a..c9d5f6b3 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java +++ b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java @@ -99,9 +99,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 @@ -131,8 +131,7 @@ 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 @@ -180,8 +179,7 @@ public class DatastreamStubSettings extends StubSettings private final UnaryCallSettings getPrivateConnectionSettings; private final PagedCallSettings< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings @@ -394,13 +392,11 @@ 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( @@ -410,8 +406,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -455,13 +450,11 @@ 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( @@ -471,8 +464,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection> pageContext = PageContext.create( @@ -500,8 +492,7 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listConnectionProfiles. */ public PagedCallSettings< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ListConnectionProfilesPagedResponse> listConnectionProfilesSettings() { return listConnectionProfilesSettings; @@ -637,8 +628,7 @@ public UnaryCallSettings fetchErrorsSettings() { /** Returns the object with the settings used for calls to listPrivateConnections. */ public PagedCallSettings< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings() { return listPrivateConnectionsSettings; @@ -808,8 +798,7 @@ 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 @@ -860,8 +849,7 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1454,8 +1442,7 @@ 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; @@ -1612,8 +1599,7 @@ 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/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java similarity index 100% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java diff --git a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java similarity index 99% rename from google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java index 4e95111f..70fe2ed4 100644 --- a/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java +++ b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java @@ -70,6 +70,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java similarity index 100% rename from google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java diff --git a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java similarity index 100% rename from google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java diff --git a/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java b/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java similarity index 100% rename from google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java rename to owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java 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 new file mode 100644 index 00000000..96fac2d9 --- /dev/null +++ b/owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java @@ -0,0 +1,2059 @@ +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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java index 7b8f2733..aa7b6442 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormat.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -68,42 +52,39 @@ private AvroFileFormat( 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) { throw e.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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.AvroFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.AvroFileFormat other = - (com.google.cloud.datastream.v1alpha1.AvroFileFormat) obj; + com.google.cloud.datastream.v1alpha1.AvroFileFormat other = (com.google.cloud.datastream.v1alpha1.AvroFileFormat) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,126 +139,117 @@ 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() @@ -285,15 +257,16 @@ 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(); @@ -301,9 +274,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 @@ -322,8 +295,7 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormat buildPartial() { - com.google.cloud.datastream.v1alpha1.AvroFileFormat result = - new com.google.cloud.datastream.v1alpha1.AvroFileFormat(this); + com.google.cloud.datastream.v1alpha1.AvroFileFormat result = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(this); onBuilt(); return result; } @@ -332,39 +304,38 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.AvroFileFormat) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.AvroFileFormat)other); } else { super.mergeFrom(other); return this; @@ -372,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.AvroFileFormat other) { - if (other == com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -393,8 +363,7 @@ 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) { @@ -403,9 +372,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); } @@ -415,12 +384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) private static final com.google.cloud.datastream.v1alpha1.AvroFileFormat DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(); } @@ -429,16 +398,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; @@ -453,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.AvroFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 00000000..ecd8ad00 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface AvroFileFormatOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.AvroFileFormat) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/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 new file mode 100644 index 00000000..5ddad119 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java @@ -0,0 +1,715 @@ +// 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\032\034google/api/annotat" + + "ions.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\010username\030\003 " + + "\001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020datab" + + "ase_service\030\005 \001(\tB\003\340A\002\022h\n\025connection_att" + + "ributes\030\006 \003(\0132I.google.cloud.datastream." + + "v1alpha1.OracleProfile.ConnectionAttribu" + + "tesEntry\032;\n\031ConnectionAttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\014MysqlP" + + "rofile\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\010password\030\004" + + " \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001(\01320.googl" + + "e.cloud.datastream.v1alpha1.MysqlSslConf" + + "ig\"9\n\nGcsProfile\022\030\n\013bucket_name\030\001 \001(\tB\003\340" + + "A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoConnectivityS" + + "ettings\"\035\n\033StaticServiceIpConnectivity\"\250" + + "\001\n\034ForwardSshTunnelConnectivity\022\025\n\010hostn" + + "ame\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\013" + + "private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authenticati" + + "on_method\">\n\020VpcPeeringConfig\022\025\n\010vpc_nam" + + "e\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\324\005\n\021Pr" + + "ivateConnection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?" + + ".google.cloud.datastream.v1alpha1.Privat" + + "eConnection.LabelsEntry\022\031\n\014display_name\030" + + "\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.google.cloud" + + ".datastream.v1alpha1.PrivateConnection.S" + + "tateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.google.cloud." + + "datastream.v1alpha1.ErrorB\003\340A\003\022N\n\022vpc_pe" + + "ering_config\030d \001(\01322.google.cloud.datast" + + "ream.v1alpha1.VpcPeeringConfig\032-\n\013Labels" + + "Entry\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\010CREATIN" + + "G\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201\001\352A~\n+data" + + "stream.googleapis.com/PrivateConnection\022" + + "Oprojects/{project}/locations/{location}" + + "/privateConnections/{private_connection}" + + "\";\n\023PrivateConnectivity\022$\n\027private_conne" + + "ction_name\030\001 \001(\tB\003\340A\002\"\331\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.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C" + + "\n\006labels\030\004 \003(\01323.google.cloud.datastream" + + ".v1alpha1.Route.LabelsEntry\022\031\n\014display_n" + + "ame\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\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:\205\001\352A\201\001\n\037datastream.googleapis.com/Rout" + + "e\022^projects/{project}/locations/{locatio" + + "n}/privateConnections/{private_connectio" + + "n}/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\n" + + "client_key\030\013 \001(\tB\003\340A\004\022\033\n\016client_key_set\030" + + "\014 \001(\010B\003\340A\003\022\037\n\022client_certificate\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_cert" + + "ificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021ConnectionPro" + + "file\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" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.clo" + + "ud.datastream.v1alpha1.ConnectionProfile" + + ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" + + "I\n\016oracle_profile\030d \001(\0132/.google.cloud.d" + + "atastream.v1alpha1.OracleProfileH\000\022C\n\013gc" + + "s_profile\030e \001(\0132,.google.cloud.datastrea" + + "m.v1alpha1.GcsProfileH\000\022G\n\rmysql_profile" + + "\030f \001(\0132..google.cloud.datastream.v1alpha" + + "1.MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001" + + "(\01328.google.cloud.datastream.v1alpha1.No" + + "ConnectivitySettingsH\001\022h\n\036static_service" + + "_ip_connectivity\030\311\001 \001(\0132=.google.cloud.d" + + "atastream.v1alpha1.StaticServiceIpConnec" + + "tivityH\001\022c\n\030forward_ssh_connectivity\030\312\001 " + + "\001(\0132>.google.cloud.datastream.v1alpha1.F" + + "orwardSshTunnelConnectivityH\001\022V\n\024private" + + "_connectivity\030\313\001 \001(\01325.google.cloud.data" + + "stream.v1alpha1.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/Co" + + "nnectionProfile\022Oprojects/{project}/loca" + + "tions/{location}/connectionProfiles/{con" + + "nection_profile}B\t\n\007profileB\016\n\014connectiv" + + "ity\"\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\t" + + "precision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encodi" + + "ng\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullabl" + + "e\030\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Ora" + + "cleTable\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_c" + + "olumns\030\002 \003(\0132..google.cloud.datastream.v" + + "1alpha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013" + + "schema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\013" + + "2-.google.cloud.datastream.v1alpha1.Orac" + + "leTable\"U\n\013OracleRdbms\022F\n\016oracle_schemas" + + "\030\001 \003(\0132..google.cloud.datastream.v1alpha" + + "1.OracleSchema\"\231\001\n\022OracleSourceConfig\022@\n" + + "\tallowlist\030\001 \001(\0132-.google.cloud.datastre" + + "am.v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 " + + "\001(\0132-.google.cloud.datastream.v1alpha1.O" + + "racleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013column_nam" + + "e\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_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-.google.cloud.d" + + "atastream.v1alpha1.MysqlColumn\"j\n\rMysqlD" + + "atabase\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_" + + "tables\030\002 \003(\0132,.google.cloud.datastream.v" + + "1alpha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysq" + + "l_databases\030\001 \003(\0132/.google.cloud.datastr" + + "eam.v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSour" + + "ceConfig\022?\n\tallowlist\030\001 \001(\0132,.google.clo" + + "ud.datastream.v1alpha1.MysqlRdbms\022@\n\nrej" + + "ectlist\030\002 \001(\0132,.google.cloud.datastream." + + "v1alpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036" + + "source_connection_profile_name\030\001 \001(\tB\003\340A" + + "\002\022T\n\024oracle_source_config\030d \001(\01324.google" + + ".cloud.datastream.v1alpha1.OracleSourceC" + + "onfigH\000\022R\n\023mysql_source_config\030e \001(\01323.g" + + "oogle.cloud.datastream.v1alpha1.MysqlSou" + + "rceConfigH\000B\026\n\024source_stream_config\"\020\n\016A" + + "vroFileFormat\"\212\002\n\016JsonFileFormat\022N\n\022sche" + + "ma_file_format\030\001 \001(\01622.google.cloud.data" + + "stream.v1alpha1.SchemaFileFormat\022U\n\013comp" + + "ression\030\002 \001(\0162@.google.cloud.datastream." + + "v1alpha1.JsonFileFormat.JsonCompression\"" + + "Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_U" + + "NSPECIFIED\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/.google.clou" + + "d.datastream.v1alpha1.GcsFileFormatB\002\030\001\022" + + "\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026file_rotati" + + "on_interval\030\004 \001(\0132\031.google.protobuf.Dura" + + "tion\022L\n\020avro_file_format\030d \001(\01320.google." + + "cloud.datastream.v1alpha1.AvroFileFormat" + + "H\000\022L\n\020json_file_format\030e \001(\01320.google.cl" + + "oud.datastream.v1alpha1.JsonFileFormatH\000" + + "B\r\n\013file_format\"\274\001\n\021DestinationConfig\0220\n" + + "#destination_connection_profile_name\030\001 \001" + + "(\tB\003\340A\002\022X\n\026gcs_destination_config\030d \001(\0132" + + "6.google.cloud.datastream.v1alpha1.GcsDe" + + "stinationConfigH\000B\033\n\031destination_stream_" + + "config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" + + "create_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\013" + + "24.google.cloud.datastream.v1alpha1.Stre" + + "am.LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A" + + "\002\022J\n\rsource_config\030\006 \001(\0132..google.cloud." + + "datastream.v1alpha1.SourceConfigB\003\340A\002\022T\n" + + "\022destination_config\030\007 \001(\01323.google.cloud" + + ".datastream.v1alpha1.DestinationConfigB\003" + + "\340A\002\022=\n\005state\030\010 \001(\0162..google.cloud.datast" + + "ream.v1alpha1.Stream.State\022T\n\014backfill_a" + + "ll\030e \001(\0132<.google.cloud.datastream.v1alp" + + "ha1.Stream.BackfillAllStrategyH\000\022V\n\rback" + + "fill_none\030f \001(\0132=.google.cloud.datastrea" + + "m.v1alpha1.Stream.BackfillNoneStrategyH\000" + + "\022<\n\006errors\030\t \003(\0132\'.google.cloud.datastre" + + "am.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllSt" + + "rategy\022P\n\027oracle_excluded_objects\030\001 \001(\0132" + + "-.google.cloud.datastream.v1alpha1.Oracl" + + "eRdbmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\013" + + "2,.google.cloud.datastream.v1alpha1.Mysq" + + "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\"\225\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\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\010STARTING\020\007\022\014\n" + + "\010DRAINING\020\010:_\352A\\\n datastream.googleapis." + + "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\ne" + + "rror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerro" + + "r_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\022E\n\007details\030\005 \003(\01324.google.cloud.datastr" + + "eam.v1alpha1.Error.DetailsEntry\032.\n\014Detai" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "U\n\020ValidationResult\022A\n\013validations\030\001 \003(\013" + + "2,.google.cloud.datastream.v1alpha1.Vali" + + "dation\"\206\002\n\nValidation\022\023\n\013description\030\001 \001" + + "(\t\022C\n\006status\030\002 \001(\01623.google.cloud.datast" + + "ream.v1alpha1.Validation.Status\022D\n\007messa" + + "ge\030\003 \003(\01323.google.cloud.datastream.v1alp" + + "ha1.ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006S" + + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXE" + + "CUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Vali" + + "dationMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030" + + "\002 \001(\01629.google.cloud.datastream.v1alpha1" + + ".ValidationMessage.Level\022S\n\010metadata\030\003 \003" + + "(\0132A.google.cloud.datastream.v1alpha1.Va" + + "lidationMessage.MetadataEntry\022\014\n\004code\030\004 " + + "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFI" + + "ED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileF" + + "ormat\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010" + + "\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHE" + + "MA_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEM" + + "A_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.g" + + "oogle.cloud.datastream.v1alpha1B\035CloudDa" + + "tastreamResourcesProtoP\001ZJgoogle.golang." + + "org/genproto/googleapis/cloud/datastream" + + "/v1alpha1;datastream\252\002 Google.Cloud.Data" + + "stream.V1Alpha1\312\002 Google\\Cloud\\Datastrea" + + "m\\V1alpha1\352\002#Google::Cloud::Datastream::" + + "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(), + com.google.api.AnnotationsProto.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(); + com.google.api.AnnotationsProto.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 new file mode 100644 index 00000000..98422847 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java @@ -0,0 +1,640 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public final class CloudDatastreamServiceProto { + private CloudDatastreamServiceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n1google/cloud/datastream/v1alpha1/datas" + + "tream.proto\022 google.cloud.datastream.v1a" + + "lpha1\032\034google/api/annotations.proto\032\027goo" + + "gle/api/client.proto\032\037google/api/field_b" + + "ehavior.proto\032\031google/api/resource.proto" + + "\032;google/cloud/datastream/v1alpha1/datas" + + "tream_resources.proto\032#google/longrunnin" + + "g/operations.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\"\275\003\n DiscoverConnectionProfileReque" + + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.g" + + "oogleapis.com/ConnectionProfile\022R\n\022conne" + + "ction_profile\030\310\001 \001(\01323.google.cloud.data" + + "stream.v1alpha1.ConnectionProfileH\000\022\"\n\027c" + + "onnection_profile_name\030\311\001 \001(\tH\000\022\023\n\trecur" + + "sive\030\003 \001(\010H\001\022\031\n\017recursion_depth\030\004 \001(\005H\001\022" + + "E\n\014oracle_rdbms\030d \001(\0132-.google.cloud.dat" + + "astream.v1alpha1.OracleRdbmsH\002\022C\n\013mysql_" + + "rdbms\030e \001(\0132,.google.cloud.datastream.v1" + + "alpha1.MysqlRdbmsH\002B\010\n\006targetB\007\n\005depthB\r" + + "\n\013data_object\"\276\001\n!DiscoverConnectionProf" + + "ileResponse\022E\n\014oracle_rdbms\030d \001(\0132-.goog" + + "le.cloud.datastream.v1alpha1.OracleRdbms" + + "H\000\022C\n\013mysql_rdbms\030e \001(\0132,.google.cloud.d" + + "atastream.v1alpha1.MysqlRdbmsH\000B\r\n\013data_" + + "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" + + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" + + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" + + "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"K" + + "\n\022FetchErrorsRequest\0225\n\006stream\030\001 \001(\tB%\372A" + + "\"\n datastream.googleapis.com/Stream\"N\n\023F" + + "etchErrorsResponse\0227\n\006errors\030\001 \003(\0132\'.goo" + + "gle.cloud.datastream.v1alpha1.Error\"\255\001\n\035" + + "ListConnectionProfilesRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis.com" + + "/ConnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" + + "er_by\030\005 \001(\t\"\240\001\n\036ListConnectionProfilesRe" + + "sponse\022P\n\023connection_profiles\030\001 \003(\01323.go" + + "ogle.cloud.datastream.v1alpha1.Connectio" + + "nProfile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" + + "eachable\030\003 \003(\t\"`\n\033GetConnectionProfileRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream." + + "googleapis.com/ConnectionProfile\"\370\001\n\036Cre" + + "ateConnectionProfileRequest\022C\n\006parent\030\001 " + + "\001(\tB3\340A\002\372A-\022+datastream.googleapis.com/C" + + "onnectionProfile\022\"\n\025connection_profile_i" + + "d\030\002 \001(\tB\003\340A\002\022T\n\022connection_profile\030\003 \001(\013" + + "23.google.cloud.datastream.v1alpha1.Conn" + + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" + + "\340A\001\"\305\001\n\036UpdateConnectionProfileRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\022T\n\022connection_profile\030\002 \001(\013" + + "23.google.cloud.datastream.v1alpha1.Conn" + + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003" + + "\340A\001\"|\n\036DeleteConnectionProfileRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleap" + + "is.com/ConnectionProfile\022\027\n\nrequest_id\030\002" + + " \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pare" + + "nt\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis." + + "com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" + + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " + + "\001(\t\"~\n\023ListStreamsResponse\0229\n\007streams\030\001 " + + "\003(\0132(.google.cloud.datastream.v1alpha1.S" + + "tream\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030" + + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + + "/Stream\"\357\001\n\023CreateStreamRequest\0228\n\006paren" + + "t\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis.c" + + "om/Stream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\022=\n\006str" + + "eam\030\003 \001(\0132(.google.cloud.datastream.v1al" + + "pha1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006" + + " \001(\010B\003\340A\001\"\323\001\n\023UpdateStreamRequest\0224\n\013upd" + + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" + + "skB\003\340A\001\022=\n\006stream\030\002 \001(\0132(.google.cloud.d" + + "atastream.v1alpha1.StreamB\003\340A\002\022\027\n\nreques" + + "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003" + + "\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamR" + + "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream" + + ".googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001" + + "(\tB\003\340A\001\"\324\002\n\021OperationMetadata\0224\n\013create_" + + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" + + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" + + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" + + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022R\n\021validation" + + "_result\030\010 \001(\01322.google.cloud.datastream." + + "v1alpha1.ValidationResultB\003\340A\003\"\370\001\n\036Creat" + + "ePrivateConnectionRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Pri" + + "vateConnection\022\"\n\025private_connection_id\030" + + "\002 \001(\tB\003\340A\002\022T\n\022private_connection\030\003 \001(\01323" + + ".google.cloud.datastream.v1alpha1.Privat" + + "eConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" + + "\001\"\255\001\n\035ListPrivateConnectionsRequest\022C\n\006p" + + "arent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleap" + + "is.com/PrivateConnection\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" + + "\020\n\010order_by\030\005 \001(\t\"\240\001\n\036ListPrivateConnect" + + "ionsResponse\022P\n\023private_connections\030\001 \003(" + + "\01323.google.cloud.datastream.v1alpha1.Pri" + + "vateConnection\022\027\n\017next_page_token\030\002 \001(\t\022" + + "\023\n\013unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateCo" + + "nnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+d" + + "atastream.googleapis.com/PrivateConnecti" + + "on\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" + + "(\010B\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" + + "pis.com/PrivateConnection\"\272\001\n\022CreateRout" + + "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datast" + + "ream.googleapis.com/Route\022\025\n\010route_id\030\002 " + + "\001(\tB\003\340A\002\022;\n\005route\030\003 \001(\0132\'.google.cloud.d" + + "atastream.v1alpha1.RouteB\003\340A\002\022\027\n\nrequest" + + "_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006" + + "parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googlea" + + "pis.com/Route\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" + + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" + + "\030\005 \001(\t\"{\n\022ListRoutesResponse\0227\n\006routes\030\001" + + " \003(\0132\'.google.cloud.datastream.v1alpha1." + + "Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" + + "hable\030\003 \003(\t\"d\n\022DeleteRouteRequest\0225\n\004nam" + + "e\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.c" + + "om/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"H\n\017Get" + + "RouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037data" + + "stream.googleapis.com/Route2\212\'\n\nDatastre" + + "am\022\352\001\n\026ListConnectionProfiles\022?.google.c" + + "loud.datastream.v1alpha1.ListConnectionP" + + "rofilesRequest\032@.google.cloud.datastream" + + ".v1alpha1.ListConnectionProfilesResponse" + + "\"M\202\323\344\223\002>\022\022*\022" + + "\022* builder) { super(builder); } - private ConnectionProfile() { name_ = ""; displayName_ = ""; @@ -36,15 +22,16 @@ 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) @@ -64,260 +51,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; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - 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; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = 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; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.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; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - 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; + 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 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; + 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(); } - 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; + 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(); + } + 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; + } + 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(); } - 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; + 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 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; + 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 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; + 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 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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(); } + 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) { throw e.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; } @@ -333,34 +269,28 @@ public static ProfileCase valueOf(int value) { public static ProfileCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_PROFILE; - case 101: - return GCS_PROFILE; - case 102: - return MYSQL_PROFILE; - case 0: - return PROFILE_NOT_SET; - default: - return null; + case 100: return ORACLE_PROFILE; + case 101: return GCS_PROFILE; + case 102: return MYSQL_PROFILE; + case 0: return PROFILE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ProfileCase getProfileCase() { - return ProfileCase.forNumber(profileCase_); + public ProfileCase + getProfileCase() { + return ProfileCase.forNumber( + profileCase_); } private int connectivityCase_ = 0; private java.lang.Object connectivity_; - public enum ConnectivityCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { NO_CONNECTIVITY(200), STATIC_SERVICE_IP_CONNECTIVITY(201), @@ -368,7 +298,6 @@ public enum ConnectivityCase PRIVATE_CONNECTIVITY(203), CONNECTIVITY_NOT_SET(0); private final int value; - private ConnectivityCase(int value) { this.value = value; } @@ -384,41 +313,33 @@ 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 @@ -427,29 +348,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 { @@ -460,15 +381,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -476,15 +393,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -492,14 +405,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -509,15 +419,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -525,15 +431,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -541,14 +443,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -556,23 +455,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + 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() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -581,30 +481,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -612,12 +510,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -625,16 +522,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -642,11 +539,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -656,14 +554,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { 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 @@ -672,29 +567,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 { @@ -704,14 +599,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int ORACLE_PROFILE_FIELD_NUMBER = 100; /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return Whether the oracleProfile field is set. */ @java.lang.Override @@ -719,26 +611,21 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; } return com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } /** - * - * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -748,21 +635,18 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProfileOrBuilder() { if (profileCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_; } return com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance(); } public static final int GCS_PROFILE_FIELD_NUMBER = 101; /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return Whether the gcsProfile field is set. */ @java.lang.Override @@ -770,26 +654,21 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; } return com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } /** - * - * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -799,21 +678,18 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrBuilder() { if (profileCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_; } return com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance(); } public static final int MYSQL_PROFILE_FIELD_NUMBER = 102; /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return Whether the mysqlProfile field is set. */ @java.lang.Override @@ -821,26 +697,21 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } /** - * - * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -850,21 +721,18 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfileOrBuilder() { if (profileCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; + return (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_; } return com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance(); } public static final int NO_CONNECTIVITY_FIELD_NUMBER = 200; /** - * - * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return Whether the noConnectivity field is set. */ @java.lang.Override @@ -872,26 +740,21 @@ public boolean hasNoConnectivity() { return connectivityCase_ == 200; } /** - * - * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return The noConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnectivity() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; + return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; } return com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); } /** - * - * *
    * No connectivity option chosen.
    * 
@@ -899,26 +762,20 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnecti * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder - getNoConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder() { if (connectivityCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; + return (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_; } return com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); } public static final int STATIC_SERVICE_IP_CONNECTIVITY_FIELD_NUMBER = 201; /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return Whether the staticServiceIpConnectivity field is set. */ @java.lang.Override @@ -926,58 +783,42 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 201; } /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } /** - * - * *
    * Static Service IP connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder - getStaticServiceIpConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivityOrBuilder getStaticServiceIpConnectivityOrBuilder() { if (connectivityCase_ == 201) { - return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } public static final int FORWARD_SSH_CONNECTIVITY_FIELD_NUMBER = 202; /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return Whether the forwardSshConnectivity field is set. */ @java.lang.Override @@ -985,56 +826,42 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 202; } /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return The forwardSshConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getForwardSshConnectivity() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } /** - * - * *
    * Forward SSH tunnel connectivity.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder - getForwardSshConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivityOrBuilder getForwardSshConnectivityOrBuilder() { if (connectivityCase_ == 202) { - return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } public static final int PRIVATE_CONNECTIVITY_FIELD_NUMBER = 203; /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * * @return Whether the privateConnectivity field is set. */ @java.lang.Override @@ -1042,26 +869,21 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 203; } /** - * - * *
    * Private connectivity.
    * 
* * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * * @return The privateConnectivity. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnectivity() { if (connectivityCase_ == 203) { - return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); } /** - * - * *
    * Private connectivity.
    * 
@@ -1069,16 +891,14 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnec * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { if (connectivityCase_ == 203) { - return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; + return (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_; } return com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1090,7 +910,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1100,8 +921,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -1115,20 +940,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); } if (connectivityCase_ == 200) { - output.writeMessage( - 200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + output.writeMessage(200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); } if (connectivityCase_ == 201) { - output.writeMessage( - 201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); + output.writeMessage(201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 202) { - output.writeMessage( - 202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); + output.writeMessage(202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 203) { - output.writeMessage( - 203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + output.writeMessage(203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); } unknownFields.writeTo(output); } @@ -1143,60 +964,53 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (profileCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_); } if (profileCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_); } if (profileCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_); } if (connectivityCase_ == 200) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_); } if (connectivityCase_ == 201) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 201, - (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(201, (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_); } if (connectivityCase_ == 202) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 202, - (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(202, (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_); } if (connectivityCase_ == 203) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(203, (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1206,35 +1020,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ConnectionProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ConnectionProfile other = - (com.google.cloud.datastream.v1alpha1.ConnectionProfile) obj; + com.google.cloud.datastream.v1alpha1.ConnectionProfile other = (com.google.cloud.datastream.v1alpha1.ConnectionProfile) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getProfileCase().equals(other.getProfileCase())) return false; switch (profileCase_) { case 100: - if (!getOracleProfile().equals(other.getOracleProfile())) return false; + if (!getOracleProfile() + .equals(other.getOracleProfile())) return false; break; case 101: - if (!getGcsProfile().equals(other.getGcsProfile())) return false; + if (!getGcsProfile() + .equals(other.getGcsProfile())) return false; break; case 102: - if (!getMysqlProfile().equals(other.getMysqlProfile())) return false; + if (!getMysqlProfile() + .equals(other.getMysqlProfile())) return false; break; case 0: default: @@ -1242,17 +1063,20 @@ public boolean equals(final java.lang.Object obj) { if (!getConnectivityCase().equals(other.getConnectivityCase())) return false; switch (connectivityCase_) { case 200: - if (!getNoConnectivity().equals(other.getNoConnectivity())) return false; + if (!getNoConnectivity() + .equals(other.getNoConnectivity())) return false; break; case 201: - if (!getStaticServiceIpConnectivity().equals(other.getStaticServiceIpConnectivity())) - return false; + if (!getStaticServiceIpConnectivity() + .equals(other.getStaticServiceIpConnectivity())) return false; break; case 202: - if (!getForwardSshConnectivity().equals(other.getForwardSshConnectivity())) return false; + if (!getForwardSshConnectivity() + .equals(other.getForwardSshConnectivity())) return false; break; case 203: - if (!getPrivateConnectivity().equals(other.getPrivateConnectivity())) return false; + if (!getPrivateConnectivity() + .equals(other.getPrivateConnectivity())) return false; break; case 0: default: @@ -1326,139 +1150,135 @@ 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() @@ -1466,15 +1286,16 @@ 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(); @@ -1503,9 +1324,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 @@ -1524,8 +1345,7 @@ 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) { @@ -1600,39 +1420,38 @@ 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; @@ -1640,8 +1459,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ConnectionProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -1652,57 +1470,49 @@ 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(); @@ -1723,8 +1533,7 @@ 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) { @@ -1733,12 +1542,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() { @@ -1750,9 +1559,10 @@ public Builder clearProfile() { private int connectivityCase_ = 0; private java.lang.Object connectivity_; - - public ConnectivityCase getConnectivityCase() { - return ConnectivityCase.forNumber(connectivityCase_); + public ConnectivityCase + getConnectivityCase() { + return ConnectivityCase.forNumber( + connectivityCase_); } public Builder clearConnectivity() { @@ -1766,20 +1576,18 @@ public Builder clearConnectivity() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1788,21 +1596,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1810,61 +1617,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -1872,58 +1672,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return 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) { @@ -1939,17 +1720,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1960,21 +1738,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1986,15 +1760,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2008,64 +1778,48 @@ 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_; @@ -2073,58 +1827,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return 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) { @@ -2140,17 +1875,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -2161,21 +1893,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -2187,15 +1915,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2209,84 +1933,69 @@ 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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - 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(); @@ -2298,30 +2007,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -2329,12 +2036,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -2342,17 +2048,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -2360,11 +2065,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2372,79 +2078,78 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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; @@ -2453,21 +2158,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2475,80 +2179,67 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + 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 @@ -2556,14 +2247,11 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; - * * @return The oracleProfile. */ @java.lang.Override @@ -2581,8 +2269,6 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { } } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2603,8 +2289,6 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfi return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2623,8 +2307,6 @@ public Builder setOracleProfile( return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2633,14 +2315,10 @@ public Builder setOracleProfile( */ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfile value) { if (oracleProfileBuilder_ == null) { - if (profileCase_ == 100 - && profile_ - != com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 100 && + profile_ != com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1alpha1.OracleProfile.newBuilder((com.google.cloud.datastream.v1alpha1.OracleProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2655,8 +2333,6 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OraclePro return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2680,8 +2356,6 @@ public Builder clearOracleProfile() { return this; } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2692,8 +2366,6 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile.Builder getOracleProfi return getOracleProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2712,8 +2384,6 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } } /** - * - * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2721,44 +2391,32 @@ 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 @@ -2766,14 +2424,11 @@ public boolean hasGcsProfile() { return profileCase_ == 101; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; - * * @return The gcsProfile. */ @java.lang.Override @@ -2791,8 +2446,6 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { } } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2813,8 +2466,6 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile val return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2833,8 +2484,6 @@ public Builder setGcsProfile( return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2843,13 +2492,10 @@ public Builder setGcsProfile( */ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile value) { if (gcsProfileBuilder_ == null) { - if (profileCase_ == 101 - && profile_ != com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.GcsProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 101 && + profile_ != com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1alpha1.GcsProfile.newBuilder((com.google.cloud.datastream.v1alpha1.GcsProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -2864,8 +2510,6 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile v return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2889,8 +2533,6 @@ public Builder clearGcsProfile() { return this; } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2901,8 +2543,6 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile.Builder getGcsProfileBuil return getGcsProfileFieldBuilder().getBuilder(); } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2921,8 +2561,6 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } } /** - * - * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2930,44 +2568,32 @@ 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 @@ -2975,14 +2601,11 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; - * * @return The mysqlProfile. */ @java.lang.Override @@ -3000,8 +2623,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { } } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3022,8 +2643,6 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3042,8 +2661,6 @@ public Builder setMysqlProfile( return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3052,13 +2669,10 @@ public Builder setMysqlProfile( */ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile value) { if (mysqlProfileBuilder_ == null) { - if (profileCase_ == 102 - && profile_ != com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) { - profile_ = - com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_) - .mergeFrom(value) - .buildPartial(); + if (profileCase_ == 102 && + profile_ != com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) { + profile_ = com.google.cloud.datastream.v1alpha1.MysqlProfile.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlProfile) profile_) + .mergeFrom(value).buildPartial(); } else { profile_ = value; } @@ -3073,8 +2687,6 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfi return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3098,8 +2710,6 @@ public Builder clearMysqlProfile() { return this; } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3110,8 +2720,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder getMysqlProfile return getMysqlProfileFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3130,8 +2738,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } } /** - * - * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -3139,44 +2745,32 @@ 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 @@ -3184,14 +2778,11 @@ public boolean hasNoConnectivity() { return connectivityCase_ == 200; } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; - * * @return The noConnectivity. */ @java.lang.Override @@ -3209,16 +2800,13 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnecti } } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public Builder setNoConnectivity( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { + public Builder setNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { if (noConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3232,8 +2820,6 @@ public Builder setNoConnectivity( return this; } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3252,26 +2838,18 @@ public Builder setNoConnectivity( return this; } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public Builder mergeNoConnectivity( - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { + public Builder mergeNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings value) { if (noConnectivityBuilder_ == null) { - if (connectivityCase_ == 200 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.NoConnectivitySettings - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder( - (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 200 && + connectivity_ != com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.newBuilder((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3286,8 +2864,6 @@ public Builder mergeNoConnectivity( return this; } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3311,21 +2887,16 @@ public Builder clearNoConnectivity() { return this; } /** - * - * *
      * No connectivity option chosen.
      * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder - getNoConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder getNoConnectivityBuilder() { return getNoConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3333,8 +2904,7 @@ public Builder clearNoConnectivity() { * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder - getNoConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getNoConnectivityOrBuilder() { if ((connectivityCase_ == 200) && (noConnectivityBuilder_ != null)) { return noConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -3345,8 +2915,6 @@ public Builder clearNoConnectivity() { } } /** - * - * *
      * No connectivity option chosen.
      * 
@@ -3354,47 +2922,32 @@ public Builder clearNoConnectivity() { * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, - com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings, com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.Builder, com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder> getNoConnectivityFieldBuilder() { if (noConnectivityBuilder_ == null) { if (!(connectivityCase_ == 200)) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance(); + 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 @@ -3402,48 +2955,35 @@ public boolean hasStaticServiceIpConnectivity() { return connectivityCase_ == 201; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; * @return The staticServiceIpConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getStaticServiceIpConnectivity() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { if (connectivityCase_ == 201) { return (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } else { if (connectivityCase_ == 201) { return staticServiceIpConnectivityBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ - public Builder setStaticServiceIpConnectivity( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { + public Builder setStaticServiceIpConnectivity(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3457,15 +2997,11 @@ public Builder setStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ public Builder setStaticServiceIpConnectivity( com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.Builder builderForValue) { @@ -3479,29 +3015,18 @@ public Builder setStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ - public Builder mergeStaticServiceIpConnectivity( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { + public Builder mergeStaticServiceIpConnectivity(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity value) { if (staticServiceIpConnectivityBuilder_ == null) { - if (connectivityCase_ == 201 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder( - (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 201 && + connectivity_ != com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3516,15 +3041,11 @@ public Builder mergeStaticServiceIpConnectivity( return this; } /** - * - * *
      * Static Service IP connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; - * + * .google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity static_service_ip_connectivity = 201; */ public Builder clearStaticServiceIpConnectivity() { if (staticServiceIpConnectivityBuilder_ == null) { @@ -3543,97 +3064,67 @@ 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 @@ -3641,48 +3132,35 @@ public boolean hasForwardSshConnectivity() { return connectivityCase_ == 202; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; * @return The forwardSshConnectivity. */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getForwardSshConnectivity() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { if (connectivityCase_ == 202) { return (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_; } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } else { if (connectivityCase_ == 202) { return forwardSshConnectivityBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ - public Builder setForwardSshConnectivity( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { + public Builder setForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3696,15 +3174,11 @@ public Builder setForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ public Builder setForwardSshConnectivity( com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.Builder builderForValue) { @@ -3718,29 +3192,18 @@ public Builder setForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ - public Builder mergeForwardSshConnectivity( - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { + public Builder mergeForwardSshConnectivity(com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity value) { if (forwardSshConnectivityBuilder_ == null) { - if (connectivityCase_ == 202 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - .getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder( - (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) - connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 202 && + connectivity_ != com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3755,15 +3218,11 @@ public Builder mergeForwardSshConnectivity( return this; } /** - * - * *
      * Forward SSH tunnel connectivity.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; - * + * .google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity forward_ssh_connectivity = 202; */ public Builder clearForwardSshConnectivity() { if (forwardSshConnectivityBuilder_ == null) { @@ -3782,97 +3241,67 @@ 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 @@ -3880,15 +3309,11 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 203; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; * @return The privateConnectivity. */ @java.lang.Override @@ -3906,17 +3331,13 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getPrivateConnec } } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - public Builder setPrivateConnectivity( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { + public Builder setPrivateConnectivity(com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3930,14 +3351,11 @@ public Builder setPrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ public Builder setPrivateConnectivity( com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder builderForValue) { @@ -3951,26 +3369,18 @@ public Builder setPrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - public Builder mergePrivateConnectivity( - com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { + public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1alpha1.PrivateConnectivity value) { if (privateConnectivityBuilder_ == null) { - if (connectivityCase_ == 203 - && connectivity_ - != com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder( - (com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) - .mergeFrom(value) - .buildPartial(); + if (connectivityCase_ == 203 && + connectivity_ != com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) { + connectivity_ = com.google.cloud.datastream.v1alpha1.PrivateConnectivity.newBuilder((com.google.cloud.datastream.v1alpha1.PrivateConnectivity) connectivity_) + .mergeFrom(value).buildPartial(); } else { connectivity_ = value; } @@ -3985,14 +3395,11 @@ public Builder mergePrivateConnectivity( return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ public Builder clearPrivateConnectivity() { if (privateConnectivityBuilder_ == null) { @@ -4011,32 +3418,24 @@ public Builder clearPrivateConnectivity() { return this; } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder - getPrivateConnectivityBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder getPrivateConnectivityBuilder() { return getPrivateConnectivityFieldBuilder().getBuilder(); } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder - getPrivateConnectivityOrBuilder() { + public com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder getPrivateConnectivityOrBuilder() { if ((connectivityCase_ == 203) && (privateConnectivityBuilder_ != null)) { return privateConnectivityBuilder_.getMessageOrBuilder(); } else { @@ -4047,43 +3446,33 @@ public Builder clearPrivateConnectivity() { } } /** - * - * *
      * Private connectivity.
      * 
* - * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; - * + * .google.cloud.datastream.v1alpha1.PrivateConnectivity private_connectivity = 203; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnectivity, - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnectivity, com.google.cloud.datastream.v1alpha1.PrivateConnectivity.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectivityOrBuilder> getPrivateConnectivityFieldBuilder() { if (privateConnectivityBuilder_ == null) { if (!(connectivityCase_ == 203)) { - connectivity_ = - com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance(); + 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); } @@ -4093,12 +3482,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(); } @@ -4107,16 +3496,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; @@ -4131,4 +3520,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ConnectionProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileName.java diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java similarity index 74% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java index b075aafd..fc0843bf 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ConnectionProfileOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ConnectionProfileOrBuilder - extends +public interface ConnectionProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ConnectionProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,101 +90,90 @@ public interface ConnectionProfileOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + 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.
    * 
@@ -239,32 +183,24 @@ public interface ConnectionProfileOrBuilder 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.
    * 
@@ -274,32 +210,24 @@ public interface ConnectionProfileOrBuilder 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.
    * 
@@ -309,32 +237,24 @@ public interface ConnectionProfileOrBuilder 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.
    * 
@@ -344,127 +264,87 @@ public interface ConnectionProfileOrBuilder 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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java index f968f508..f82d4d43 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} */ -public final class CreateConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} + */ +public final class CreateConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) CreateConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateConnectionProfileRequest.newBuilder() to construct. - private CreateConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateConnectionProfileRequest() { parent_ = ""; connectionProfileId_ = ""; @@ -38,15 +23,16 @@ 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) @@ -65,91 +51,77 @@ 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; + connectionProfileId_ = s; + break; + } + case 26: { + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); } - 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; + connectionProfile_ = input.readMessage(com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(connectionProfile_); + connectionProfile_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -158,31 +130,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -209,29 +176,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 { @@ -242,16 +209,11 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -259,46 +221,32 @@ 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
@@ -314,7 +262,6 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -323,15 +270,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -347,15 +293,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -364,7 +311,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,7 +322,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -405,7 +352,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, connectionProfileId_); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -418,21 +366,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getConnectionProfileId().equals(other.getConnectionProfileId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getConnectionProfileId() + .equals(other.getConnectionProfileId())) return false; if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -460,137 +411,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.newBuilder() + // 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(); @@ -610,16 +554,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -633,8 +575,7 @@ 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) { @@ -651,51 +592,46 @@ 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(); @@ -730,9 +666,7 @@ 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) { @@ -744,22 +678,18 @@ 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; @@ -768,23 +698,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -792,67 +719,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of ConnectionProfiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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; @@ -860,20 +774,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object connectionProfileId_ = ""; /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ public java.lang.String getConnectionProfileId() { java.lang.Object ref = connectionProfileId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); connectionProfileId_ = s; return s; @@ -882,21 +794,20 @@ public java.lang.String getConnectionProfileId() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - public com.google.protobuf.ByteString getConnectionProfileIdBytes() { + public com.google.protobuf.ByteString + getConnectionProfileIdBytes() { java.lang.Object ref = connectionProfileId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); connectionProfileId_ = b; return b; } else { @@ -904,61 +815,54 @@ public com.google.protobuf.ByteString getConnectionProfileIdBytes() { } } /** - * - * *
      * Required. The connection profile identifier.
      * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The connectionProfileId to set. * @return This builder for chaining. */ - public Builder setConnectionProfileId(java.lang.String value) { + 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; @@ -966,61 +870,41 @@ public Builder setConnectionProfileIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return 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(); @@ -1034,15 +918,11 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -1056,24 +936,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (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; } @@ -1085,15 +958,11 @@ public Builder mergeConnectionProfile( return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -1107,66 +976,48 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The connection profile resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfileBuilder() { - + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { + 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_; @@ -1174,8 +1025,6 @@ public Builder clearConnectionProfile() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1191,13 +1040,13 @@ public Builder clearConnectionProfile() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1206,8 +1055,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1223,14 +1070,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1238,8 +1086,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1255,22 +1101,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -1286,18 +1130,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -1313,23 +1154,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); } @@ -1339,32 +1180,30 @@ 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; @@ -1376,8 +1215,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java index 44f0c313..3e8e678d 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateConnectionProfileRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateConnectionProfileRequestOrBuilder - extends +public interface CreateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of ConnectionProfiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The connectionProfileId. */ java.lang.String getConnectionProfileId(); /** - * - * *
    * Required. The connection profile identifier.
    * 
* * string connection_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for connectionProfileId. */ - com.google.protobuf.ByteString getConnectionProfileIdBytes(); + com.google.protobuf.ByteString + getConnectionProfileIdBytes(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The connection profile resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java index cf7f35a7..2422ec6e 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} */ -public final class CreatePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} + */ +public final class CreatePrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) CreatePrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePrivateConnectionRequest.newBuilder() to construct. - private CreatePrivateConnectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreatePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePrivateConnectionRequest() { parent_ = ""; privateConnectionId_ = ""; @@ -38,15 +23,16 @@ 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) @@ -65,91 +51,77 @@ 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(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - privateConnectionId_ = s; - break; + privateConnectionId_ = s; + break; + } + case 26: { + com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder subBuilder = null; + if (privateConnection_ != null) { + subBuilder = privateConnection_.toBuilder(); } - 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; + privateConnection_ = input.readMessage(com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(privateConnection_); + privateConnection_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -158,31 +130,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -193,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -209,29 +176,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 { @@ -242,16 +209,11 @@ public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { public static final int PRIVATE_CONNECTION_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.PrivateConnection privateConnection_; /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ @java.lang.Override @@ -259,46 +221,32 @@ 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
@@ -314,7 +262,6 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -323,15 +270,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -347,15 +293,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -364,7 +311,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -376,7 +322,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -405,7 +352,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, privateConnectionId_); } if (privateConnection_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPrivateConnection()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPrivateConnection()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -418,21 +366,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other = - (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPrivateConnectionId().equals(other.getPrivateConnectionId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPrivateConnectionId() + .equals(other.getPrivateConnectionId())) return false; if (hasPrivateConnection() != other.hasPrivateConnection()) return false; if (hasPrivateConnection()) { - if (!getPrivateConnection().equals(other.getPrivateConnection())) return false; + if (!getPrivateConnection() + .equals(other.getPrivateConnection())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -460,137 +411,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, - com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.class, com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.newBuilder() + // 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(); @@ -610,16 +554,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest.getDefaultInstance(); } @java.lang.Override @@ -633,8 +575,7 @@ 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) { @@ -651,51 +592,46 @@ 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(); @@ -730,9 +666,7 @@ 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) { @@ -744,22 +678,18 @@ 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; @@ -768,23 +698,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -792,67 +719,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of PrivateConnections.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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; @@ -860,20 +774,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object privateConnectionId_ = ""; /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ public java.lang.String getPrivateConnectionId() { java.lang.Object ref = privateConnectionId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionId_ = s; return s; @@ -882,21 +794,20 @@ public java.lang.String getPrivateConnectionId() { } } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ - public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionIdBytes() { java.lang.Object ref = privateConnectionId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionId_ = b; return b; } else { @@ -904,61 +815,54 @@ public com.google.protobuf.ByteString getPrivateConnectionIdBytes() { } } /** - * - * *
      * Required. The private connectivity identifier.
      * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The privateConnectionId to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionId(java.lang.String value) { + 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; @@ -966,61 +870,41 @@ public Builder setPrivateConnectionIdBytes(com.google.protobuf.ByteString value) private com.google.cloud.datastream.v1alpha1.PrivateConnection privateConnection_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> - privateConnectionBuilder_; + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> privateConnectionBuilder_; /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ public boolean hasPrivateConnection() { return 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(); @@ -1034,15 +918,11 @@ public Builder setPrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPrivateConnection( com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -1056,24 +936,17 @@ public Builder setPrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergePrivateConnection( - com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder mergePrivateConnection(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionBuilder_ == null) { if (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; } @@ -1085,15 +958,11 @@ public Builder mergePrivateConnection( return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPrivateConnection() { if (privateConnectionBuilder_ == null) { @@ -1107,66 +976,48 @@ public Builder clearPrivateConnection() { return this; } /** - * - * *
      * Required. The Private Connectivity resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - getPrivateConnectionBuilder() { - + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder getPrivateConnectionBuilder() { + 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_; @@ -1174,8 +1025,6 @@ public Builder clearPrivateConnection() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1191,13 +1040,13 @@ public Builder clearPrivateConnection() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1206,8 +1055,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1223,14 +1070,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1238,8 +1086,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1255,22 +1101,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -1286,18 +1130,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -1313,23 +1154,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); } @@ -1339,32 +1180,30 @@ 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; @@ -1376,8 +1215,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java index 50b7ee52..672386df 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreatePrivateConnectionRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreatePrivateConnectionRequestOrBuilder - extends +public interface CreatePrivateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of PrivateConnections.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The privateConnectionId. */ java.lang.String getPrivateConnectionId(); /** - * - * *
    * Required. The private connectivity identifier.
    * 
* * string private_connection_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionId. */ - com.google.protobuf.ByteString getPrivateConnectionIdBytes(); + com.google.protobuf.ByteString + getPrivateConnectionIdBytes(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the privateConnection field is set. */ boolean hasPrivateConnection(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The privateConnection. */ com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnection(); /** - * - * *
    * Required. The Private Connectivity resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.PrivateConnection private_connection = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreatePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreatePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java index 1373a0bd..2b13e4dd 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route creation request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateRouteRequest} */ -public final class CreateRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateRouteRequest) CreateRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateRouteRequest.newBuilder() to construct. private CreateRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateRouteRequest() { parent_ = ""; routeId_ = ""; @@ -45,15 +27,16 @@ 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) @@ -72,90 +55,77 @@ private CreateRouteRequest( 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(); - routeId_ = s; - break; + routeId_ = s; + break; + } + case 26: { + com.google.cloud.datastream.v1alpha1.Route.Builder subBuilder = null; + if (route_ != null) { + subBuilder = route_.toBuilder(); } - 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; + route_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(route_); + route_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -164,31 +134,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -199,14 +167,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -215,29 +180,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 { @@ -248,16 +213,11 @@ public com.google.protobuf.ByteString getRouteIdBytes() { public static final int ROUTE_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.Route route_; /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ @java.lang.Override @@ -265,34 +225,23 @@ 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() { @@ -302,8 +251,6 @@ 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
@@ -319,7 +266,6 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -328,15 +274,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -352,15 +297,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -369,7 +315,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -410,7 +356,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, routeId_); } if (route_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRoute()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getRoute()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); @@ -423,21 +370,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateRouteRequest other = - (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateRouteRequest other = (com.google.cloud.datastream.v1alpha1.CreateRouteRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getRouteId().equals(other.getRouteId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getRouteId() + .equals(other.getRouteId())) return false; if (hasRoute() != other.hasRoute()) return false; if (hasRoute()) { - if (!getRoute().equals(other.getRoute())) return false; + if (!getRoute() + .equals(other.getRoute())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -465,127 +415,117 @@ 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() @@ -593,15 +533,16 @@ 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(); @@ -621,9 +562,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 @@ -642,8 +583,7 @@ 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) { @@ -660,39 +600,38 @@ 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; @@ -700,8 +639,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.CreateRouteRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -736,8 +674,7 @@ 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) { @@ -749,22 +686,18 @@ 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; @@ -773,23 +706,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -797,67 +727,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of Routes.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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; @@ -865,20 +782,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object routeId_ = ""; /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ public java.lang.String getRouteId() { java.lang.Object ref = routeId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); routeId_ = s; return s; @@ -887,21 +802,20 @@ public java.lang.String getRouteId() { } } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ - public com.google.protobuf.ByteString getRouteIdBytes() { + public com.google.protobuf.ByteString + getRouteIdBytes() { java.lang.Object ref = routeId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); routeId_ = b; return b; } else { @@ -909,61 +823,54 @@ public com.google.protobuf.ByteString getRouteIdBytes() { } } /** - * - * *
      * Required. The Route identifier.
      * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The routeId to set. * @return This builder for chaining. */ - public Builder setRouteId(java.lang.String value) { + 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; @@ -971,58 +878,39 @@ public Builder setRouteIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.Route route_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder> - routeBuilder_; + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> routeBuilder_; /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ public boolean hasRoute() { return 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) { @@ -1038,17 +926,14 @@ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { + public Builder setRoute( + com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { if (routeBuilder_ == null) { route_ = builderForValue.build(); onChanged(); @@ -1059,23 +944,17 @@ public Builder setRoute(com.google.cloud.datastream.v1alpha1.Route.Builder build return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeRoute(com.google.cloud.datastream.v1alpha1.Route value) { if (routeBuilder_ == null) { if (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; } @@ -1087,15 +966,11 @@ public Builder mergeRoute(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** - * - * *
      * Required. The Route resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearRoute() { if (routeBuilder_ == null) { @@ -1109,64 +984,48 @@ 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_; @@ -1174,8 +1033,6 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1191,13 +1048,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; @@ -1206,8 +1063,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1223,14 +1078,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1238,8 +1094,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1255,22 +1109,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -1286,18 +1138,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -1313,23 +1162,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); } @@ -1339,12 +1188,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(); } @@ -1353,16 +1202,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; @@ -1377,4 +1226,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java index 26aa1064..d7fef1c2 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateRouteRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateRouteRequestOrBuilder - extends +public interface CreateRouteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateRouteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of Routes.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The routeId. */ java.lang.String getRouteId(); /** - * - * *
    * Required. The Route identifier.
    * 
* * string route_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for routeId. */ - com.google.protobuf.ByteString getRouteIdBytes(); + com.google.protobuf.ByteString + getRouteIdBytes(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the route field is set. */ boolean hasRoute(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The route. */ com.google.cloud.datastream.v1alpha1.Route getRoute(); /** - * - * *
    * Required. The Route resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Route route = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateRouteRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,8 +109,8 @@ public interface CreateRouteRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java index c6bf8f5a..1e5f8004 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} */ -public final class CreateStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.CreateStreamRequest} + */ +public final class CreateStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.CreateStreamRequest) CreateStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateStreamRequest.newBuilder() to construct. private CreateStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateStreamRequest() { parent_ = ""; streamId_ = ""; @@ -37,15 +23,16 @@ 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) @@ -64,100 +51,87 @@ 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; + streamId_ = s; + break; + } + case 26: { + com.google.cloud.datastream.v1alpha1.Stream.Builder subBuilder = null; + if (stream_ != null) { + subBuilder = stream_.toBuilder(); } - 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; + stream_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stream_); + stream_ = subBuilder.buildPartial(); } - 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; - } - break; + 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; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -166,31 +140,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -201,14 +173,11 @@ public com.google.protobuf.ByteString getParentBytes() { 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 @@ -217,29 +186,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 { @@ -250,16 +219,11 @@ public com.google.protobuf.ByteString getStreamIdBytes() { public static final int STREAM_FIELD_NUMBER = 3; private com.google.cloud.datastream.v1alpha1.Stream stream_; /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -267,34 +231,23 @@ 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() { @@ -304,8 +257,6 @@ 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
@@ -321,7 +272,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -330,15 +280,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -354,15 +303,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -373,15 +323,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { 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 @@ -392,14 +339,11 @@ 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 @@ -408,7 +352,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -420,7 +363,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -455,16 +399,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, streamId_); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -474,23 +421,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.CreateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.CreateStreamRequest other = - (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.CreateStreamRequest other = (com.google.cloud.datastream.v1alpha1.CreateStreamRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getStreamId().equals(other.getStreamId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getStreamId() + .equals(other.getStreamId())) return false; if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getStream() + .equals(other.getStream())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -513,128 +465,124 @@ 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() @@ -642,15 +590,16 @@ 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(); @@ -674,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_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 @@ -695,8 +644,7 @@ 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) { @@ -715,39 +663,38 @@ 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; @@ -755,8 +702,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.CreateStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.CreateStreamRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -797,8 +743,7 @@ 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) { @@ -810,22 +755,18 @@ 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; @@ -834,23 +775,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -858,67 +796,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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; @@ -926,20 +851,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object streamId_ = ""; /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ public java.lang.String getStreamId() { java.lang.Object ref = streamId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); streamId_ = s; return s; @@ -948,21 +871,20 @@ public java.lang.String getStreamId() { } } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ - public com.google.protobuf.ByteString getStreamIdBytes() { + public com.google.protobuf.ByteString + getStreamIdBytes() { java.lang.Object ref = streamId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); streamId_ = b; return b; } else { @@ -970,61 +892,54 @@ public com.google.protobuf.ByteString getStreamIdBytes() { } } /** - * - * *
      * Required. The stream identifier.
      * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The streamId to set. * @return This builder for chaining. */ - public Builder setStreamId(java.lang.String value) { + 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; @@ -1032,58 +947,39 @@ public Builder setStreamIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> - streamBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamBuilder_; /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return 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) { @@ -1099,17 +995,14 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder setStream( + com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); onChanged(); @@ -1120,23 +1013,17 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder bui return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { if (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; } @@ -1148,15 +1035,11 @@ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to create.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { if (streamBuilder_ == null) { @@ -1170,64 +1053,48 @@ 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_; @@ -1235,8 +1102,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1252,13 +1117,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; @@ -1267,8 +1132,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1284,14 +1147,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1299,8 +1163,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1316,22 +1178,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -1347,18 +1207,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -1374,32 +1231,29 @@ 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 @@ -1407,53 +1261,44 @@ 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 @@ -1461,43 +1306,37 @@ 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); } @@ -1507,12 +1346,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(); } @@ -1521,16 +1360,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; @@ -1545,4 +1384,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.CreateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java index 0f53c4bb..6aba7522 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CreateStreamRequestOrBuilder.java @@ -1,126 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface CreateStreamRequestOrBuilder - extends +public interface CreateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.CreateStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The streamId. */ java.lang.String getStreamId(); /** - * - * *
    * Required. The stream identifier.
    * 
* * string stream_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for streamId. */ - com.google.protobuf.ByteString getStreamIdBytes(); + com.google.protobuf.ByteString + getStreamIdBytes(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.datastream.v1alpha1.Stream getStream(); /** - * - * *
    * Required. The stream resource to create.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -136,13 +90,10 @@ public interface CreateStreamRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -158,34 +109,28 @@ public interface CreateStreamRequestOrBuilder
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Only validate the stream, but do not create any resources.
    * The default is false.
    * 
* * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Create the stream without validating it.
    * 
* * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java index 0b128b4e..60a64675 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} */ -public final class DeleteConnectionProfileRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} + */ +public final class DeleteConnectionProfileRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) DeleteConnectionProfileRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteConnectionProfileRequest.newBuilder() to construct. - private DeleteConnectionProfileRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteConnectionProfileRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteConnectionProfileRequest() { name_ = ""; requestId_ = ""; @@ -37,15 +22,16 @@ 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) @@ -64,67 +50,58 @@ 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; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -133,31 +110,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -168,8 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -185,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -194,15 +166,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -218,15 +189,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -235,7 +207,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -277,16 +249,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,137 +281,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.newBuilder() + // 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(); @@ -450,16 +416,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -473,8 +437,7 @@ 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(); @@ -485,51 +448,46 @@ 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(); @@ -557,9 +515,7 @@ 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) { @@ -571,22 +527,18 @@ 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; @@ -595,23 +547,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -619,67 +568,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the connection profile resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -687,8 +623,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -704,13 +638,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -719,8 +653,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -736,14 +668,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -751,8 +684,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -768,22 +699,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -799,18 +728,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -826,23 +752,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); } @@ -852,32 +778,30 @@ 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; @@ -889,8 +813,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java index c9765a1b..7a9b1e2d 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteConnectionProfileRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteConnectionProfileRequestOrBuilder - extends +public interface DeleteConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the connection profile resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteConnectionProfileRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java index 9f7259a6..ef564021 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequest.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} */ -public final class DeletePrivateConnectionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest} + */ +public final class DeletePrivateConnectionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) DeletePrivateConnectionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePrivateConnectionRequest.newBuilder() to construct. - private DeletePrivateConnectionRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeletePrivateConnectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePrivateConnectionRequest() { name_ = ""; requestId_ = ""; @@ -37,15 +22,16 @@ 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) @@ -64,72 +50,63 @@ 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(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 24: - { - force_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestId_ = s; + break; + } + case 24: { + + force_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -138,31 +115,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,8 +148,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -190,7 +163,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -199,15 +171,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -223,15 +194,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -242,15 +214,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { 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 @@ -259,7 +228,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +239,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -297,7 +266,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -307,17 +277,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other = - (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) obj; + com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest other = (com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; - if (getForce() != other.getForce()) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,144 +306,138 @@ public int hashCode() { hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (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(); @@ -485,16 +451,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest.getDefaultInstance(); } @java.lang.Override @@ -508,8 +472,7 @@ 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_; @@ -521,51 +484,46 @@ 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(); @@ -596,9 +554,7 @@ 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) { @@ -610,22 +566,18 @@ 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; @@ -634,23 +586,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -658,67 +607,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the private connectivity configuration to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -726,8 +662,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -743,13 +677,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -758,8 +692,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -775,14 +707,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -790,8 +723,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -807,22 +738,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -838,18 +767,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -865,32 +791,29 @@ 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 @@ -898,45 +821,39 @@ 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); } @@ -946,32 +863,30 @@ 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; @@ -983,8 +898,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java index 0a01c327..825736c9 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeletePrivateConnectionRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeletePrivateConnectionRequestOrBuilder - extends +public interface DeletePrivateConnectionRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the private connectivity configuration to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeletePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,21 +62,18 @@ public interface DeletePrivateConnectionRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. If set to true, any child routes that belong to this PrivateConnection will
    * also be deleted.
    * 
* * bool force = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java similarity index 72% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java index 11747525..4a3b9c47 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route deletion request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteRouteRequest} */ -public final class DeleteRouteRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteRouteRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteRouteRequest) DeleteRouteRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteRouteRequest.newBuilder() to construct. private DeleteRouteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteRouteRequest() { name_ = ""; requestId_ = ""; @@ -44,15 +26,16 @@ 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) @@ -71,67 +54,58 @@ 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; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -140,31 +114,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -175,8 +147,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -192,7 +162,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -201,15 +170,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -225,15 +193,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -242,7 +211,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +222,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -284,16 +253,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteRouteRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other = - (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other = (com.google.cloud.datastream.v1alpha1.DeleteRouteRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -315,127 +285,117 @@ 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() @@ -443,15 +403,16 @@ 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(); @@ -463,9 +424,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 @@ -484,8 +445,7 @@ 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(); @@ -496,39 +456,38 @@ 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; @@ -536,8 +495,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.DeleteRouteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -565,8 +523,7 @@ 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) { @@ -578,22 +535,18 @@ 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; @@ -602,23 +555,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -626,67 +576,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Route resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -694,8 +631,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -711,13 +646,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -726,8 +661,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -743,14 +676,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -758,8 +692,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -775,22 +707,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -806,18 +736,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -833,23 +760,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); } @@ -859,12 +786,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(); } @@ -873,16 +800,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; @@ -897,4 +824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java index 82e76db8..88c05759 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteRouteRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteRouteRequestOrBuilder - extends +public interface DeleteRouteRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteRouteRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the Route resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteRouteRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteRouteRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java similarity index 72% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java index 9a06c4ad..ff41ab8c 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} */ -public final class DeleteStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DeleteStreamRequest} + */ +public final class DeleteStreamRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.DeleteStreamRequest) DeleteStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteStreamRequest.newBuilder() to construct. private DeleteStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteStreamRequest() { name_ = ""; requestId_ = ""; @@ -36,15 +22,16 @@ 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) @@ -63,67 +50,58 @@ 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; - } - break; + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -132,31 +110,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -167,8 +143,6 @@ public com.google.protobuf.ByteString getNameBytes() { 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
@@ -184,7 +158,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -193,15 +166,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -217,15 +189,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -234,7 +207,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,7 +218,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -276,16 +249,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DeleteStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other = - (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other = (com.google.cloud.datastream.v1alpha1.DeleteStreamRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,119 +281,113 @@ 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() @@ -427,15 +395,16 @@ 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(); @@ -447,9 +416,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 @@ -468,8 +437,7 @@ 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(); @@ -480,39 +448,38 @@ 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; @@ -520,8 +487,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.DeleteStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.DeleteStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -549,8 +515,7 @@ 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) { @@ -562,22 +527,18 @@ 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; @@ -586,23 +547,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -610,67 +568,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream resource to delete.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -678,8 +623,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -695,13 +638,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -710,8 +653,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -727,14 +668,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -742,8 +684,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -759,22 +699,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -790,18 +728,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -817,23 +752,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); } @@ -843,12 +778,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(); } @@ -857,16 +792,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; @@ -881,4 +816,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DeleteStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java index b266e7a4..a13c99b2 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DeleteStreamRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DeleteStreamRequestOrBuilder - extends +public interface DeleteStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DeleteStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the stream resource to delete.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -70,13 +43,10 @@ public interface DeleteStreamRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -92,8 +62,8 @@ public interface DeleteStreamRequestOrBuilder
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java similarity index 64% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java index 8ed63ac6..a7823773 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -70,80 +53,66 @@ 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; + 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(); } - 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationStreamConfigCase_ = 100; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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; } @@ -159,36 +128,30 @@ 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 @@ -197,30 +160,29 @@ public java.lang.String getDestinationConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationConnectionProfileName_ = s; return s; } } /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for destinationConnectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getDestinationConnectionProfileNameBytes() { java.lang.Object ref = destinationConnectionProfileName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationConnectionProfileName_ = b; return b; } else { @@ -230,9 +192,7 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() public static final int GCS_DESTINATION_CONFIG_FIELD_NUMBER = 100; /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return Whether the gcsDestinationConfig field is set. */ @java.lang.Override @@ -240,33 +200,28 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder() { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,15 +233,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfileName_)) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 1, destinationConnectionProfileName_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, destinationConnectionProfileName_); } if (destinationStreamConfigCase_ == 100) { - output.writeMessage( - 100, - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); + output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); } unknownFields.writeTo(output); } @@ -298,15 +251,11 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationConnectionProfileName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize( - 1, destinationConnectionProfileName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, destinationConnectionProfileName_); } if (destinationStreamConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -316,21 +265,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DestinationConfig other = - (com.google.cloud.datastream.v1alpha1.DestinationConfig) obj; + com.google.cloud.datastream.v1alpha1.DestinationConfig other = (com.google.cloud.datastream.v1alpha1.DestinationConfig) obj; - if (!getDestinationConnectionProfileName().equals(other.getDestinationConnectionProfileName())) - return false; - if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) - return false; + if (!getDestinationConnectionProfileName() + .equals(other.getDestinationConnectionProfileName())) return false; + if (!getDestinationStreamConfigCase().equals(other.getDestinationStreamConfigCase())) return false; switch (destinationStreamConfigCase_) { case 100: - if (!getGcsDestinationConfig().equals(other.getGcsDestinationConfig())) return false; + if (!getGcsDestinationConfig() + .equals(other.getGcsDestinationConfig())) return false; break; case 0: default: @@ -362,127 +310,117 @@ 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() @@ -490,15 +428,16 @@ 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(); @@ -510,9 +449,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 @@ -531,8 +470,7 @@ 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) { @@ -550,39 +488,38 @@ 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; @@ -590,22 +527,19 @@ 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(); @@ -626,8 +560,7 @@ 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) { @@ -636,12 +569,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() { @@ -651,24 +584,21 @@ 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; @@ -677,23 +607,20 @@ public java.lang.String getDestinationConnectionProfileName() { } } /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for destinationConnectionProfileName. */ - public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getDestinationConnectionProfileNameBytes() { java.lang.Object ref = destinationConnectionProfileName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationConnectionProfileName_ = b; return b; } else { @@ -701,82 +628,63 @@ public com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes() } } /** - * - * *
      * Required. Destination connection profile identifier.
      * 
* - * - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The destinationConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setDestinationConnectionProfileName(java.lang.String value) { + 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 @@ -784,17 +692,14 @@ public boolean hasGcsDestinationConfig() { return destinationStreamConfigCase_ == 100; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return The gcsDestinationConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig() { if (gcsDestinationConfigBuilder_ == null) { if (destinationStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) - destinationStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_; } return com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance(); } else { @@ -805,11 +710,9 @@ public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinati } } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder setGcsDestinationConfig( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { + public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -823,8 +726,7 @@ public Builder setGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ public Builder setGcsDestinationConfig( com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.Builder builderForValue) { @@ -838,21 +740,14 @@ public Builder setGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - public Builder mergeGcsDestinationConfig( - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { + public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig value) { if (gcsDestinationConfigBuilder_ == null) { - if (destinationStreamConfigCase_ == 100 - && destinationStreamConfig_ - != com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) { - destinationStreamConfig_ = - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder( - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) - destinationStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (destinationStreamConfigCase_ == 100 && + destinationStreamConfig_ != com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) { + destinationStreamConfig_ = com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.newBuilder((com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) destinationStreamConfig_) + .mergeFrom(value).buildPartial(); } else { destinationStreamConfig_ = value; } @@ -867,8 +762,7 @@ public Builder mergeGcsDestinationConfig( return this; } /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ public Builder clearGcsDestinationConfig() { if (gcsDestinationConfigBuilder_ == null) { @@ -887,63 +781,49 @@ 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); } @@ -953,12 +833,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(); } @@ -967,16 +847,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; @@ -991,4 +871,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.DestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java similarity index 55% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java index 82556d05..7442f546 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DestinationConfigOrBuilder.java @@ -1,76 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface DestinationConfigOrBuilder - extends +public interface DestinationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DestinationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The destinationConnectionProfileName. */ java.lang.String getDestinationConnectionProfileName(); /** - * - * *
    * Required. Destination connection profile identifier.
    * 
* - * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string destination_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for destinationConnectionProfileName. */ - com.google.protobuf.ByteString getDestinationConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getDestinationConnectionProfileNameBytes(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return Whether the gcsDestinationConfig field is set. */ boolean hasGcsDestinationConfig(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; * @return The gcsDestinationConfig. */ com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getGcsDestinationConfig(); /** - * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; - * + * .google.cloud.datastream.v1alpha1.GcsDestinationConfig gcs_destination_config = 100; */ - com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder - getGcsDestinationConfigOrBuilder(); + com.google.cloud.datastream.v1alpha1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DestinationConfig.DestinationStreamConfigCase - getDestinationStreamConfigCase(); + public com.google.cloud.datastream.v1alpha1.DestinationConfig.DestinationStreamConfigCase getDestinationStreamConfigCase(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java index d3fe1e78..90cdfd9d 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequest.java @@ -1,58 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -71,132 +53,111 @@ 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: - { - depthCase_ = 3; - depth_ = input.readBool(); - break; + parent_ = s; + break; + } + case 24: { + depthCase_ = 3; + depth_ = input.readBool(); + break; + } + case 32: { + depthCase_ = 4; + depth_ = input.readInt32(); + break; + } + case 802: { + com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null; + if (dataObjectCase_ == 100) { + subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_).toBuilder(); } - case 32: - { - depthCase_ = 4; - depth_ = input.readInt32(); - 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 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_ = 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 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; + 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 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; + 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 1610: - { - java.lang.String s = input.readStringRequireUtf8(); - targetCase_ = 201; - target_ = s; - 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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; } @@ -212,38 +173,32 @@ public static TargetCase valueOf(int value) { public static TargetCase forNumber(int value) { switch (value) { - case 200: - return CONNECTION_PROFILE; - case 201: - return CONNECTION_PROFILE_NAME; - case 0: - return TARGET_NOT_SET; - default: - return null; + case 200: return CONNECTION_PROFILE; + case 201: return CONNECTION_PROFILE_NAME; + case 0: return TARGET_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public TargetCase getTargetCase() { - return TargetCase.forNumber(targetCase_); + public TargetCase + getTargetCase() { + return TargetCase.forNumber( + targetCase_); } private int depthCase_ = 0; private java.lang.Object depth_; - public enum DepthCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RECURSIVE(3), RECURSION_DEPTH(4), DEPTH_NOT_SET(0); private final int value; - private DepthCase(int value) { this.value = value; } @@ -259,38 +214,32 @@ public static DepthCase valueOf(int value) { public static DepthCase forNumber(int value) { switch (value) { - case 3: - return RECURSIVE; - case 4: - return RECURSION_DEPTH; - case 0: - return DEPTH_NOT_SET; - default: - return null; + case 3: return RECURSIVE; + case 4: return RECURSION_DEPTH; + case 0: return DEPTH_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DepthCase getDepthCase() { - return DepthCase.forNumber(depthCase_); + public DepthCase + getDepthCase() { + return DepthCase.forNumber( + depthCase_); } private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - public enum DataObjectCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { ORACLE_RDBMS(100), MYSQL_RDBMS(101), DATAOBJECT_NOT_SET(0); private final int value; - private DataObjectCase(int value) { this.value = value; } @@ -306,40 +255,32 @@ 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 @@ -348,32 +289,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -383,14 +322,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 200; /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -398,26 +334,21 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
@@ -425,38 +356,31 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if (targetCase_ == 200) { - return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; + return (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_; } return com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } public static final int CONNECTION_PROFILE_NAME_FIELD_NUMBER = 201; /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ public java.lang.String getConnectionProfileName() { @@ -467,7 +391,8 @@ public java.lang.String getConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -476,24 +401,23 @@ public java.lang.String getConnectionProfileName() { } } /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ - public com.google.protobuf.ByteString getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -505,15 +429,12 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { public static final int RECURSIVE_FIELD_NUMBER = 3; /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return Whether the recursive field is set. */ @java.lang.Override @@ -521,15 +442,12 @@ public boolean hasRecursive() { return depthCase_ == 3; } /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return The recursive. */ @java.lang.Override @@ -542,14 +460,11 @@ public boolean getRecursive() { public static final int RECURSION_DEPTH_FIELD_NUMBER = 4; /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return Whether the recursionDepth field is set. */ @java.lang.Override @@ -557,14 +472,11 @@ public boolean hasRecursionDepth() { return depthCase_ == 4; } /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return The recursionDepth. */ @java.lang.Override @@ -577,14 +489,11 @@ public int getRecursionDepth() { public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -592,26 +501,21 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -621,21 +525,18 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -643,26 +544,21 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -672,13 +568,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -690,15 +585,18 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (depthCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) depth_)); + output.writeBool( + 3, (boolean)((java.lang.Boolean) depth_)); } if (depthCase_ == 4) { - output.writeInt32(4, (int) ((java.lang.Integer) depth_)); + output.writeInt32( + 4, (int)((java.lang.Integer) depth_)); } if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); @@ -725,29 +623,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (depthCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) depth_)); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize( + 3, (boolean)((java.lang.Boolean) depth_)); } if (depthCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 4, (int) ((java.lang.Integer) depth_)); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size( + 4, (int)((java.lang.Integer) depth_)); } if (dataObjectCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); } if (targetCase_ == 200) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 200, (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(200, (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_); } if (targetCase_ == 201) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(201, target_); @@ -760,22 +655,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 200: - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; break; case 201: - if (!getConnectionProfileName().equals(other.getConnectionProfileName())) return false; + if (!getConnectionProfileName() + .equals(other.getConnectionProfileName())) return false; break; case 0: default: @@ -783,10 +680,12 @@ public boolean equals(final java.lang.Object obj) { if (!getDepthCase().equals(other.getDepthCase())) return false; switch (depthCase_) { case 3: - if (getRecursive() != other.getRecursive()) return false; + if (getRecursive() + != other.getRecursive()) return false; break; case 4: - if (getRecursionDepth() != other.getRecursionDepth()) return false; + if (getRecursionDepth() + != other.getRecursionDepth()) return false; break; case 0: default: @@ -794,10 +693,12 @@ public boolean equals(final java.lang.Object obj) { if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; break; case 0: default: @@ -830,7 +731,8 @@ public int hashCode() { switch (depthCase_) { case 3: hash = (37 * hash) + RECURSIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRecursive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRecursive()); break; case 4: hash = (37 * hash) + RECURSION_DEPTH_FIELD_NUMBER; @@ -857,145 +759,134 @@ 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(); @@ -1011,16 +902,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -1034,8 +923,7 @@ 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) { @@ -1078,104 +966,90 @@ 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(); @@ -1196,9 +1070,7 @@ 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) { @@ -1207,12 +1079,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() { @@ -1224,9 +1096,10 @@ public Builder clearTarget() { private int depthCase_ = 0; private java.lang.Object depth_; - - public DepthCase getDepthCase() { - return DepthCase.forNumber(depthCase_); + public DepthCase + getDepthCase() { + return DepthCase.forNumber( + depthCase_); } public Builder clearDepth() { @@ -1238,9 +1111,10 @@ public Builder clearDepth() { private int dataObjectCase_ = 0; private java.lang.Object dataObject_; - - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public Builder clearDataObject() { @@ -1250,25 +1124,22 @@ 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; @@ -1277,24 +1148,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -1302,89 +1170,70 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource of the ConnectionProfile type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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 @@ -1392,14 +1241,11 @@ public boolean hasConnectionProfile() { return targetCase_ == 200; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ @java.lang.Override @@ -1417,16 +1263,13 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi } } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public Builder setConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1440,8 +1283,6 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1460,25 +1301,18 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public Builder mergeConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { - if (targetCase_ == 200 - && target_ - != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { - target_ = - com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder( - (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_) - .mergeFrom(value) - .buildPartial(); + if (targetCase_ == 200 && + target_ != com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()) { + target_ = com.google.cloud.datastream.v1alpha1.ConnectionProfile.newBuilder((com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_) + .mergeFrom(value).buildPartial(); } else { target_ = value; } @@ -1493,8 +1327,6 @@ public Builder mergeConnectionProfile( return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1518,21 +1350,16 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfileBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { return getConnectionProfileFieldBuilder().getBuilder(); } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1540,8 +1367,7 @@ public Builder clearConnectionProfile() { * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfileOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder() { if ((targetCase_ == 200) && (connectionProfileBuilder_ != null)) { return connectionProfileBuilder_.getMessageOrBuilder(); } else { @@ -1552,8 +1378,6 @@ public Builder clearConnectionProfile() { } } /** - * - * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1561,39 +1385,30 @@ public Builder clearConnectionProfile() { * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfileFieldBuilder() { if (connectionProfileBuilder_ == null) { if (!(targetCase_ == 200)) { target_ = com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance(); } - connectionProfileBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + connectionProfileBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( (com.google.cloud.datastream.v1alpha1.ConnectionProfile) target_, getParentForChildren(), isClean()); 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 @@ -1601,14 +1416,11 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ @java.lang.Override @@ -1618,7 +1430,8 @@ public java.lang.String getConnectionProfileName() { ref = target_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (targetCase_ == 201) { target_ = s; @@ -1629,25 +1442,24 @@ public java.lang.String getConnectionProfileName() { } } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getConnectionProfileNameBytes() { java.lang.Object ref = ""; if (targetCase_ == 201) { ref = target_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (targetCase_ == 201) { target_ = b; } @@ -1657,35 +1469,30 @@ public com.google.protobuf.ByteString getConnectionProfileNameBytes() { } } /** - * - * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; - * * @param value The connectionProfileName to set. * @return This builder for chaining. */ - public Builder setConnectionProfileName(java.lang.String value) { + 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() { @@ -1697,22 +1504,20 @@ 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(); @@ -1720,30 +1525,24 @@ public Builder setConnectionProfileNameBytes(com.google.protobuf.ByteString valu } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; - * * @return Whether the recursive field is set. */ public boolean hasRecursive() { return depthCase_ == 3; } /** - * - * *
      * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
      * current level (FALSE).
      * 
* * bool recursive = 3; - * * @return The recursive. */ public boolean getRecursive() { @@ -1753,15 +1552,12 @@ 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. */ @@ -1772,15 +1568,12 @@ 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() { @@ -1793,28 +1586,22 @@ public Builder clearRecursive() { } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; - * * @return Whether the recursionDepth field is set. */ public boolean hasRecursionDepth() { return depthCase_ == 4; } /** - * - * *
      * The number of hierarchy levels below the current level to be retrieved.
      * 
* * int32 recursion_depth = 4; - * * @return The recursionDepth. */ public int getRecursionDepth() { @@ -1824,14 +1611,11 @@ 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. */ @@ -1842,14 +1626,11 @@ 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() { @@ -1862,19 +1643,13 @@ public Builder clearRecursionDepth() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> - oracleRdbmsBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> oracleRdbmsBuilder_; /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -1882,14 +1657,11 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override @@ -1907,8 +1679,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1929,8 +1699,6 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1949,8 +1717,6 @@ public Builder setOracleRdbms( return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1959,14 +1725,10 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 100 && + dataObject_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -1981,8 +1743,6 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2006,8 +1766,6 @@ public Builder clearOracleRdbms() { return this; } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2018,8 +1776,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2038,8 +1794,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** - * - * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -2047,44 +1801,32 @@ 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 @@ -2092,14 +1834,11 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override @@ -2117,8 +1856,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2139,8 +1876,6 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2159,8 +1894,6 @@ public Builder setMysqlRdbms( return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2169,14 +1902,10 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 101 && + dataObject_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -2191,8 +1920,6 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2216,8 +1943,6 @@ public Builder clearMysqlRdbms() { return this; } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2228,8 +1953,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2248,8 +1971,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** - * - * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -2257,32 +1978,26 @@ 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); } @@ -2292,32 +2007,30 @@ 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; @@ -2329,8 +2042,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java similarity index 77% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java index c01fc3eb..6299da66 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileRequestOrBuilder.java @@ -1,86 +1,53 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DiscoverConnectionProfileRequestOrBuilder - extends +public interface DiscoverConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource of the ConnectionProfile type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 200; - * * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * An ad-hoc ConnectionProfile configuration.
    * 
@@ -90,121 +57,93 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return Whether the connectionProfileName field is set. */ boolean hasConnectionProfileName(); /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The connectionProfileName. */ java.lang.String getConnectionProfileName(); /** - * - * *
    * A reference to an existing ConnectionProfile.
    * 
* * string connection_profile_name = 201; - * * @return The bytes for connectionProfileName. */ - com.google.protobuf.ByteString getConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getConnectionProfileNameBytes(); /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return Whether the recursive field is set. */ boolean hasRecursive(); /** - * - * *
    * Whether to retrieve the full hierarchy of data objects (TRUE) or only the
    * current level (FALSE).
    * 
* * bool recursive = 3; - * * @return The recursive. */ boolean getRecursive(); /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return Whether the recursionDepth field is set. */ boolean hasRecursionDepth(); /** - * - * *
    * The number of hierarchy levels below the current level to be retrieved.
    * 
* * int32 recursion_depth = 4; - * * @return The recursionDepth. */ int getRecursionDepth(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms(); /** - * - * *
    * Oracle RDBMS to enrich with child data objects and metadata.
    * 
@@ -214,32 +153,24 @@ public interface DiscoverConnectionProfileRequestOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms(); /** - * - * *
    * MySQL RDBMS to enrich with child data objects and metadata.
    * 
@@ -248,12 +179,9 @@ public interface DiscoverConnectionProfileRequestOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.TargetCase - getTargetCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.TargetCase getTargetCase(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DepthCase - getDepthCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DepthCase getDepthCase(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DataObjectCase - getDataObjectCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest.DataObjectCase getDataObjectCase(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java index 35d045e8..2a45b0a0 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponse.java @@ -1,48 +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.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) @@ -61,87 +48,75 @@ 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 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 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dataObjectCase_ = 101; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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; } @@ -157,36 +132,30 @@ public static DataObjectCase valueOf(int value) { public static DataObjectCase forNumber(int value) { switch (value) { - case 100: - return ORACLE_RDBMS; - case 101: - return MYSQL_RDBMS; - case 0: - return DATAOBJECT_NOT_SET; - default: - return null; + case 100: return ORACLE_RDBMS; + case 101: return MYSQL_RDBMS; + case 0: return DATAOBJECT_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataObjectCase getDataObjectCase() { - return DataObjectCase.forNumber(dataObjectCase_); + public DataObjectCase + getDataObjectCase() { + return DataObjectCase.forNumber( + dataObjectCase_); } public static final int ORACLE_RDBMS_FIELD_NUMBER = 100; /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -194,26 +163,21 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
@@ -223,21 +187,18 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder() { if (dataObjectCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_RDBMS_FIELD_NUMBER = 101; /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ @java.lang.Override @@ -245,26 +206,21 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
@@ -274,13 +230,12 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder() { if (dataObjectCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -292,7 +247,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } @@ -309,14 +265,12 @@ public int getSerializedSize() { size = 0; if (dataObjectCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_); } if (dataObjectCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -326,21 +280,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other = - (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) obj; + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse other = (com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) obj; if (!getDataObjectCase().equals(other.getDataObjectCase())) return false; switch (dataObjectCase_) { case 100: - if (!getOracleRdbms().equals(other.getOracleRdbms())) return false; + if (!getOracleRdbms() + .equals(other.getOracleRdbms())) return false; break; case 101: - if (!getMysqlRdbms().equals(other.getMysqlRdbms())) return false; + if (!getMysqlRdbms() + .equals(other.getMysqlRdbms())) return false; break; case 0: default: @@ -374,137 +329,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.class, com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.newBuilder() + // 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(); @@ -514,22 +462,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse build() { - com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = - buildPartial(); + com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -538,8 +483,7 @@ 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_; @@ -563,66 +507,58 @@ 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(); @@ -643,9 +579,7 @@ 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) { @@ -654,12 +588,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() { @@ -669,20 +603,15 @@ 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 @@ -690,14 +619,11 @@ public boolean hasOracleRdbms() { return dataObjectCase_ == 100; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ @java.lang.Override @@ -715,8 +641,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -737,8 +661,6 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -757,8 +679,6 @@ public Builder setOracleRdbms( return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -767,14 +687,10 @@ public Builder setOracleRdbms( */ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleRdbmsBuilder_ == null) { - if (dataObjectCase_ == 100 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 100 && + dataObject_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -789,8 +705,6 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -814,8 +728,6 @@ public Builder clearOracleRdbms() { return this; } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -826,8 +738,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -846,8 +756,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** - * - * *
      * Enriched Oracle RDBMS object.
      * 
@@ -855,44 +763,32 @@ 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 @@ -900,14 +796,11 @@ public boolean hasMysqlRdbms() { return dataObjectCase_ == 101; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ @java.lang.Override @@ -925,8 +818,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -947,8 +838,6 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -967,8 +856,6 @@ public Builder setMysqlRdbms( return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -977,14 +864,10 @@ public Builder setMysqlRdbms( */ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlRdbmsBuilder_ == null) { - if (dataObjectCase_ == 101 - && dataObject_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - dataObject_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) - .mergeFrom(value) - .buildPartial(); + if (dataObjectCase_ == 101 && + dataObject_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + dataObject_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) dataObject_) + .mergeFrom(value).buildPartial(); } else { dataObject_ = value; } @@ -999,8 +882,6 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1024,8 +905,6 @@ public Builder clearMysqlRdbms() { return this; } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1036,8 +915,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1056,8 +933,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** - * - * *
      * Enriched MySQL RDBMS object.
      * 
@@ -1065,32 +940,26 @@ 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); } @@ -1100,32 +969,30 @@ 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; @@ -1137,8 +1004,9 @@ public com.google.protobuf.Parser getParserFo } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java index 0e0ef1e0..4e610ac9 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DiscoverConnectionProfileResponseOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface DiscoverConnectionProfileResponseOrBuilder - extends +public interface DiscoverConnectionProfileResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return Whether the oracleRdbms field is set. */ boolean hasOracleRdbms(); /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_rdbms = 100; - * * @return The oracleRdbms. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms(); /** - * - * *
    * Enriched Oracle RDBMS object.
    * 
@@ -59,32 +35,24 @@ public interface DiscoverConnectionProfileResponseOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsOrBuilder(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return Whether the mysqlRdbms field is set. */ boolean hasMysqlRdbms(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_rdbms = 101; - * * @return The mysqlRdbms. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms(); /** - * - * *
    * Enriched MySQL RDBMS object.
    * 
@@ -93,6 +61,5 @@ public interface DiscoverConnectionProfileResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.DataObjectCase - getDataObjectCase(); + public com.google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse.DataObjectCase getDataObjectCase(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java index b3c0b40a..948d5ffe 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Error.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Represent a user-facing Error.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.Error} */ -public final class Error extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Error extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Error) ErrorOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Error.newBuilder() to construct. private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Error() { reason_ = ""; errorUuid_ = ""; @@ -45,15 +27,16 @@ 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) @@ -73,112 +56,102 @@ 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; + message_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (errorTime_ != null) { + subBuilder = errorTime_.toBuilder(); } - 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; + errorTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(errorTime_); + errorTime_ = subBuilder.buildPartial(); } - 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; + + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + details_ = com.google.protobuf.MapField.newMapField( + DetailsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -187,29 +160,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 { @@ -220,15 +193,12 @@ public com.google.protobuf.ByteString getReasonBytes() { 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 @@ -237,30 +207,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 { @@ -271,14 +241,11 @@ public com.google.protobuf.ByteString getErrorUuidBytes() { 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 @@ -287,29 +254,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 { @@ -320,14 +287,11 @@ public com.google.protobuf.ByteString getMessageBytes() { public static final int ERROR_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp errorTime_; /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ @java.lang.Override @@ -335,14 +299,11 @@ public boolean hasErrorTime() { return errorTime_ != null; } /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ @java.lang.Override @@ -350,8 +311,6 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** - * - * *
    * The time when the error occurred.
    * 
@@ -364,23 +323,24 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { } public static final int DETAILS_FIELD_NUMBER = 5; - private static final class DetailsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField details_; - - private com.google.protobuf.MapField internalGetDetails() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); } return details_; } @@ -389,30 +349,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsDetails( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -420,12 +378,11 @@ 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.
    * 
@@ -433,16 +390,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetDetails().getMap(); + + public java.lang.String getDetailsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Additional information about the error.
    * 
@@ -450,11 +407,12 @@ public java.lang.String getDetailsOrDefault(java.lang.String key, java.lang.Stri * map<string, string> details = 5; */ @java.lang.Override - public java.lang.String getDetailsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetDetails().getMap(); + + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -462,7 +420,6 @@ public java.lang.String getDetailsOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -474,7 +431,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); } @@ -487,8 +445,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (errorTime_ != null) { output.writeMessage(4, getErrorTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetDetails(), DetailsDefaultEntryHolder.defaultEntry, 5); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDetails(), + DetailsDefaultEntryHolder.defaultEntry, + 5); unknownFields.writeTo(output); } @@ -508,17 +470,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); } if (errorTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getErrorTime()); - } - for (java.util.Map.Entry entry : - internalGetDetails().getMap().entrySet()) { - com.google.protobuf.MapEntry details__ = - DetailsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, details__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getErrorTime()); + } + for (java.util.Map.Entry entry + : internalGetDetails().getMap().entrySet()) { + com.google.protobuf.MapEntry + details__ = DetailsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, details__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -528,22 +491,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Error)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Error other = - (com.google.cloud.datastream.v1alpha1.Error) obj; + com.google.cloud.datastream.v1alpha1.Error other = (com.google.cloud.datastream.v1alpha1.Error) obj; - if (!getReason().equals(other.getReason())) return false; - if (!getErrorUuid().equals(other.getErrorUuid())) return false; - if (!getMessage().equals(other.getMessage())) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getErrorUuid() + .equals(other.getErrorUuid())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (hasErrorTime() != other.hasErrorTime()) return false; if (hasErrorTime()) { - if (!getErrorTime().equals(other.getErrorTime())) return false; + if (!getErrorTime() + .equals(other.getErrorTime())) return false; } - if (!internalGetDetails().equals(other.internalGetDetails())) return false; + if (!internalGetDetails().equals( + other.internalGetDetails())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -574,147 +541,140 @@ 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() @@ -722,15 +682,16 @@ 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(); @@ -751,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_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 @@ -772,8 +733,7 @@ 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_; @@ -793,39 +753,38 @@ 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; @@ -849,7 +808,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Error other) { if (other.hasErrorTime()) { mergeErrorTime(other.getErrorTime()); } - internalGetMutableDetails().mergeFrom(other.internalGetDetails()); + internalGetMutableDetails().mergeFrom( + other.internalGetDetails()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -878,25 +838,22 @@ 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; @@ -905,21 +862,20 @@ public java.lang.String getReason() { } } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @return The bytes for reason. */ - public com.google.protobuf.ByteString getReasonBytes() { + public com.google.protobuf.ByteString + getReasonBytes() { java.lang.Object ref = reason_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); reason_ = b; return b; } else { @@ -927,61 +883,54 @@ public com.google.protobuf.ByteString getReasonBytes() { } } /** - * - * *
      * A title that explains the reason for the error.
      * 
* * string reason = 1; - * * @param value The reason to set. * @return This builder for chaining. */ - public Builder setReason(java.lang.String value) { + 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; @@ -989,21 +938,19 @@ public Builder setReasonBytes(com.google.protobuf.ByteString value) { private java.lang.Object errorUuid_ = ""; /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return The errorUuid. */ public java.lang.String getErrorUuid() { java.lang.Object ref = errorUuid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errorUuid_ = s; return s; @@ -1012,22 +959,21 @@ public java.lang.String getErrorUuid() { } } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ - public com.google.protobuf.ByteString getErrorUuidBytes() { + public com.google.protobuf.ByteString + getErrorUuidBytes() { java.lang.Object ref = errorUuid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); errorUuid_ = b; return b; } else { @@ -1035,64 +981,57 @@ public com.google.protobuf.ByteString getErrorUuidBytes() { } } /** - * - * *
      * A unique identifier for this specific error,
      * allowing it to be traced throughout the system in logs and API responses.
      * 
* * string error_uuid = 2; - * * @param value The errorUuid to set. * @return This builder for chaining. */ - public Builder setErrorUuid(java.lang.String value) { + 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; @@ -1100,20 +1039,18 @@ public Builder setErrorUuidBytes(com.google.protobuf.ByteString value) { private java.lang.Object message_ = ""; /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -1122,21 +1059,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -1144,61 +1080,54 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * A message containing more information about the error that occurred.
      * 
* * string message = 3; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + 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; @@ -1206,33 +1135,24 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp errorTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - errorTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> errorTimeBuilder_; /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ public boolean hasErrorTime() { return 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() { @@ -1243,8 +1163,6 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1265,15 +1183,14 @@ public Builder setErrorTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the error occurred.
      * 
* * .google.protobuf.Timestamp error_time = 4; */ - public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setErrorTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (errorTimeBuilder_ == null) { errorTime_ = builderForValue.build(); onChanged(); @@ -1284,8 +1201,6 @@ public Builder setErrorTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1296,7 +1211,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; } @@ -1308,8 +1223,6 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1328,8 +1241,6 @@ public Builder clearErrorTime() { return this; } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1337,13 +1248,11 @@ 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.
      * 
@@ -1354,12 +1263,11 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { if (errorTimeBuilder_ != null) { return errorTimeBuilder_.getMessageOrBuilder(); } else { - return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; + return errorTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } } /** - * - * *
      * The time when the error occurred.
      * 
@@ -1367,37 +1275,35 @@ public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() { * .google.protobuf.Timestamp error_time = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getErrorTimeFieldBuilder() { if (errorTimeBuilder_ == null) { - errorTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getErrorTime(), getParentForChildren(), isClean()); + errorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getErrorTime(), + getParentForChildren(), + isClean()); errorTime_ = null; } return errorTimeBuilder_; } - private com.google.protobuf.MapField details_; - - private com.google.protobuf.MapField internalGetDetails() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> details_; + private com.google.protobuf.MapField + internalGetDetails() { if (details_ == null) { - return com.google.protobuf.MapField.emptyMapField(DetailsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + DetailsDefaultEntryHolder.defaultEntry); } return details_; } - private com.google.protobuf.MapField - internalGetMutableDetails() { - 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(); @@ -1409,30 +1315,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsDetails( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -1440,12 +1344,11 @@ 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.
      * 
@@ -1453,17 +1356,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetDetails().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Additional information about the error.
      * 
@@ -1471,11 +1373,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetDetails().getMap(); + + public java.lang.String getDetailsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1483,65 +1386,66 @@ public java.lang.String getDetailsOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableDetails().getMutableMap().remove(key); + + public Builder removeDetails( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableDetails().getMutableMap().put(key, value); + public Builder putDetails( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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); } @@ -1551,12 +1455,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(); } @@ -1565,16 +1469,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; @@ -1589,4 +1493,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Error getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java index ca38a6b2..82a66c53 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ErrorOrBuilder.java @@ -1,132 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ErrorOrBuilder - extends +public interface ErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Error) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The reason. */ java.lang.String getReason(); /** - * - * *
    * A title that explains the reason for the error.
    * 
* * string reason = 1; - * * @return The bytes for reason. */ - com.google.protobuf.ByteString getReasonBytes(); + com.google.protobuf.ByteString + getReasonBytes(); /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The errorUuid. */ java.lang.String getErrorUuid(); /** - * - * *
    * A unique identifier for this specific error,
    * allowing it to be traced throughout the system in logs and API responses.
    * 
* * string error_uuid = 2; - * * @return The bytes for errorUuid. */ - com.google.protobuf.ByteString getErrorUuidBytes(); + com.google.protobuf.ByteString + getErrorUuidBytes(); /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * A message containing more information about the error that occurred.
    * 
* * string message = 3; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return Whether the errorTime field is set. */ boolean hasErrorTime(); /** - * - * *
    * The time when the error occurred.
    * 
* * .google.protobuf.Timestamp error_time = 4; - * * @return The errorTime. */ com.google.protobuf.Timestamp getErrorTime(); /** - * - * *
    * The time when the error occurred.
    * 
@@ -136,8 +97,6 @@ public interface ErrorOrBuilder com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder(); /** - * - * *
    * Additional information about the error.
    * 
@@ -146,46 +105,48 @@ public interface ErrorOrBuilder */ int getDetailsCount(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - boolean containsDetails(java.lang.String key); - /** Use {@link #getDetailsMap()} instead. */ + boolean containsDetails( + java.lang.String key); + /** + * Use {@link #getDetailsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getDetails(); + java.util.Map + getDetails(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.util.Map getDetailsMap(); + java.util.Map + getDetailsMap(); /** - * - * *
    * Additional information about the error.
    * 
* * map<string, string> details = 5; */ - java.lang.String getDetailsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getDetailsOrDefault( + java.lang.String key, + 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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java index 8fa70dfb..264c6e0a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -70,58 +53,52 @@ 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; - } - break; + stream_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -130,29 +107,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 { @@ -161,7 +138,6 @@ public com.google.protobuf.ByteString getStreamBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(stream_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, stream_); } @@ -197,15 +174,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; } @@ -225,127 +202,117 @@ 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() @@ -353,15 +320,16 @@ 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(); @@ -371,9 +339,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 @@ -392,8 +360,7 @@ 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; @@ -403,39 +370,38 @@ 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; @@ -443,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsRequest.getDefaultInstance()) return this; if (!other.getStream().isEmpty()) { stream_ = other.stream_; onChanged(); @@ -468,8 +433,7 @@ 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) { @@ -481,20 +445,18 @@ 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; @@ -503,21 +465,20 @@ public java.lang.String getStream() { } } /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for stream. */ - public com.google.protobuf.ByteString getStreamBytes() { + public com.google.protobuf.ByteString + getStreamBytes() { java.lang.Object ref = stream_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); stream_ = b; return b; } else { @@ -525,68 +486,61 @@ public com.google.protobuf.ByteString getStreamBytes() { } } /** - * - * *
      * Name of the Stream resource for which to fetch any errors.
      * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @param value The stream to set. * @return This builder for chaining. */ - public Builder setStream(java.lang.String value) { + 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); } @@ -596,12 +550,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(); } @@ -610,16 +564,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; @@ -634,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java index 5467845c..c082309d 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsRequestOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchErrorsRequestOrBuilder - extends +public interface FetchErrorsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchErrorsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The stream. */ java.lang.String getStream(); /** - * - * *
    * Name of the Stream resource for which to fetch any errors.
    * 
* * string stream = 1 [(.google.api.resource_reference) = { ... } - * * @return The bytes for stream. */ - com.google.protobuf.ByteString getStreamBytes(); + com.google.protobuf.ByteString + getStreamBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java similarity index 73% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java index 3f940035..4406335a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponse.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -71,30 +54,29 @@ private FetchErrorsResponse( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + errors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + errors_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -103,27 +85,22 @@ 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.
    * 
@@ -135,8 +112,6 @@ public java.util.List getErrorsList( return errors_; } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -144,13 +119,11 @@ public java.util.List getErrorsList( * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ @java.lang.Override - public java.util.List + public java.util.List getErrorsOrBuilderList() { return errors_; } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -162,8 +135,6 @@ public int getErrorsCount() { return errors_.size(); } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -175,8 +146,6 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -184,12 +153,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; @@ -201,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < errors_.size(); i++) { output.writeMessage(1, errors_.get(i)); } @@ -215,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, errors_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -225,15 +196,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; } @@ -255,127 +226,117 @@ 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() @@ -383,17 +344,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(); @@ -407,9 +368,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 @@ -428,8 +389,7 @@ 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)) { @@ -448,39 +408,38 @@ 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; @@ -488,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchErrorsResponse.getDefaultInstance()) return this; if (errorsBuilder_ == null) { if (!other.errors_.isEmpty()) { if (errors_.isEmpty()) { @@ -508,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchErrorsRespons errorsBuilder_ = null; errors_ = other.errors_; bitField0_ = (bitField0_ & ~0x00000001); - errorsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getErrorsFieldBuilder() - : null; + errorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getErrorsFieldBuilder() : null; } else { errorsBuilder_.addAllMessages(other.errors_); } @@ -536,8 +493,7 @@ 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) { @@ -546,28 +502,21 @@ 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.
      * 
@@ -582,8 +531,6 @@ public java.util.List getErrorsList( } } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -598,8 +545,6 @@ public int getErrorsCount() { } } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -614,15 +559,14 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { } } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -636,8 +580,6 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -656,8 +598,6 @@ public Builder setErrors( return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -678,15 +618,14 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,15 +639,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -719,8 +657,6 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder buil return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -739,8 +675,6 @@ public Builder addErrors( return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -751,7 +685,8 @@ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -759,8 +694,6 @@ public Builder addAllErrors( return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -778,8 +711,6 @@ public Builder clearErrors() { return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -797,44 +728,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -842,8 +768,6 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(in } } /** - * - * *
      * The list of errors on the Stream.
      * 
@@ -851,55 +775,49 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(in * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * The list of errors on the Stream.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - errors_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( + errors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); errors_ = null; } return errorsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -909,12 +827,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(); } @@ -923,16 +841,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; @@ -947,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchErrorsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java similarity index 62% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java index 5a82be31..5278eb06 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchErrorsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchErrorsResponseOrBuilder - extends +public interface FetchErrorsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchErrorsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - java.util.List getErrorsList(); + java.util.List + getErrorsList(); /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -44,8 +25,6 @@ public interface FetchErrorsResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.Error getErrors(int index); /** - * - * *
    * The list of errors on the Stream.
    * 
@@ -54,24 +33,21 @@ public interface FetchErrorsResponseOrBuilder */ int getErrorsCount(); /** - * - * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - java.util.List + java.util.List getErrorsOrBuilderList(); /** - * - * *
    * The list of errors on the Stream.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Error errors = 1; */ - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java index 49c49061..09cdeaf6 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Request message for 'FetchStaticIps' request.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsRequest} */ -public final class FetchStaticIpsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchStaticIpsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) FetchStaticIpsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchStaticIpsRequest.newBuilder() to construct. private FetchStaticIpsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchStaticIpsRequest() { name_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ 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) @@ -71,73 +54,64 @@ private FetchStaticIpsRequest( 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -146,32 +120,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -182,14 +154,11 @@ public com.google.protobuf.ByteString getNameBytes() { 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 @@ -200,15 +169,12 @@ 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 @@ -217,30 +183,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 { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -284,7 +250,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -297,17 +264,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other = - (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) obj; + com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) obj; - if (!getName().equals(other.getName())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getName() + .equals(other.getName())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,127 +300,117 @@ 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() @@ -459,15 +418,16 @@ 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(); @@ -481,9 +441,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 @@ -502,8 +462,7 @@ 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_; @@ -515,39 +474,38 @@ 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; @@ -555,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -587,8 +544,7 @@ 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) { @@ -600,23 +556,19 @@ 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; @@ -625,24 +577,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -650,85 +599,69 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name resource of the Response type. Must be in the
      * format `projects/*/locations/*`.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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 @@ -736,36 +669,30 @@ 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; @@ -773,21 +700,19 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -796,22 +721,21 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -819,71 +743,64 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListStaticIps` call.
      * will likely not be specified.
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + 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); } @@ -893,12 +810,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(); } @@ -907,16 +824,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; @@ -931,4 +848,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java index 841fd4db..945f8160 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsRequestOrBuilder.java @@ -1,96 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchStaticIpsRequestOrBuilder - extends +public interface FetchStaticIpsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchStaticIpsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name resource of the Response type. Must be in the
    * format `projects/*/locations/*`.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Maximum number of Ips to return, will likely not be specified.
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListStaticIps` call.
    * will likely not be specified.
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java index 01212f04..f296617c 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Response message for a 'FetchStaticIps' response.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.FetchStaticIpsResponse} */ -public final class FetchStaticIpsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class FetchStaticIpsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) FetchStaticIpsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use FetchStaticIpsResponse.newBuilder() to construct. private FetchStaticIpsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FetchStaticIpsResponse() { staticIps_ = com.google.protobuf.LazyStringArrayList.EMPTY; nextPageToken_ = ""; @@ -44,15 +26,16 @@ 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) @@ -72,36 +55,35 @@ 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; - } - staticIps_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + staticIps_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + staticIps_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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(); @@ -110,61 +92,50 @@ 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. */ @@ -172,33 +143,28 @@ 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 @@ -207,30 +173,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 { @@ -239,7 +205,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,7 +216,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < staticIps_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, staticIps_.getRaw(i)); } @@ -286,16 +252,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other = - (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) obj; + com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other = (com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) obj; - if (!getStaticIpsList().equals(other.getStaticIpsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getStaticIpsList() + .equals(other.getStaticIpsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,127 +286,117 @@ 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() @@ -447,15 +404,16 @@ 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(); @@ -467,9 +425,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 @@ -488,8 +446,7 @@ 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(); @@ -505,39 +462,38 @@ 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; @@ -545,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse.getDefaultInstance()) return this; if (!other.staticIps_.isEmpty()) { if (staticIps_.isEmpty()) { staticIps_ = other.staticIps_; @@ -580,8 +535,7 @@ 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) { @@ -590,55 +544,44 @@ 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. */ @@ -646,90 +589,80 @@ 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() { @@ -739,22 +672,20 @@ 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(); @@ -763,21 +694,19 @@ public Builder addStaticIpsBytes(com.google.protobuf.ByteString value) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -786,22 +715,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -809,71 +737,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + 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); } @@ -883,12 +804,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(); } @@ -897,16 +818,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; @@ -921,4 +842,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.FetchStaticIpsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java index b9ab94f9..33bd0c52 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/FetchStaticIpsResponseOrBuilder.java @@ -1,103 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface FetchStaticIpsResponseOrBuilder - extends +public interface FetchStaticIpsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.FetchStaticIpsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return A list containing the staticIps. */ - java.util.List getStaticIpsList(); + java.util.List + getStaticIpsList(); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @return The count of staticIps. */ int getStaticIpsCount(); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the element to return. * @return The staticIps at the given index. */ java.lang.String getStaticIps(int index); /** - * - * *
    * list of static ips by account
    * 
* * repeated string static_ips = 1; - * * @param index The index of the value to return. * @return The bytes of the staticIps at the given index. */ - com.google.protobuf.ByteString getStaticIpsBytes(int index); + com.google.protobuf.ByteString + getStaticIpsBytes(int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java index 0b6b66c8..1f2a99f9 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivity.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Forward SSH Tunnel connectivity.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity} */ -public final class ForwardSshTunnelConnectivity extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ForwardSshTunnelConnectivity extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) ForwardSshTunnelConnectivityOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ForwardSshTunnelConnectivity.newBuilder() to construct. private ForwardSshTunnelConnectivity(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ForwardSshTunnelConnectivity() { hostname_ = ""; username_ = ""; @@ -44,15 +26,16 @@ 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) @@ -71,85 +54,76 @@ 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(); + hostname_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - 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; + 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; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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; } @@ -165,37 +139,31 @@ 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 @@ -204,29 +172,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 { @@ -237,14 +205,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { 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 @@ -253,29 +218,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 { @@ -286,14 +251,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { 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 @@ -303,28 +265,22 @@ public int getPort() { public static final int PASSWORD_FIELD_NUMBER = 100; /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ public java.lang.String getPassword() { @@ -335,7 +291,8 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -344,24 +301,23 @@ public java.lang.String getPassword() { } } /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -373,28 +329,22 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int PRIVATE_KEY_FIELD_NUMBER = 101; /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ public java.lang.String getPrivateKey() { @@ -405,7 +355,8 @@ public java.lang.String getPrivateKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -414,24 +365,23 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -442,7 +392,6 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -454,7 +403,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -486,7 +436,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, username_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); } if (authenticationMethodCase_ == 100) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, authenticationMethod_); @@ -502,24 +453,28 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other = - (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) obj; + com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity other = (com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) obj; - if (!getHostname().equals(other.getHostname())) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (getPort() != other.getPort()) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (getPort() + != other.getPort()) return false; if (!getAuthenticationMethodCase().equals(other.getAuthenticationMethodCase())) return false; switch (authenticationMethodCase_) { case 100: - if (!getPassword().equals(other.getPassword())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; break; case 101: - if (!getPrivateKey().equals(other.getPrivateKey())) return false; + if (!getPrivateKey() + .equals(other.getPrivateKey())) return false; break; case 0: default: @@ -559,145 +514,134 @@ 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(); @@ -713,14 +657,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.getDefaultInstance(); } @@ -735,8 +678,7 @@ 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_; @@ -755,50 +697,46 @@ 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(); @@ -811,24 +749,21 @@ public Builder mergeFrom( setPort(other.getPort()); } switch (other.getAuthenticationMethodCase()) { - case PASSWORD: - { - authenticationMethodCase_ = 100; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case PRIVATE_KEY: - { - authenticationMethodCase_ = 101; - authenticationMethod_ = other.authenticationMethod_; - onChanged(); - break; - } - case AUTHENTICATIONMETHOD_NOT_SET: - { - break; - } + case PASSWORD: { + authenticationMethodCase_ = 100; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case PRIVATE_KEY: { + authenticationMethodCase_ = 101; + authenticationMethod_ = other.authenticationMethod_; + onChanged(); + break; + } + case AUTHENTICATIONMETHOD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -849,9 +784,7 @@ 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) { @@ -860,12 +793,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() { @@ -875,22 +808,21 @@ 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; @@ -899,21 +831,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -921,61 +852,54 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the SSH tunnel.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { + 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; @@ -983,20 +907,18 @@ public Builder setHostnameBytes(com.google.protobuf.ByteString value) { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1005,21 +927,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1027,76 +948,66 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the SSH tunnel.
      * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + 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 @@ -1104,50 +1015,41 @@ 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 @@ -1155,14 +1057,11 @@ public boolean hasPassword() { return authenticationMethodCase_ == 100; } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ @java.lang.Override @@ -1172,7 +1071,8 @@ public java.lang.String getPassword() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 100) { authenticationMethod_ = s; @@ -1183,25 +1083,24 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 100) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 100) { authenticationMethod_ = b; } @@ -1211,35 +1110,30 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Input only. SSH password.
      * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + 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() { @@ -1251,22 +1145,20 @@ 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(); @@ -1274,14 +1166,11 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ @java.lang.Override @@ -1289,14 +1178,11 @@ public boolean hasPrivateKey() { return authenticationMethodCase_ == 101; } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ @java.lang.Override @@ -1306,7 +1192,8 @@ public java.lang.String getPrivateKey() { ref = authenticationMethod_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (authenticationMethodCase_ == 101) { authenticationMethod_ = s; @@ -1317,25 +1204,24 @@ public java.lang.String getPrivateKey() { } } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateKeyBytes() { + public com.google.protobuf.ByteString + getPrivateKeyBytes() { java.lang.Object ref = ""; if (authenticationMethodCase_ == 101) { ref = authenticationMethod_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (authenticationMethodCase_ == 101) { authenticationMethod_ = b; } @@ -1345,35 +1231,30 @@ public com.google.protobuf.ByteString getPrivateKeyBytes() { } } /** - * - * *
      * Input only. SSH private key.
      * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The privateKey to set. * @return This builder for chaining. */ - public Builder setPrivateKey(java.lang.String value) { + 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() { @@ -1385,30 +1266,28 @@ 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); } @@ -1418,32 +1297,30 @@ 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; @@ -1455,8 +1332,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java index 8765fad1..0e90d3b7 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ForwardSshTunnelConnectivityOrBuilder.java @@ -1,165 +1,119 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ForwardSshTunnelConnectivityOrBuilder - extends +public interface ForwardSshTunnelConnectivityOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the SSH tunnel.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the SSH tunnel.
    * 
* * string username = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Port for the SSH tunnel, default value is 22.
    * 
* * int32 port = 3; - * * @return The port. */ int getPort(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the password field is set. */ boolean hasPassword(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Input only. SSH password.
    * 
* * string password = 100 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return Whether the privateKey field is set. */ boolean hasPrivateKey(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The privateKey. */ java.lang.String getPrivateKey(); /** - * - * *
    * Input only. SSH private key.
    * 
* * string private_key = 101 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for privateKey. */ - com.google.protobuf.ByteString getPrivateKeyBytes(); + com.google.protobuf.ByteString + getPrivateKeyBytes(); - public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodCase - getAuthenticationMethodCase(); + public com.google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity.AuthenticationMethodCase getAuthenticationMethodCase(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java index 714b6b42..28ae8f00 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Google Cloud Storage destination configuration
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsDestinationConfig} */ -public final class GcsDestinationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsDestinationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GcsDestinationConfig) GcsDestinationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsDestinationConfig.newBuilder() to construct. private GcsDestinationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsDestinationConfig() { path_ = ""; gcsFileFormat_ = 0; @@ -44,15 +26,16 @@ 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) @@ -71,124 +54,105 @@ 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(); + path_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + gcsFileFormat_ = rawValue; + break; + } + case 24: { - gcsFileFormat_ = rawValue; - break; + fileRotationMb_ = input.readInt32(); + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (fileRotationInterval_ != null) { + subBuilder = fileRotationInterval_.toBuilder(); } - case 24: - { - fileRotationMb_ = input.readInt32(); - break; + fileRotationInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fileRotationInterval_); + fileRotationInterval_ = subBuilder.buildPartial(); } - 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; + + break; + } + case 802: { + com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder subBuilder = null; + if (fileFormatCase_ == 100) { + subBuilder = ((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_).toBuilder(); } - 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; + 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; + } + case 810: { + com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder subBuilder = null; + if (fileFormatCase_ == 101) { + subBuilder = ((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_).toBuilder(); } - 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; + 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(); } - 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) { throw e.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; } @@ -204,37 +168,31 @@ 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 @@ -243,29 +201,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 { @@ -276,58 +234,40 @@ public com.google.protobuf.ByteString getPathBytes() { 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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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 @@ -338,15 +278,12 @@ public int getFileRotationMb() { public static final int FILE_ROTATION_INTERVAL_FIELD_NUMBER = 4; private com.google.protobuf.Duration fileRotationInterval_; /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return Whether the fileRotationInterval field is set. */ @java.lang.Override @@ -354,26 +291,19 @@ public boolean hasFileRotationInterval() { return fileRotationInterval_ != null; } /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
    * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return The fileRotationInterval. */ @java.lang.Override public com.google.protobuf.Duration getFileRotationInterval() { - return fileRotationInterval_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : fileRotationInterval_; + return fileRotationInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_; } /** - * - * *
    * The maximum duration for which new events are added before a file is
    * closed and a new file is created.
@@ -388,14 +318,11 @@ 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 @@ -403,26 +330,21 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } /** - * - * *
    * AVRO file format configuration.
    * 
@@ -432,21 +354,18 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if (fileFormatCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } public static final int JSON_FILE_FORMAT_FIELD_NUMBER = 101; /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ @java.lang.Override @@ -454,26 +373,21 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } /** - * - * *
    * JSON file format configuration.
    * 
@@ -483,13 +397,12 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if (fileFormatCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; + return (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_; } return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -501,13 +414,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_); } - if (gcsFileFormat_ - != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED - .getNumber()) { + if (gcsFileFormat_ != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(2, gcsFileFormat_); } if (fileRotationMb_ != 0) { @@ -534,27 +446,25 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(path_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_); } - if (gcsFileFormat_ - != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, gcsFileFormat_); + if (gcsFileFormat_ != com.google.cloud.datastream.v1alpha1.GcsFileFormat.GCS_FILE_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, gcsFileFormat_); } if (fileRotationMb_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, fileRotationMb_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, fileRotationMb_); } if (fileRotationInterval_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFileRotationInterval()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFileRotationInterval()); } if (fileFormatCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_); } if (fileFormatCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -564,28 +474,32 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GcsDestinationConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other = - (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) obj; + com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other = (com.google.cloud.datastream.v1alpha1.GcsDestinationConfig) obj; - if (!getPath().equals(other.getPath())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (gcsFileFormat_ != other.gcsFileFormat_) return false; - if (getFileRotationMb() != other.getFileRotationMb()) return false; + if (getFileRotationMb() + != other.getFileRotationMb()) return false; if (hasFileRotationInterval() != other.hasFileRotationInterval()) return false; if (hasFileRotationInterval()) { - if (!getFileRotationInterval().equals(other.getFileRotationInterval())) return false; + if (!getFileRotationInterval() + .equals(other.getFileRotationInterval())) return false; } if (!getFileFormatCase().equals(other.getFileFormatCase())) return false; switch (fileFormatCase_) { case 100: - if (!getAvroFileFormat().equals(other.getAvroFileFormat())) return false; + if (!getAvroFileFormat() + .equals(other.getAvroFileFormat())) return false; break; case 101: - if (!getJsonFileFormat().equals(other.getJsonFileFormat())) return false; + if (!getJsonFileFormat() + .equals(other.getJsonFileFormat())) return false; break; case 0: default: @@ -629,127 +543,117 @@ 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() @@ -757,15 +661,16 @@ 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(); @@ -787,9 +692,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 @@ -808,8 +713,7 @@ 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_; @@ -841,39 +745,38 @@ 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; @@ -881,8 +784,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsDestinationConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.getDefaultInstance()) return this; if (!other.getPath().isEmpty()) { path_ = other.path_; onChanged(); @@ -897,20 +799,17 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsDestinationConf mergeFileRotationInterval(other.getFileRotationInterval()); } switch (other.getFileFormatCase()) { - case AVRO_FILE_FORMAT: - { - mergeAvroFileFormat(other.getAvroFileFormat()); - break; - } - case JSON_FILE_FORMAT: - { - mergeJsonFileFormat(other.getJsonFileFormat()); - break; - } - case FILEFORMAT_NOT_SET: - { - break; - } + case AVRO_FILE_FORMAT: { + mergeAvroFileFormat(other.getAvroFileFormat()); + break; + } + case JSON_FILE_FORMAT: { + mergeJsonFileFormat(other.getJsonFileFormat()); + break; + } + case FILEFORMAT_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -931,8 +830,7 @@ 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) { @@ -941,12 +839,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() { @@ -956,22 +854,21 @@ 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; @@ -980,21 +877,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); path_ = b; return b; } else { @@ -1002,61 +898,54 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Path inside the Cloud Storage bucket to write data to.
      * 
* * string path = 1; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + 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; @@ -1064,127 +953,90 @@ public Builder setPathBytes(com.google.protobuf.ByteString value) { private int gcsFileFormat_ = 0; /** - * - * *
      * File format that data should be written in.
      * Deprecated field - use file_format instead.
      * 
* - * - * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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 @@ -1192,36 +1044,30 @@ 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; @@ -1229,49 +1075,36 @@ public Builder clearFileRotationMb() { private com.google.protobuf.Duration fileRotationInterval_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - fileRotationIntervalBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> fileRotationIntervalBuilder_; /** - * - * *
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
      * 
* * .google.protobuf.Duration file_rotation_interval = 4; - * * @return Whether the fileRotationInterval field is set. */ public boolean hasFileRotationInterval() { return 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.
@@ -1293,8 +1126,6 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1302,7 +1133,8 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
-    public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setFileRotationInterval(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (fileRotationIntervalBuilder_ == null) {
         fileRotationInterval_ = builderForValue.build();
         onChanged();
@@ -1313,8 +1145,6 @@ public Builder setFileRotationInterval(com.google.protobuf.Duration.Builder buil
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1326,9 +1156,7 @@ 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;
         }
@@ -1340,8 +1168,6 @@ public Builder mergeFileRotationInterval(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1361,8 +1187,6 @@ public Builder clearFileRotationInterval() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1371,13 +1195,11 @@ 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.
@@ -1389,14 +1211,11 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
       if (fileRotationIntervalBuilder_ != null) {
         return fileRotationIntervalBuilder_.getMessageOrBuilder();
       } else {
-        return fileRotationInterval_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : fileRotationInterval_;
+        return fileRotationInterval_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : fileRotationInterval_;
       }
     }
     /**
-     *
-     *
      * 
      * The maximum duration for which new events are added before a file is
      * closed and a new file is created.
@@ -1405,36 +1224,27 @@ public com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder()
      * .google.protobuf.Duration file_rotation_interval = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getFileRotationIntervalFieldBuilder() {
       if (fileRotationIntervalBuilder_ == null) {
-        fileRotationIntervalBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getFileRotationInterval(), getParentForChildren(), isClean());
+        fileRotationIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getFileRotationInterval(),
+                getParentForChildren(),
+                isClean());
         fileRotationInterval_ = null;
       }
       return fileRotationIntervalBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.AvroFileFormat,
-            com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder,
-            com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>
-        avroFileFormatBuilder_;
+        com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> avroFileFormatBuilder_;
     /**
-     *
-     *
      * 
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ @java.lang.Override @@ -1442,14 +1252,11 @@ public boolean hasAvroFileFormat() { return fileFormatCase_ == 100; } /** - * - * *
      * AVRO file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ @java.lang.Override @@ -1467,8 +1274,6 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { } } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1489,8 +1294,6 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFo return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1509,8 +1312,6 @@ public Builder setAvroFileFormat( return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1519,14 +1320,10 @@ public Builder setAvroFileFormat( */ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFormat value) { if (avroFileFormatBuilder_ == null) { - if (fileFormatCase_ == 100 - && fileFormat_ - != com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) { - fileFormat_ = - com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder( - (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_) - .mergeFrom(value) - .buildPartial(); + if (fileFormatCase_ == 100 && + fileFormat_ != com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance()) { + fileFormat_ = com.google.cloud.datastream.v1alpha1.AvroFileFormat.newBuilder((com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_) + .mergeFrom(value).buildPartial(); } else { fileFormat_ = value; } @@ -1541,8 +1338,6 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFile return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1566,8 +1361,6 @@ public Builder clearAvroFileFormat() { return this; } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1578,8 +1371,6 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo return getAvroFileFormatFieldBuilder().getBuilder(); } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1587,8 +1378,7 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder - getAvroFileFormatOrBuilder() { + public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder() { if ((fileFormatCase_ == 100) && (avroFileFormatBuilder_ != null)) { return avroFileFormatBuilder_.getMessageOrBuilder(); } else { @@ -1599,8 +1389,6 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo } } /** - * - * *
      * AVRO file format configuration.
      * 
@@ -1608,44 +1396,32 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.AvroFileFormat, - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> + com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder> getAvroFileFormatFieldBuilder() { if (avroFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 100)) { fileFormat_ = com.google.cloud.datastream.v1alpha1.AvroFileFormat.getDefaultInstance(); } - avroFileFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.AvroFileFormat, - com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>( + avroFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.AvroFileFormat, com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder, com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder>( (com.google.cloud.datastream.v1alpha1.AvroFileFormat) fileFormat_, getParentForChildren(), isClean()); 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 @@ -1653,14 +1429,11 @@ public boolean hasJsonFileFormat() { return fileFormatCase_ == 101; } /** - * - * *
      * JSON file format configuration.
      * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ @java.lang.Override @@ -1678,8 +1451,6 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { } } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1700,8 +1471,6 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFo return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1720,8 +1489,6 @@ public Builder setJsonFileFormat( return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1730,14 +1497,10 @@ public Builder setJsonFileFormat( */ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFormat value) { if (jsonFileFormatBuilder_ == null) { - if (fileFormatCase_ == 101 - && fileFormat_ - != com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) { - fileFormat_ = - com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder( - (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_) - .mergeFrom(value) - .buildPartial(); + if (fileFormatCase_ == 101 && + fileFormat_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) { + fileFormat_ = com.google.cloud.datastream.v1alpha1.JsonFileFormat.newBuilder((com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_) + .mergeFrom(value).buildPartial(); } else { fileFormat_ = value; } @@ -1752,8 +1515,6 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFile return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1777,8 +1538,6 @@ public Builder clearJsonFileFormat() { return this; } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1789,8 +1548,6 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo return getJsonFileFormatFieldBuilder().getBuilder(); } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1798,8 +1555,7 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder - getJsonFileFormatOrBuilder() { + public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder() { if ((fileFormatCase_ == 101) && (jsonFileFormatBuilder_ != null)) { return jsonFileFormatBuilder_.getMessageOrBuilder(); } else { @@ -1810,8 +1566,6 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo } } /** - * - * *
      * JSON file format configuration.
      * 
@@ -1819,32 +1573,26 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> + com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder> getJsonFileFormatFieldBuilder() { if (jsonFileFormatBuilder_ == null) { if (!(fileFormatCase_ == 101)) { fileFormat_ = com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance(); } - jsonFileFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.JsonFileFormat, - com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, - com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder>( + jsonFileFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.JsonFileFormat, com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder, com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder>( (com.google.cloud.datastream.v1alpha1.JsonFileFormat) fileFormat_, getParentForChildren(), isClean()); 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); } @@ -1854,12 +1602,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(); } @@ -1868,16 +1616,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; @@ -1892,4 +1640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java similarity index 76% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java index a9091459..bd50f983 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsDestinationConfigOrBuilder.java @@ -1,126 +1,84 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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]; - * - * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; * @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.
@@ -131,32 +89,24 @@ public interface GcsDestinationConfigOrBuilder
   com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder();
 
   /**
-   *
-   *
    * 
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return Whether the avroFileFormat field is set. */ boolean hasAvroFileFormat(); /** - * - * *
    * AVRO file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.AvroFileFormat avro_file_format = 100; - * * @return The avroFileFormat. */ com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat(); /** - * - * *
    * AVRO file format configuration.
    * 
@@ -166,32 +116,24 @@ public interface GcsDestinationConfigOrBuilder com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder(); /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return Whether the jsonFileFormat field is set. */ boolean hasJsonFileFormat(); /** - * - * *
    * JSON file format configuration.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat json_file_format = 101; - * * @return The jsonFileFormat. */ com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat(); /** - * - * *
    * JSON file format configuration.
    * 
@@ -200,6 +142,5 @@ public interface GcsDestinationConfigOrBuilder */ com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder(); - public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.FileFormatCase - getFileFormatCase(); + public com.google.cloud.datastream.v1alpha1.GcsDestinationConfig.FileFormatCase getFileFormatCase(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java similarity index 63% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java index 054cf6b2..ef27761a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsFileFormat.java @@ -1,37 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * File format in Cloud Storage.
  * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.GcsFileFormat} */ -@java.lang.Deprecated -public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { +@java.lang.Deprecated public enum GcsFileFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified Cloud Storage file format.
    * 
@@ -40,8 +21,6 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { */ GCS_FILE_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Avro file format
    * 
@@ -53,8 +32,6 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified Cloud Storage file format.
    * 
@@ -63,8 +40,6 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GCS_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Avro file format
    * 
@@ -73,6 +48,7 @@ public enum GcsFileFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AVRO_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -97,49 +73,48 @@ public static GcsFileFormat valueOf(int value) { */ public static GcsFileFormat forNumber(int value) { switch (value) { - case 0: - return GCS_FILE_FORMAT_UNSPECIFIED; - case 1: - return AVRO; - default: - return null; + case 0: return GCS_FILE_FORMAT_UNSPECIFIED; + case 1: return AVRO; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GcsFileFormat findValueByNumber(int number) { - return GcsFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + GcsFileFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GcsFileFormat findValueByNumber(int number) { + return GcsFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final GcsFileFormat[] VALUES = values(); - public static GcsFileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static GcsFileFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -155,3 +130,4 @@ private GcsFileFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.GcsFileFormat) } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java index d2c9d8fd..a318d046 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Cloud Storage bucket profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.GcsProfile} */ -public final class GcsProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.GcsProfile) GcsProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsProfile.newBuilder() to construct. private GcsProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsProfile() { bucketName_ = ""; rootPath_ = ""; @@ -44,15 +26,16 @@ 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) @@ -71,66 +54,59 @@ 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; - } - break; + rootPath_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -139,30 +115,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 { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getBucketNameBytes() { 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 @@ -189,29 +162,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 { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getRootPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,7 +204,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketName_); } @@ -262,16 +235,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.GcsProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.GcsProfile other = - (com.google.cloud.datastream.v1alpha1.GcsProfile) obj; + com.google.cloud.datastream.v1alpha1.GcsProfile other = (com.google.cloud.datastream.v1alpha1.GcsProfile) obj; - if (!getBucketName().equals(other.getBucketName())) return false; - if (!getRootPath().equals(other.getRootPath())) return false; + if (!getBucketName() + .equals(other.getBucketName())) return false; + if (!getRootPath() + .equals(other.getRootPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,127 +266,118 @@ 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() @@ -420,15 +385,16 @@ 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(); @@ -440,9 +406,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 @@ -461,8 +427,7 @@ 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(); @@ -473,39 +438,38 @@ 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; @@ -513,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GcsProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GcsProfile.getDefaultInstance()) return this; if (!other.getBucketName().isEmpty()) { bucketName_ = other.bucketName_; onChanged(); @@ -554,21 +517,19 @@ 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; @@ -577,22 +538,21 @@ public java.lang.String getBucketName() { } } /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketName. */ - public com.google.protobuf.ByteString getBucketNameBytes() { + public com.google.protobuf.ByteString + getBucketNameBytes() { java.lang.Object ref = bucketName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); bucketName_ = b; return b; } else { @@ -600,64 +560,57 @@ public com.google.protobuf.ByteString getBucketNameBytes() { } } /** - * - * *
      * Required. The full project and resource path for Cloud Storage bucket including the
      * name.
      * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bucketName to set. * @return This builder for chaining. */ - public Builder setBucketName(java.lang.String value) { + 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; @@ -665,20 +618,18 @@ public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object rootPath_ = ""; /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return The rootPath. */ public java.lang.String getRootPath() { java.lang.Object ref = rootPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rootPath_ = s; return s; @@ -687,21 +638,20 @@ public java.lang.String getRootPath() { } } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ - public com.google.protobuf.ByteString getRootPathBytes() { + public com.google.protobuf.ByteString + getRootPathBytes() { java.lang.Object ref = rootPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); rootPath_ = b; return b; } else { @@ -709,68 +659,61 @@ public com.google.protobuf.ByteString getRootPathBytes() { } } /** - * - * *
      * The root path inside the Cloud Storage bucket.
      * 
* * string root_path = 2; - * * @param value The rootPath to set. * @return This builder for chaining. */ - public Builder setRootPath(java.lang.String value) { + 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); } @@ -780,12 +723,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(); } @@ -794,16 +737,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; @@ -818,4 +761,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GcsProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java similarity index 60% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java index 887ce584..f4e08892 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GcsProfileOrBuilder.java @@ -1,77 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface GcsProfileOrBuilder - extends +public interface GcsProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GcsProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketName. */ java.lang.String getBucketName(); /** - * - * *
    * Required. The full project and resource path for Cloud Storage bucket including the
    * name.
    * 
* * string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for bucketName. */ - com.google.protobuf.ByteString getBucketNameBytes(); + com.google.protobuf.ByteString + getBucketNameBytes(); /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The rootPath. */ java.lang.String getRootPath(); /** - * - * *
    * The root path inside the Cloud Storage bucket.
    * 
* * string root_path = 2; - * * @return The bytes for rootPath. */ - com.google.protobuf.ByteString getRootPathBytes(); + com.google.protobuf.ByteString + getRootPathBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java similarity index 62% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java index b9c01e72..dba3d7ad 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequest.java @@ -1,49 +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.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) @@ -62,60 +49,52 @@ 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; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -124,31 +103,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the connection profile resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -157,7 +134,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,7 +145,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -193,15 +170,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; } @@ -221,119 +198,113 @@ 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() @@ -341,15 +312,16 @@ 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(); @@ -359,14 +331,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest.getDefaultInstance(); } @@ -381,8 +352,7 @@ 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; @@ -392,50 +362,46 @@ 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(); @@ -459,9 +425,7 @@ 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) { @@ -473,22 +437,18 @@ 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; @@ -497,23 +457,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -521,74 +478,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the connection profile resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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); } @@ -598,32 +542,30 @@ 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; @@ -635,8 +577,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java new file mode 100644 index 00000000..d30d0f70 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetConnectionProfileRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetConnectionProfileRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the connection profile resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java similarity index 62% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java index 693987d4..35f6c3a4 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequest.java @@ -1,49 +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.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) @@ -62,60 +49,52 @@ 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; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -124,31 +103,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the  private connectivity configuration to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -157,7 +134,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,7 +145,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -193,15 +170,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; } @@ -221,119 +198,113 @@ 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() @@ -341,15 +312,16 @@ 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(); @@ -359,14 +331,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest.getDefaultInstance(); } @@ -381,8 +352,7 @@ 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; @@ -392,50 +362,46 @@ 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(); @@ -459,9 +425,7 @@ 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) { @@ -473,22 +437,18 @@ 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; @@ -497,23 +457,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -521,74 +478,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the  private connectivity configuration to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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); } @@ -598,32 +542,30 @@ 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; @@ -635,8 +577,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/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 new file mode 100644 index 00000000..b6968cd1 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetPrivateConnectionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the  private connectivity configuration to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java index 57c31d69..0051c837 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -70,60 +53,52 @@ 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; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -132,31 +107,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the Route resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,7 +138,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,7 +149,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -201,15 +174,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; } @@ -229,126 +202,117 @@ 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() @@ -356,15 +320,16 @@ 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(); @@ -374,9 +339,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 @@ -395,8 +360,7 @@ 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; @@ -406,39 +370,38 @@ 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; @@ -446,8 +409,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetRouteRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GetRouteRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -471,8 +433,7 @@ 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) { @@ -484,22 +445,18 @@ 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; @@ -508,23 +465,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -532,74 +486,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the Route resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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); } @@ -609,12 +550,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(); } @@ -623,16 +564,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; @@ -647,4 +588,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetRouteRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 00000000..738f0aa9 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetRouteRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetRouteRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the Route resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java similarity index 64% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java index 2dcacd58..efbc4928 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequest.java @@ -1,49 +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.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) @@ -62,60 +49,52 @@ 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; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -124,31 +103,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the stream resource to get.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -157,7 +134,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -169,7 +145,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -193,15 +170,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; } @@ -221,119 +198,113 @@ 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() @@ -341,15 +312,16 @@ 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(); @@ -359,9 +331,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 @@ -380,8 +352,7 @@ 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; @@ -391,39 +362,38 @@ 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; @@ -431,8 +401,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.GetStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.GetStreamRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -456,8 +425,7 @@ 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) { @@ -469,22 +437,18 @@ 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; @@ -493,23 +457,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -517,74 +478,61 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the stream resource to get.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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); } @@ -594,12 +542,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(); } @@ -608,16 +556,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; @@ -632,4 +580,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.GetStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 00000000..8d5ae593 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface GetStreamRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the stream resource to get.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java index 4e03e1af..bb4ce7d4 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormat.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * JSON file format configuration.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.JsonFileFormat} */ -public final class JsonFileFormat extends com.google.protobuf.GeneratedMessageV3 - implements +public final class JsonFileFormat extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.JsonFileFormat) JsonFileFormatOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use JsonFileFormat.newBuilder() to construct. private JsonFileFormat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private JsonFileFormat() { schemaFileFormat_ = 0; compression_ = 0; @@ -44,15 +26,16 @@ 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) @@ -71,67 +54,60 @@ 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; - } - break; + compression_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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.
      * 
@@ -140,8 +116,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ JSON_COMPRESSION_UNSPECIFIED(0), /** - * - * *
      * Do not compress JSON file.
      * 
@@ -150,8 +124,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ NO_COMPRESSION(1), /** - * - * *
      * Gzip compression.
      * 
@@ -163,8 +135,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified json file compression.
      * 
@@ -173,8 +143,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Do not compress JSON file.
      * 
@@ -183,8 +151,6 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_COMPRESSION_VALUE = 1; /** - * - * *
      * Gzip compression.
      * 
@@ -193,6 +159,7 @@ public enum JsonCompression implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GZIP_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -217,45 +184,40 @@ public static JsonCompression valueOf(int value) { */ public static JsonCompression forNumber(int value) { switch (value) { - case 0: - return JSON_COMPRESSION_UNSPECIFIED; - case 1: - return NO_COMPRESSION; - case 2: - return GZIP; - default: - return null; + case 0: return JSON_COMPRESSION_UNSPECIFIED; + case 1: return NO_COMPRESSION; + case 2: return GZIP; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + JsonCompression> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public JsonCompression findValueByNumber(int number) { + return JsonCompression.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public JsonCompression findValueByNumber(int number) { - return JsonCompression.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDescriptor().getEnumTypes().get(0); } private static final JsonCompression[] VALUES = values(); @@ -263,7 +225,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static JsonCompression valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -283,81 +246,58 @@ 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; @@ -369,16 +309,12 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (schemaFileFormat_ - != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (schemaFileFormat_ != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(1, schemaFileFormat_); } - if (compression_ - != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression - .JSON_COMPRESSION_UNSPECIFIED - .getNumber()) { + if (compression_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { output.writeEnum(2, compression_); } unknownFields.writeTo(output); @@ -390,16 +326,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (schemaFileFormat_ - != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, schemaFileFormat_); + if (schemaFileFormat_ != com.google.cloud.datastream.v1alpha1.SchemaFileFormat.SCHEMA_FILE_FORMAT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, schemaFileFormat_); } - if (compression_ - != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression - .JSON_COMPRESSION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compression_); + if (compression_ != com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression.JSON_COMPRESSION_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, compression_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,13 +342,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.JsonFileFormat)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.JsonFileFormat other = - (com.google.cloud.datastream.v1alpha1.JsonFileFormat) obj; + com.google.cloud.datastream.v1alpha1.JsonFileFormat other = (com.google.cloud.datastream.v1alpha1.JsonFileFormat) obj; if (schemaFileFormat_ != other.schemaFileFormat_) return false; if (compression_ != other.compression_) return false; @@ -440,126 +372,117 @@ 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() @@ -567,15 +490,16 @@ 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(); @@ -587,9 +511,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 @@ -608,8 +532,7 @@ 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(); @@ -620,39 +543,38 @@ 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; @@ -660,8 +582,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.JsonFileFormat other) { - if (other == com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.JsonFileFormat.getDefaultInstance()) return this; if (other.schemaFileFormat_ != 0) { setSchemaFileFormatValue(other.getSchemaFileFormatValue()); } @@ -687,8 +608,7 @@ 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) { @@ -700,93 +620,73 @@ 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; @@ -794,105 +694,80 @@ 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); } @@ -902,12 +777,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(); } @@ -916,16 +791,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; @@ -940,4 +815,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.JsonFileFormat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java index ec2d9fa3..695c2e74 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/JsonFileFormatOrBuilder.java @@ -1,74 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface JsonFileFormatOrBuilder - extends +public interface JsonFileFormatOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.JsonFileFormat) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The enum numeric value on the wire for schemaFileFormat. */ int getSchemaFileFormatValue(); /** - * - * *
    * The schema file format along JSON data files.
    * 
* * .google.cloud.datastream.v1alpha1.SchemaFileFormat schema_file_format = 1; - * * @return The schemaFileFormat. */ com.google.cloud.datastream.v1alpha1.SchemaFileFormat getSchemaFileFormat(); /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * * @return The enum numeric value on the wire for compression. */ int getCompressionValue(); /** - * - * *
    * Compression of the loaded JSON file.
    * 
* * .google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression compression = 2; - * * @return The compression. */ com.google.cloud.datastream.v1alpha1.JsonFileFormat.JsonCompression getCompression(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java index 38be2ff1..b2b0d7c0 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} */ -public final class ListConnectionProfilesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} + */ +public final class ListConnectionProfilesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) ListConnectionProfilesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesRequest.newBuilder() to construct. private ListConnectionProfilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesRequest() { parent_ = ""; pageToken_ = ""; @@ -38,15 +24,16 @@ 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) @@ -65,86 +52,75 @@ 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: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -153,31 +129,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,8 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() { 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.
@@ -197,7 +169,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -208,8 +179,6 @@ 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.
@@ -218,7 +187,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -227,15 +195,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -244,15 +211,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -263,14 +231,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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 @@ -279,29 +244,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 { @@ -312,14 +277,11 @@ public com.google.protobuf.ByteString getFilterBytes() { 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 @@ -328,29 +290,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 { @@ -359,7 +321,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -400,7 +362,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -419,19 +382,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other = - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest other = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -459,137 +426,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.class, com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.newBuilder() + // 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(); @@ -607,16 +567,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest.getDefaultInstance(); } @java.lang.Override @@ -630,8 +588,7 @@ 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_; @@ -645,51 +602,46 @@ 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(); @@ -728,9 +680,7 @@ 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) { @@ -742,22 +692,18 @@ 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; @@ -766,23 +712,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -790,76 +733,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of connection profiles.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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.
@@ -867,7 +795,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -875,8 +802,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -884,19 +809,16 @@ 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.
@@ -904,11 +826,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -916,8 +837,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -926,13 +845,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; @@ -941,8 +860,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -951,14 +868,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -966,8 +884,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -976,22 +892,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + 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.
@@ -1000,18 +914,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * 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.
@@ -1020,16 +931,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; @@ -1037,20 +948,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1059,21 +968,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1081,61 +989,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + 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; @@ -1143,20 +1044,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1165,21 +1064,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1187,68 +1085,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + 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); } @@ -1258,32 +1149,30 @@ 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; @@ -1295,8 +1184,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java index d5654501..da42c046 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListConnectionProfilesRequestOrBuilder - extends +public interface ListConnectionProfilesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of connection profiles.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of connection profiles to return.
    * If unspecified, at most 50 connection profiles will be returned.
@@ -62,14 +35,11 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListConnectionProfiles` call.
    * Provide this to retrieve the subsequent page.
@@ -93,58 +60,48 @@ public interface ListConnectionProfilesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java index cfb1289e..5bd1b8e4 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponse.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} */ -public final class ListConnectionProfilesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse} + */ +public final class ListConnectionProfilesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) ListConnectionProfilesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionProfilesResponse.newBuilder() to construct. - private ListConnectionProfilesResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListConnectionProfilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionProfilesResponse() { connectionProfiles_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -38,15 +23,16 @@ 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) @@ -66,50 +52,44 @@ private ListConnectionProfilesResponse( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + connectionProfiles_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + connectionProfiles_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.ConnectionProfile.parser(), extensionRegistry)); + break; + } + 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; - } - unreachable_.add(s); - break; + 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; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -121,111 +101,88 @@ 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 @@ -234,30 +191,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 { @@ -268,42 +225,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { 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. */ @@ -311,23 +260,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < connectionProfiles_.size(); i++) { output.writeMessage(1, connectionProfiles_.get(i)); } @@ -359,8 +306,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_); @@ -381,17 +328,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other = - (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) obj; + com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse other = (com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) obj; - if (!getConnectionProfilesList().equals(other.getConnectionProfilesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getConnectionProfilesList() + .equals(other.getConnectionProfilesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -419,139 +368,131 @@ 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(); @@ -569,16 +510,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse.getDefaultInstance(); } @java.lang.Override @@ -592,8 +531,7 @@ 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)) { @@ -618,51 +556,46 @@ 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()) { @@ -681,10 +614,9 @@ public Builder mergeFrom( connectionProfilesBuilder_ = null; connectionProfiles_ = other.connectionProfiles_; bitField0_ = (bitField0_ & ~0x00000001); - connectionProfilesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getConnectionProfilesFieldBuilder() - : null; + connectionProfilesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionProfilesFieldBuilder() : null; } else { connectionProfilesBuilder_.addAllMessages(other.connectionProfiles_); } @@ -723,9 +655,7 @@ 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) { @@ -734,39 +664,28 @@ 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 { @@ -774,14 +693,11 @@ private void ensureConnectionProfilesIsMutable() { } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public int getConnectionProfilesCount() { if (connectionProfilesBuilder_ == null) { @@ -791,14 +707,11 @@ public int getConnectionProfilesCount() { } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index) { if (connectionProfilesBuilder_ == null) { @@ -808,14 +721,11 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder setConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { @@ -832,14 +742,11 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder setConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -853,17 +760,13 @@ public Builder setConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public Builder addConnectionProfiles( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder addConnectionProfiles(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfilesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -877,14 +780,11 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { @@ -901,14 +801,11 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addConnectionProfiles( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -922,14 +819,11 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addConnectionProfiles( int index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -943,21 +837,18 @@ public Builder addConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder addAllConnectionProfiles( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (connectionProfilesBuilder_ == null) { ensureConnectionProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectionProfiles_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectionProfiles_); onChanged(); } else { connectionProfilesBuilder_.addAllMessages(values); @@ -965,14 +856,11 @@ public Builder addAllConnectionProfiles( return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder clearConnectionProfiles() { if (connectionProfilesBuilder_ == null) { @@ -985,14 +873,11 @@ public Builder clearConnectionProfiles() { return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ public Builder removeConnectionProfiles(int index) { if (connectionProfilesBuilder_ == null) { @@ -1005,49 +890,39 @@ public Builder removeConnectionProfiles(int index) { return this; } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfilesBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfilesBuilder( + int index) { return getConnectionProfilesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder - getConnectionProfilesOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( + int index) { if (connectionProfilesBuilder_ == null) { - return connectionProfiles_.get(index); - } else { + return connectionProfiles_.get(index); } else { return connectionProfilesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesOrBuilderList() { + public java.util.List + getConnectionProfilesOrBuilderList() { if (connectionProfilesBuilder_ != null) { return connectionProfilesBuilder_.getMessageOrBuilderList(); } else { @@ -1055,62 +930,45 @@ public Builder removeConnectionProfiles(int index) { } } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - addConnectionProfilesBuilder() { - return getConnectionProfilesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnectionProfilesBuilder() { + return getConnectionProfilesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - addConnectionProfilesBuilder(int index) { - return getConnectionProfilesFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder addConnectionProfilesBuilder( + int index) { + return getConnectionProfilesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.ConnectionProfile.getDefaultInstance()); } /** - * - * *
      * List of connection profiles.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - public java.util.List - getConnectionProfilesBuilderList() { + public java.util.List + getConnectionProfilesBuilderList() { return getConnectionProfilesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> getConnectionProfilesFieldBuilder() { if (connectionProfilesBuilder_ == null) { - connectionProfilesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( + connectionProfilesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder>( connectionProfiles_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1122,21 +980,19 @@ public Builder removeConnectionProfiles(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1145,22 +1001,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1168,115 +1023,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + 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. */ @@ -1284,90 +1122,80 @@ 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() { @@ -1377,30 +1205,28 @@ 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); } @@ -1410,32 +1236,30 @@ 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; @@ -1447,8 +1271,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java index e95e734c..bb524cd9 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListConnectionProfilesResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListConnectionProfilesResponseOrBuilder - extends +public interface ListConnectionProfilesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesList(); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfiles(int index); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ int getConnectionProfilesCount(); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ - java.util.List + java.util.List getConnectionProfilesOrBuilderList(); /** - * - * *
    * List of connection profiles.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; - * + * repeated .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profiles = 1; */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfilesOrBuilder( int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java index 852149c8..876cc313 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} */ -public final class ListPrivateConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} + */ +public final class ListPrivateConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) ListPrivateConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsRequest.newBuilder() to construct. private ListPrivateConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPrivateConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -38,15 +24,16 @@ 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) @@ -65,86 +52,75 @@ 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: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -153,31 +129,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,8 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() { 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
@@ -198,7 +170,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -209,8 +180,6 @@ 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.
@@ -220,7 +189,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -229,15 +197,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -247,15 +214,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -266,14 +234,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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 @@ -282,29 +247,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 { @@ -315,14 +280,11 @@ public com.google.protobuf.ByteString getFilterBytes() { 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 @@ -331,29 +293,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 { @@ -362,7 +324,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -374,7 +335,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -403,7 +365,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -422,19 +385,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other = - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest other = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -462,137 +429,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.class, com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.newBuilder() + // 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(); @@ -610,16 +570,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest.getDefaultInstance(); } @java.lang.Override @@ -633,8 +591,7 @@ 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_; @@ -648,51 +605,46 @@ 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(); @@ -731,9 +683,7 @@ 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) { @@ -745,22 +695,18 @@ 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; @@ -769,23 +715,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -793,76 +736,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of private connectivity configurations.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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
@@ -871,7 +799,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -879,8 +806,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -889,19 +814,16 @@ 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
@@ -910,11 +832,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -922,8 +843,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -933,13 +852,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; @@ -948,8 +867,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -959,14 +876,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -974,8 +892,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -985,22 +901,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + 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.
@@ -1010,18 +924,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * 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.
@@ -1031,16 +942,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; @@ -1048,20 +959,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1070,21 +979,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1092,61 +1000,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + 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; @@ -1154,20 +1055,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1176,21 +1075,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1198,68 +1096,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + 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); } @@ -1269,32 +1160,30 @@ 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; @@ -1306,8 +1195,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java index 723a51d3..398e1927 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListPrivateConnectionsRequestOrBuilder - extends +public interface ListPrivateConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListPrivateConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of private connectivity configurations.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of private connectivity configurations to return.
    * If unspecified, at most 50 private connectivity configurations that will be
@@ -63,14 +36,11 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -96,58 +63,48 @@ public interface ListPrivateConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java index 6c75dde9..5312b942 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponse.java @@ -1,35 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} */ -public final class ListPrivateConnectionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse} + */ +public final class ListPrivateConnectionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) ListPrivateConnectionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPrivateConnectionsResponse.newBuilder() to construct. - private ListPrivateConnectionsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListPrivateConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPrivateConnectionsResponse() { privateConnections_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -38,15 +23,16 @@ 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) @@ -66,50 +52,44 @@ private ListPrivateConnectionsResponse( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + privateConnections_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + privateConnections_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.PrivateConnection.parser(), extensionRegistry)); + break; + } + 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; - } - unreachable_.add(s); - break; + 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; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -121,111 +101,88 @@ 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 @@ -234,30 +191,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 { @@ -268,42 +225,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { 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. */ @@ -311,23 +260,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < privateConnections_.size(); i++) { output.writeMessage(1, privateConnections_.get(i)); } @@ -359,8 +306,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_); @@ -381,17 +328,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other = - (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) obj; + com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse other = (com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) obj; - if (!getPrivateConnectionsList().equals(other.getPrivateConnectionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getPrivateConnectionsList() + .equals(other.getPrivateConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -419,139 +368,131 @@ 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(); @@ -569,16 +510,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse.getDefaultInstance(); } @java.lang.Override @@ -592,8 +531,7 @@ 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)) { @@ -618,51 +556,46 @@ 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()) { @@ -681,10 +614,9 @@ public Builder mergeFrom( privateConnectionsBuilder_ = null; privateConnections_ = other.privateConnections_; bitField0_ = (bitField0_ & ~0x00000001); - privateConnectionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPrivateConnectionsFieldBuilder() - : null; + privateConnectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPrivateConnectionsFieldBuilder() : null; } else { privateConnectionsBuilder_.addAllMessages(other.privateConnections_); } @@ -723,9 +655,7 @@ 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) { @@ -734,39 +664,28 @@ 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 { @@ -774,14 +693,11 @@ private void ensurePrivateConnectionsIsMutable() { } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public int getPrivateConnectionsCount() { if (privateConnectionsBuilder_ == null) { @@ -791,14 +707,11 @@ public int getPrivateConnectionsCount() { } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index) { if (privateConnectionsBuilder_ == null) { @@ -808,14 +721,11 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnecti } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder setPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection value) { @@ -832,14 +742,11 @@ public Builder setPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder setPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -853,17 +760,13 @@ public Builder setPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public Builder addPrivateConnections( - com.google.cloud.datastream.v1alpha1.PrivateConnection value) { + public Builder addPrivateConnections(com.google.cloud.datastream.v1alpha1.PrivateConnection value) { if (privateConnectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -877,14 +780,11 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection value) { @@ -901,14 +801,11 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addPrivateConnections( com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -922,14 +819,11 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addPrivateConnections( int index, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder builderForValue) { @@ -943,21 +837,18 @@ public Builder addPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder addAllPrivateConnections( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (privateConnectionsBuilder_ == null) { ensurePrivateConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateConnections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, privateConnections_); onChanged(); } else { privateConnectionsBuilder_.addAllMessages(values); @@ -965,14 +856,11 @@ public Builder addAllPrivateConnections( return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder clearPrivateConnections() { if (privateConnectionsBuilder_ == null) { @@ -985,14 +873,11 @@ public Builder clearPrivateConnections() { return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ public Builder removePrivateConnections(int index) { if (privateConnectionsBuilder_ == null) { @@ -1005,49 +890,39 @@ public Builder removePrivateConnections(int index) { return this; } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - getPrivateConnectionsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder getPrivateConnectionsBuilder( + int index) { return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder - getPrivateConnectionsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( + int index) { if (privateConnectionsBuilder_ == null) { - return privateConnections_.get(index); - } else { + return privateConnections_.get(index); } else { return privateConnectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsOrBuilderList() { + public java.util.List + getPrivateConnectionsOrBuilderList() { if (privateConnectionsBuilder_ != null) { return privateConnectionsBuilder_.getMessageOrBuilderList(); } else { @@ -1055,62 +930,45 @@ public Builder removePrivateConnections(int index) { } } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - addPrivateConnectionsBuilder() { - return getPrivateConnectionsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivateConnectionsBuilder() { + return getPrivateConnectionsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder - addPrivateConnectionsBuilder(int index) { - return getPrivateConnectionsFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder addPrivateConnectionsBuilder( + int index) { + return getPrivateConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()); } /** - * - * *
      * List of private connectivity configurations.
      * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - public java.util.List - getPrivateConnectionsBuilderList() { + public java.util.List + getPrivateConnectionsBuilderList() { return getPrivateConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder> getPrivateConnectionsFieldBuilder() { if (privateConnectionsBuilder_ == null) { - privateConnectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.PrivateConnection, - com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, - com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( + privateConnectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.PrivateConnection, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder, com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder>( privateConnections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1122,21 +980,19 @@ public Builder removePrivateConnections(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1145,22 +1001,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1168,115 +1023,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + 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. */ @@ -1284,90 +1122,80 @@ 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() { @@ -1377,30 +1205,28 @@ 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); } @@ -1410,32 +1236,30 @@ 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; @@ -1447,8 +1271,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java index 98cb0470..170ace82 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListPrivateConnectionsResponseOrBuilder.java @@ -1,162 +1,116 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListPrivateConnectionsResponseOrBuilder - extends +public interface ListPrivateConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListPrivateConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - java.util.List + java.util.List getPrivateConnectionsList(); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ com.google.cloud.datastream.v1alpha1.PrivateConnection getPrivateConnections(int index); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ int getPrivateConnectionsCount(); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ - java.util.List + java.util.List getPrivateConnectionsOrBuilderList(); /** - * - * *
    * List of private connectivity configurations.
    * 
* - * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; - * + * repeated .google.cloud.datastream.v1alpha1.PrivateConnection private_connections = 1; */ com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivateConnectionsOrBuilder( int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java index 78e9f5c1..86f13c6f 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route list request
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesRequest} */ -public final class ListRoutesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRoutesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListRoutesRequest) ListRoutesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRoutesRequest.newBuilder() to construct. private ListRoutesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRoutesRequest() { parent_ = ""; pageToken_ = ""; @@ -46,15 +28,16 @@ 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) @@ -73,86 +56,75 @@ private ListRoutesRequest( 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: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -161,31 +133,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -196,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { 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
@@ -206,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -217,8 +184,6 @@ 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.
@@ -228,7 +193,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -237,15 +201,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -255,15 +218,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -274,14 +238,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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 @@ -290,29 +251,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 { @@ -323,14 +284,11 @@ public com.google.protobuf.ByteString getFilterBytes() { 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 @@ -339,29 +297,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 { @@ -370,7 +328,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +339,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -411,7 +369,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -430,19 +389,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListRoutesRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListRoutesRequest other = - (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListRoutesRequest other = (com.google.cloud.datastream.v1alpha1.ListRoutesRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -470,127 +433,117 @@ 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() @@ -598,15 +551,16 @@ 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(); @@ -624,9 +578,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 @@ -645,8 +599,7 @@ 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_; @@ -660,39 +613,38 @@ 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; @@ -700,8 +652,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListRoutesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -740,8 +691,7 @@ 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) { @@ -753,22 +703,18 @@ 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; @@ -777,23 +723,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -801,76 +744,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of Routess.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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
@@ -879,7 +807,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -887,8 +814,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of Routes to return. The service may return
      * fewer than this value. If unspecified, at most 50 Routes
@@ -897,19 +822,16 @@ 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
@@ -918,11 +840,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -930,8 +851,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -941,13 +860,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; @@ -956,8 +875,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -967,14 +884,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -982,8 +900,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -993,22 +909,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + 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.
@@ -1018,18 +932,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * 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.
@@ -1039,16 +950,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; @@ -1056,20 +967,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1078,21 +987,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1100,61 +1008,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + 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; @@ -1162,20 +1063,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1184,21 +1083,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1206,68 +1104,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + 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); } @@ -1277,12 +1168,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(); } @@ -1291,16 +1182,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; @@ -1315,4 +1206,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java index 0e5b922b..992784ab 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListRoutesRequestOrBuilder - extends +public interface ListRoutesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListRoutesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of Routess.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of Routes to return. The service may return
    * fewer than this value. If unspecified, at most 50 Routes
@@ -63,14 +36,11 @@ public interface ListRoutesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListRoutesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -96,58 +63,48 @@ public interface ListRoutesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java similarity index 74% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java index ebb391e1..4524e8fa 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * route list response
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ListRoutesResponse} */ -public final class ListRoutesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListRoutesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListRoutesResponse) ListRoutesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListRoutesResponse.newBuilder() to construct. private ListRoutesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListRoutesResponse() { routes_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +27,16 @@ 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) @@ -73,47 +56,44 @@ private ListRoutesResponse( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + routes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + routes_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.Route.parser(), extensionRegistry)); + break; + } + 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; - } - unreachable_.add(s); - break; + 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; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -125,27 +105,22 @@ 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.
    * 
@@ -157,8 +132,6 @@ public java.util.List getRoutesList( return routes_; } /** - * - * *
    * List of Routes.
    * 
@@ -166,13 +139,11 @@ public java.util.List getRoutesList( * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getRoutesOrBuilderList() { return routes_; } /** - * - * *
    * List of Routes.
    * 
@@ -184,8 +155,6 @@ public int getRoutesCount() { return routes_.size(); } /** - * - * *
    * List of Routes.
    * 
@@ -197,8 +166,6 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { return routes_.get(index); } /** - * - * *
    * List of Routes.
    * 
@@ -206,22 +173,20 @@ 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 @@ -230,30 +195,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 { @@ -264,42 +229,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { 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. */ @@ -307,23 +264,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +289,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < routes_.size(); i++) { output.writeMessage(1, routes_.get(i)); } @@ -355,7 +310,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < routes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, routes_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, routes_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -376,17 +332,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListRoutesResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListRoutesResponse other = - (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) obj; + com.google.cloud.datastream.v1alpha1.ListRoutesResponse other = (com.google.cloud.datastream.v1alpha1.ListRoutesResponse) obj; - if (!getRoutesList().equals(other.getRoutesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getRoutesList() + .equals(other.getRoutesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,127 +372,117 @@ 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() @@ -542,17 +490,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(); @@ -570,9 +518,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 @@ -591,8 +539,7 @@ 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)) { @@ -617,39 +564,38 @@ 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; @@ -657,8 +603,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListRoutesResponse.getDefaultInstance()) return this; if (routesBuilder_ == null) { if (!other.routes_.isEmpty()) { if (routes_.isEmpty()) { @@ -677,10 +622,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListRoutesResponse routesBuilder_ = null; routes_ = other.routes_; bitField0_ = (bitField0_ & ~0x00000001); - routesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getRoutesFieldBuilder() - : null; + routesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRoutesFieldBuilder() : null; } else { routesBuilder_.addAllMessages(other.routes_); } @@ -719,8 +663,7 @@ 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) { @@ -729,28 +672,21 @@ 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.
      * 
@@ -765,8 +701,6 @@ public java.util.List getRoutesList( } } /** - * - * *
      * List of Routes.
      * 
@@ -781,8 +715,6 @@ public int getRoutesCount() { } } /** - * - * *
      * List of Routes.
      * 
@@ -797,15 +729,14 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { } } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder setRoutes(int index, com.google.cloud.datastream.v1alpha1.Route value) { + public Builder setRoutes( + int index, com.google.cloud.datastream.v1alpha1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -819,8 +750,6 @@ public Builder setRoutes(int index, com.google.cloud.datastream.v1alpha1.Route v return this; } /** - * - * *
      * List of Routes.
      * 
@@ -839,8 +768,6 @@ public Builder setRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -861,15 +788,14 @@ public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route value) { return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder addRoutes(int index, com.google.cloud.datastream.v1alpha1.Route value) { + public Builder addRoutes( + int index, com.google.cloud.datastream.v1alpha1.Route value) { if (routesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -883,15 +809,14 @@ public Builder addRoutes(int index, com.google.cloud.datastream.v1alpha1.Route v return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { + public Builder addRoutes( + com.google.cloud.datastream.v1alpha1.Route.Builder builderForValue) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); routes_.add(builderForValue.build()); @@ -902,8 +827,6 @@ public Builder addRoutes(com.google.cloud.datastream.v1alpha1.Route.Builder buil return this; } /** - * - * *
      * List of Routes.
      * 
@@ -922,8 +845,6 @@ public Builder addRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -934,7 +855,8 @@ public Builder addAllRoutes( java.lang.Iterable values) { if (routesBuilder_ == null) { ensureRoutesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, routes_); onChanged(); } else { routesBuilder_.addAllMessages(values); @@ -942,8 +864,6 @@ public Builder addAllRoutes( return this; } /** - * - * *
      * List of Routes.
      * 
@@ -961,8 +881,6 @@ public Builder clearRoutes() { return this; } /** - * - * *
      * List of Routes.
      * 
@@ -980,44 +898,39 @@ public Builder removeRoutes(int index) { return this; } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.Route.Builder getRoutesBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Route.Builder getRoutesBuilder( + int index) { return getRoutesFieldBuilder().getBuilder(index); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( + int index) { if (routesBuilder_ == null) { - return routes_.get(index); - } else { + return routes_.get(index); } else { return routesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public java.util.List - getRoutesOrBuilderList() { + public java.util.List + getRoutesOrBuilderList() { if (routesBuilder_ != null) { return routesBuilder_.getMessageOrBuilderList(); } else { @@ -1025,8 +938,6 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(in } } /** - * - * *
      * List of Routes.
      * 
@@ -1034,48 +945,42 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(in * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder() { - return getRoutesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); + return getRoutesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder(int index) { - return getRoutesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder( + int index) { + return getRoutesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Route.getDefaultInstance()); } /** - * - * *
      * List of Routes.
      * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - public java.util.List - getRoutesBuilderList() { + public java.util.List + getRoutesBuilderList() { return getRoutesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder> + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder> getRoutesFieldBuilder() { if (routesBuilder_ == null) { - routesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Route, - com.google.cloud.datastream.v1alpha1.Route.Builder, - com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( - routes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + routesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Route, com.google.cloud.datastream.v1alpha1.Route.Builder, com.google.cloud.datastream.v1alpha1.RouteOrBuilder>( + routes_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); routes_ = null; } return routesBuilder_; @@ -1083,21 +988,19 @@ public com.google.cloud.datastream.v1alpha1.Route.Builder addRoutesBuilder(int i private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1106,22 +1009,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1129,115 +1031,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + 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. */ @@ -1245,90 +1130,80 @@ 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() { @@ -1338,30 +1213,28 @@ 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); } @@ -1371,12 +1244,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(); } @@ -1385,16 +1258,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; @@ -1409,4 +1282,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListRoutesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java index 60a9d2d0..159ae49c 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListRoutesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListRoutesResponseOrBuilder - extends +public interface ListRoutesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListRoutesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - java.util.List getRoutesList(); + java.util.List + getRoutesList(); /** - * - * *
    * List of Routes.
    * 
@@ -44,8 +25,6 @@ public interface ListRoutesResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.Route getRoutes(int index); /** - * - * *
    * List of Routes.
    * 
@@ -54,102 +33,84 @@ public interface ListRoutesResponseOrBuilder */ int getRoutesCount(); /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - java.util.List + java.util.List getRoutesOrBuilderList(); /** - * - * *
    * List of Routes.
    * 
* * repeated .google.cloud.datastream.v1alpha1.Route routes = 1; */ - com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java index e54f166b..38845fd0 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequest.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} */ -public final class ListStreamsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsRequest} + */ +public final class ListStreamsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListStreamsRequest) ListStreamsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamsRequest.newBuilder() to construct. private ListStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamsRequest() { parent_ = ""; pageToken_ = ""; @@ -38,15 +24,16 @@ 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) @@ -65,86 +52,75 @@ 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: { - pageToken_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + orderBy_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -153,31 +129,29 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -188,8 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() { 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
@@ -197,7 +169,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -208,8 +179,6 @@ 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.
@@ -218,7 +187,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -227,15 +195,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -244,15 +211,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -263,14 +231,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { 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 @@ -279,29 +244,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 { @@ -312,14 +277,11 @@ public com.google.protobuf.ByteString getFilterBytes() { 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 @@ -328,29 +290,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 { @@ -359,7 +321,6 @@ public com.google.protobuf.ByteString getOrderByBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -371,7 +332,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -400,7 +362,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -419,19 +382,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListStreamsRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListStreamsRequest other = - (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; + com.google.cloud.datastream.v1alpha1.ListStreamsRequest other = (com.google.cloud.datastream.v1alpha1.ListStreamsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; + if (!getOrderBy() + .equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -459,119 +426,113 @@ 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() @@ -579,15 +540,16 @@ 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(); @@ -605,9 +567,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 @@ -626,8 +588,7 @@ 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_; @@ -641,39 +602,38 @@ 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; @@ -681,8 +641,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListStreamsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -721,8 +680,7 @@ 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) { @@ -734,22 +692,18 @@ 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; @@ -758,23 +712,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -782,76 +733,61 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent that owns the collection of streams.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + 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
@@ -859,7 +795,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -867,8 +802,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -876,19 +809,16 @@ 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
@@ -896,11 +826,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -908,8 +837,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -918,13 +845,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; @@ -933,8 +860,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -943,14 +868,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -958,8 +884,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -968,22 +892,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + 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.
@@ -992,18 +914,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * 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.
@@ -1012,16 +931,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; @@ -1029,20 +948,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -1051,21 +968,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @return The bytes for filter. */ - public com.google.protobuf.ByteString getFilterBytes() { + public com.google.protobuf.ByteString + getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); filter_ = b; return b; } else { @@ -1073,61 +989,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter request.
      * 
* * string filter = 4; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + 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; @@ -1135,20 +1044,18 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object orderBy_ = ""; /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1157,21 +1064,20 @@ public java.lang.String getOrderBy() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getOrderByBytes() { + public com.google.protobuf.ByteString + getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1179,68 +1085,61 @@ public com.google.protobuf.ByteString getOrderByBytes() { } } /** - * - * *
      * Order by fields for the result.
      * 
* * string order_by = 5; - * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy(java.lang.String value) { + 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); } @@ -1250,12 +1149,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(); } @@ -1264,16 +1163,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; @@ -1288,4 +1187,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java index f6d4220d..a4c32d09 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsRequestOrBuilder.java @@ -1,60 +1,33 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListStreamsRequestOrBuilder - extends +public interface ListStreamsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListStreamsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent that owns the collection of streams.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Maximum number of streams to return.
    * If unspecified, at most 50 streams will  be returned. The maximum
@@ -62,14 +35,11 @@ public interface ListStreamsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -78,13 +48,10 @@ public interface ListStreamsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Page token received from a previous `ListStreams` call.
    * Provide this to retrieve the subsequent page.
@@ -93,58 +60,48 @@ public interface ListStreamsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter request.
    * 
* * string filter = 4; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The orderBy. */ java.lang.String getOrderBy(); /** - * - * *
    * Order by fields for the result.
    * 
* * string order_by = 5; - * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString getOrderByBytes(); + com.google.protobuf.ByteString + getOrderByBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java similarity index 73% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java index 6fbdaf40..9024c191 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponse.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} */ -public final class ListStreamsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.ListStreamsResponse} + */ +public final class ListStreamsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ListStreamsResponse) ListStreamsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListStreamsResponse.newBuilder() to construct. private ListStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListStreamsResponse() { streams_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -37,15 +23,16 @@ 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) @@ -65,47 +52,44 @@ private ListStreamsResponse( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + streams_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + streams_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry)); + break; + } + 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; - } - unreachable_.add(s); - break; + 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; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + unreachable_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -117,27 +101,22 @@ 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
    * 
@@ -149,8 +128,6 @@ public java.util.List getStreamsLis return streams_; } /** - * - * *
    * List of streams
    * 
@@ -158,13 +135,11 @@ public java.util.List getStreamsLis * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ @java.lang.Override - public java.util.List + public java.util.List getStreamsOrBuilderList() { return streams_; } /** - * - * *
    * List of streams
    * 
@@ -176,8 +151,6 @@ public int getStreamsCount() { return streams_.size(); } /** - * - * *
    * List of streams
    * 
@@ -189,8 +162,6 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { return streams_.get(index); } /** - * - * *
    * List of streams
    * 
@@ -198,22 +169,20 @@ 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 @@ -222,30 +191,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 { @@ -256,42 +225,34 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { 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. */ @@ -299,23 +260,20 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString getUnreachableBytes(int index) { + public com.google.protobuf.ByteString + getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +285,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < streams_.size(); i++) { output.writeMessage(1, streams_.get(i)); } @@ -347,7 +306,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < streams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, streams_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, streams_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -368,17 +328,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ListStreamsResponse)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ListStreamsResponse other = - (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) obj; + com.google.cloud.datastream.v1alpha1.ListStreamsResponse other = (com.google.cloud.datastream.v1alpha1.ListStreamsResponse) obj; - if (!getStreamsList().equals(other.getStreamsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getStreamsList() + .equals(other.getStreamsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (!getUnreachableList() + .equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -406,119 +368,113 @@ 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() @@ -526,17 +482,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(); @@ -554,9 +510,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 @@ -575,8 +531,7 @@ 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)) { @@ -601,39 +556,38 @@ 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; @@ -641,8 +595,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsResponse other) { - if (other == com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ListStreamsResponse.getDefaultInstance()) return this; if (streamsBuilder_ == null) { if (!other.streams_.isEmpty()) { if (streams_.isEmpty()) { @@ -661,10 +614,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ListStreamsRespons streamsBuilder_ = null; streams_ = other.streams_; bitField0_ = (bitField0_ & ~0x00000001); - streamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStreamsFieldBuilder() - : null; + streamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStreamsFieldBuilder() : null; } else { streamsBuilder_.addAllMessages(other.streams_); } @@ -703,8 +655,7 @@ 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) { @@ -713,28 +664,21 @@ 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
      * 
@@ -749,8 +693,6 @@ public java.util.List getStreamsLis } } /** - * - * *
      * List of streams
      * 
@@ -765,8 +707,6 @@ public int getStreamsCount() { } } /** - * - * *
      * List of streams
      * 
@@ -781,15 +721,14 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { } } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder setStreams(int index, com.google.cloud.datastream.v1alpha1.Stream value) { + public Builder setStreams( + int index, com.google.cloud.datastream.v1alpha1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -803,8 +742,6 @@ public Builder setStreams(int index, com.google.cloud.datastream.v1alpha1.Stream return this; } /** - * - * *
      * List of streams
      * 
@@ -823,8 +760,6 @@ public Builder setStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -845,15 +780,14 @@ public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder addStreams(int index, com.google.cloud.datastream.v1alpha1.Stream value) { + public Builder addStreams( + int index, com.google.cloud.datastream.v1alpha1.Stream value) { if (streamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -867,15 +801,14 @@ public Builder addStreams(int index, com.google.cloud.datastream.v1alpha1.Stream return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder addStreams( + com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); streams_.add(builderForValue.build()); @@ -886,8 +819,6 @@ public Builder addStreams(com.google.cloud.datastream.v1alpha1.Stream.Builder bu return this; } /** - * - * *
      * List of streams
      * 
@@ -906,8 +837,6 @@ public Builder addStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -918,7 +847,8 @@ public Builder addAllStreams( java.lang.Iterable values) { if (streamsBuilder_ == null) { ensureStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, streams_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, streams_); onChanged(); } else { streamsBuilder_.addAllMessages(values); @@ -926,8 +856,6 @@ public Builder addAllStreams( return this; } /** - * - * *
      * List of streams
      * 
@@ -945,8 +873,6 @@ public Builder clearStreams() { return this; } /** - * - * *
      * List of streams
      * 
@@ -964,44 +890,39 @@ public Builder removeStreams(int index) { return this; } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Stream.Builder getStreamsBuilder( + int index) { return getStreamsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( + int index) { if (streamsBuilder_ == null) { - return streams_.get(index); - } else { + return streams_.get(index); } else { return streamsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public java.util.List - getStreamsOrBuilderList() { + public java.util.List + getStreamsOrBuilderList() { if (streamsBuilder_ != null) { return streamsBuilder_.getMessageOrBuilderList(); } else { @@ -1009,8 +930,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( } } /** - * - * *
      * List of streams
      * 
@@ -1018,48 +937,42 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder() { - return getStreamsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); + return getStreamsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder(int index) { - return getStreamsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder( + int index) { + return getStreamsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Stream.getDefaultInstance()); } /** - * - * *
      * List of streams
      * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - public java.util.List - getStreamsBuilderList() { + public java.util.List + getStreamsBuilderList() { return getStreamsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> getStreamsFieldBuilder() { if (streamsBuilder_ == null) { - streamsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( - streams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + streamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder>( + streams_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); streams_ = null; } return streamsBuilder_; @@ -1067,21 +980,19 @@ public com.google.cloud.datastream.v1alpha1.Stream.Builder addStreamsBuilder(int private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1090,22 +1001,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1113,115 +1023,98 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + 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. */ @@ -1229,90 +1122,80 @@ 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() { @@ -1322,30 +1205,28 @@ 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); } @@ -1355,12 +1236,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(); } @@ -1369,16 +1250,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; @@ -1393,4 +1274,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ListStreamsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java index 00f820f8..ce3acb89 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ListStreamsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface ListStreamsResponseOrBuilder - extends +public interface ListStreamsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ListStreamsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - java.util.List getStreamsList(); + java.util.List + getStreamsList(); /** - * - * *
    * List of streams
    * 
@@ -44,8 +25,6 @@ public interface ListStreamsResponseOrBuilder */ com.google.cloud.datastream.v1alpha1.Stream getStreams(int index); /** - * - * *
    * List of streams
    * 
@@ -54,102 +33,84 @@ public interface ListStreamsResponseOrBuilder */ int getStreamsCount(); /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - java.util.List + java.util.List getStreamsOrBuilderList(); /** - * - * *
    * List of streams
    * 
* * repeated .google.cloud.datastream.v1alpha1.Stream streams = 1; */ - com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return A list containing the unreachable. */ - java.util.List getUnreachableList(); + java.util.List + getUnreachableList(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @return The count of unreachable. */ int getUnreachableCount(); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** - * - * *
    * Locations that could not be reached.
    * 
* * repeated string unreachable = 3; - * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString getUnreachableBytes(int index); + com.google.protobuf.ByteString + getUnreachableBytes(int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/LocationName.java diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java similarity index 73% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java index 43c13c1c..9d18c4db 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumn.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlColumn} */ -public final class MysqlColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlColumn) MysqlColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlColumn.newBuilder() to construct. private MysqlColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlColumn() { columnName_ = ""; dataType_ = ""; @@ -45,15 +27,16 @@ 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) @@ -72,92 +55,84 @@ private MysqlColumn( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - columnName_ = s; - break; - } - case 18: - { - 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(); + dataType_ = s; + break; + } + case 24: { - 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; + length_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + 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; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -166,29 +141,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 { @@ -199,15 +174,12 @@ public com.google.protobuf.ByteString getColumnNameBytes() { 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 @@ -216,30 +188,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 { @@ -250,14 +222,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -268,14 +237,11 @@ 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 @@ -284,29 +250,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 { @@ -317,14 +283,11 @@ public com.google.protobuf.ByteString getCollationBytes() { 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 @@ -335,14 +298,11 @@ 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 @@ -353,14 +313,11 @@ 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 @@ -369,7 +326,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -381,7 +337,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -419,19 +376,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(collation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, collation_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, ordinalPosition_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -441,21 +402,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlColumn other = - (com.google.cloud.datastream.v1alpha1.MysqlColumn) obj; - - if (!getColumnName().equals(other.getColumnName())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (!getCollation().equals(other.getCollation())) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1alpha1.MysqlColumn other = (com.google.cloud.datastream.v1alpha1.MysqlColumn) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (!getCollation() + .equals(other.getCollation())) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -476,9 +443,11 @@ public int hashCode() { hash = (37 * hash) + COLLATION_FIELD_NUMBER; hash = (53 * hash) + getCollation().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + unknownFields.hashCode(); @@ -486,127 +455,118 @@ 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() @@ -614,15 +574,16 @@ 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(); @@ -644,9 +605,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 @@ -665,8 +626,7 @@ 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_; @@ -682,39 +642,38 @@ 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; @@ -722,8 +681,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlColumn other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); @@ -779,20 +737,18 @@ 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; @@ -801,21 +757,20 @@ public java.lang.String getColumnName() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString getColumnNameBytes() { + public com.google.protobuf.ByteString + getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnName_ = b; return b; } else { @@ -823,61 +778,54 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName(java.lang.String value) { + 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; @@ -885,21 +833,19 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -908,22 +854,21 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -931,79 +876,69 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The MySQL data type. Full data types list can be found here:
      * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { + 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 @@ -1011,36 +946,30 @@ 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; @@ -1048,20 +977,18 @@ public Builder clearLength() { private java.lang.Object collation_ = ""; /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return The collation. */ public java.lang.String getCollation() { java.lang.Object ref = collation_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); collation_ = s; return s; @@ -1070,21 +997,20 @@ public java.lang.String getCollation() { } } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @return The bytes for collation. */ - public com.google.protobuf.ByteString getCollationBytes() { + public com.google.protobuf.ByteString + getCollationBytes() { java.lang.Object ref = collation_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); collation_ = b; return b; } else { @@ -1092,76 +1018,66 @@ public com.google.protobuf.ByteString getCollationBytes() { } } /** - * - * *
      * Column collation.
      * 
* * string collation = 4; - * * @param value The collation to set. * @return This builder for chaining. */ - public Builder setCollation(java.lang.String value) { + 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 @@ -1169,51 +1085,42 @@ 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 @@ -1221,51 +1128,42 @@ 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 @@ -1273,43 +1171,37 @@ 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); } @@ -1319,12 +1211,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(); } @@ -1333,16 +1225,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; @@ -1357,4 +1249,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java index eb736dee..28517c04 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlColumnOrBuilder.java @@ -1,153 +1,110 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlColumnOrBuilder - extends +public interface MysqlColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The columnName. */ java.lang.String getColumnName(); /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - com.google.protobuf.ByteString getColumnNameBytes(); + com.google.protobuf.ByteString + getColumnNameBytes(); /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The MySQL data type. Full data types list can be found here:
    * https://dev.mysql.com/doc/refman/8.0/en/data-types.html
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The collation. */ java.lang.String getCollation(); /** - * - * *
    * Column collation.
    * 
* * string collation = 4; - * * @return The bytes for collation. */ - com.google.protobuf.ByteString getCollationBytes(); + com.google.protobuf.ByteString + getCollationBytes(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 5; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 6; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 7; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java similarity index 74% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java index 934603c3..c83fb4ea 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabase.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL database.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlDatabase} */ -public final class MysqlDatabase extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlDatabase extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlDatabase) MysqlDatabaseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlDatabase.newBuilder() to construct. private MysqlDatabase(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlDatabase() { databaseName_ = ""; mysqlTables_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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) @@ -72,38 +55,35 @@ 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; - } - mysqlTables_.add( - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), extensionRegistry)); - break; + databaseName_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlTables_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mysqlTables_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlTable.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -112,33 +92,27 @@ 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 @@ -147,29 +121,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 { @@ -180,8 +154,6 @@ public com.google.protobuf.ByteString getDatabaseNameBytes() { public static final int MYSQL_TABLES_FIELD_NUMBER = 2; private java.util.List mysqlTables_; /** - * - * *
    * Tables in the database.
    * 
@@ -193,8 +165,6 @@ public java.util.List getMysqlT return mysqlTables_; } /** - * - * *
    * Tables in the database.
    * 
@@ -202,13 +172,11 @@ public java.util.List getMysqlT * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlTablesOrBuilderList() { return mysqlTables_; } /** - * - * *
    * Tables in the database.
    * 
@@ -220,8 +188,6 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** - * - * *
    * Tables in the database.
    * 
@@ -233,8 +199,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) return mysqlTables_.get(index); } /** - * - * *
    * Tables in the database.
    * 
@@ -248,7 +212,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseName_); } @@ -280,7 +244,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, databaseName_); } for (int i = 0; i < mysqlTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, mysqlTables_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,16 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.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; } @@ -323,126 +289,117 @@ 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() @@ -450,17 +407,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(); @@ -476,9 +433,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 @@ -497,8 +454,7 @@ 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) { @@ -518,39 +474,38 @@ 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; @@ -558,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlDatabase other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()) return this; if (!other.getDatabaseName().isEmpty()) { databaseName_ = other.databaseName_; onChanged(); @@ -582,10 +536,9 @@ 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_); } @@ -610,8 +563,7 @@ 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) { @@ -620,25 +572,22 @@ 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; @@ -647,21 +596,20 @@ public java.lang.String getDatabaseName() { } } /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @return The bytes for databaseName. */ - public com.google.protobuf.ByteString getDatabaseNameBytes() { + public com.google.protobuf.ByteString + getDatabaseNameBytes() { java.lang.Object ref = databaseName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseName_ = b; return b; } else { @@ -669,86 +617,72 @@ public com.google.protobuf.ByteString getDatabaseNameBytes() { } } /** - * - * *
      * Database name.
      * 
* * string database_name = 1; - * * @param value The databaseName to set. * @return This builder for chaining. */ - public Builder setDatabaseName(java.lang.String value) { + 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.
      * 
@@ -763,8 +697,6 @@ public java.util.List getMysqlT } } /** - * - * *
      * Tables in the database.
      * 
@@ -779,8 +711,6 @@ public int getMysqlTablesCount() { } } /** - * - * *
      * Tables in the database.
      * 
@@ -795,8 +725,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) } } /** - * - * *
      * Tables in the database.
      * 
@@ -818,8 +746,6 @@ public Builder setMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -838,8 +764,6 @@ public Builder setMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -860,8 +784,6 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1alpha1.MysqlTable va return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -883,8 +805,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -903,8 +823,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -923,8 +841,6 @@ public Builder addMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -935,7 +851,8 @@ public Builder addAllMysqlTables( java.lang.Iterable values) { if (mysqlTablesBuilder_ == null) { ensureMysqlTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlTables_); onChanged(); } else { mysqlTablesBuilder_.addAllMessages(values); @@ -943,8 +860,6 @@ public Builder addAllMysqlTables( return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -962,8 +877,6 @@ public Builder clearMysqlTables() { return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -981,8 +894,6 @@ public Builder removeMysqlTables(int index) { return this; } /** - * - * *
      * Tables in the database.
      * 
@@ -994,8 +905,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui return getMysqlTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the database.
      * 
@@ -1005,22 +914,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder( int index) { if (mysqlTablesBuilder_ == null) { - return mysqlTables_.get(index); - } else { + return mysqlTables_.get(index); } else { return mysqlTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesOrBuilderList() { + public java.util.List + getMysqlTablesOrBuilderList() { if (mysqlTablesBuilder_ != null) { return mysqlTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1028,8 +934,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } } /** - * - * *
      * Tables in the database.
      * 
@@ -1037,12 +941,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBuilder() { - return getMysqlTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the database.
      * 
@@ -1051,42 +953,37 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBui */ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder addMysqlTablesBuilder( int index) { - return getMysqlTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); + return getMysqlTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()); } /** - * - * *
      * Tables in the database.
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - public java.util.List - getMysqlTablesBuilderList() { + public java.util.List + getMysqlTablesBuilderList() { return getMysqlTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlTable, com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder> getMysqlTablesFieldBuilder() { if (mysqlTablesBuilder_ == null) { - mysqlTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlTable, - com.google.cloud.datastream.v1alpha1.MysqlTable.Builder, - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder>( - mysqlTables_, ((bitField0_ & 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); } @@ -1096,12 +993,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(); } @@ -1110,16 +1007,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; @@ -1134,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlDatabase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java index 8e8acb30..a4056682 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlDatabaseOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlDatabaseOrBuilder - extends +public interface MysqlDatabaseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlDatabase) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Database name.
    * 
* * string database_name = 1; - * * @return The databaseName. */ java.lang.String getDatabaseName(); /** - * - * *
    * Database name.
    * 
* * string database_name = 1; - * * @return The bytes for databaseName. */ - com.google.protobuf.ByteString getDatabaseNameBytes(); + com.google.protobuf.ByteString + getDatabaseNameBytes(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - java.util.List getMysqlTablesList(); + java.util.List + getMysqlTablesList(); /** - * - * *
    * Tables in the database.
    * 
@@ -69,8 +45,6 @@ public interface MysqlDatabaseOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index); /** - * - * *
    * Tables in the database.
    * 
@@ -79,24 +53,21 @@ public interface MysqlDatabaseOrBuilder */ int getMysqlTablesCount(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - java.util.List + java.util.List getMysqlTablesOrBuilderList(); /** - * - * *
    * Tables in the database.
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlTable mysql_tables = 2; */ - com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOrBuilder( + int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java similarity index 70% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java index ecd518d5..f73b048a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlProfile} */ -public final class MysqlProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlProfile) MysqlProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlProfile.newBuilder() to construct. private MysqlProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlProfile() { hostname_ = ""; username_ = ""; @@ -45,15 +27,16 @@ 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) @@ -72,94 +55,82 @@ private MysqlProfile( 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: { - username_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + 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(); - } - sslConfig_ = - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sslConfig_); - sslConfig_ = subBuilder.buildPartial(); - } + username_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - break; + password_ = s; + break; + } + case 42: { + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder subBuilder = null; + if (sslConfig_ != null) { + subBuilder = sslConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -168,29 +139,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 { @@ -201,14 +172,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { 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 @@ -219,14 +187,11 @@ 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 @@ -235,29 +200,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 { @@ -268,16 +233,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { 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 @@ -286,31 +246,29 @@ public java.lang.String getPassword() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; } } /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ @java.lang.Override - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -321,14 +279,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { public static final int SSL_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datastream.v1alpha1.MysqlSslConfig sslConfig_; /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ @java.lang.Override @@ -336,25 +291,18 @@ public boolean hasSslConfig() { return sslConfig_ != null; } /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig() { - return sslConfig_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
@@ -367,7 +315,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -379,7 +326,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -408,7 +356,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -417,7 +366,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, password_); } if (sslConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSslConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getSslConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -427,21 +377,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlProfile other = - (com.google.cloud.datastream.v1alpha1.MysqlProfile) obj; + com.google.cloud.datastream.v1alpha1.MysqlProfile other = (com.google.cloud.datastream.v1alpha1.MysqlProfile) obj; - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; if (hasSslConfig() != other.hasSslConfig()) return false; if (hasSslConfig()) { - if (!getSslConfig().equals(other.getSslConfig())) return false; + if (!getSslConfig() + .equals(other.getSslConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -472,126 +426,117 @@ 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() @@ -599,15 +544,16 @@ 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(); @@ -629,9 +575,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 @@ -650,8 +596,7 @@ 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_; @@ -669,39 +614,38 @@ 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; @@ -709,8 +653,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlProfile.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; onChanged(); @@ -748,8 +691,7 @@ 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) { @@ -761,20 +703,18 @@ 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; @@ -783,21 +723,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -805,76 +744,66 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the MySQL connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { + 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 @@ -882,36 +811,30 @@ 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; @@ -919,20 +842,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -941,21 +862,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -963,61 +883,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the MySQL connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + 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; @@ -1025,22 +938,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1049,23 +958,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1073,67 +979,54 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Input only. Password for the MySQL connection.
      * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + 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; @@ -1141,47 +1034,34 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.MysqlSslConfig sslConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> - sslConfigBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> sslConfigBuilder_; /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ public boolean hasSslConfig() { return 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.
      * 
@@ -1202,8 +1082,6 @@ public Builder setSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1222,8 +1100,6 @@ public Builder setSslConfig( return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1234,9 +1110,7 @@ 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; } @@ -1248,8 +1122,6 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfi return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1268,8 +1140,6 @@ public Builder clearSslConfig() { return this; } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1277,13 +1147,11 @@ 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.
      * 
@@ -1294,14 +1162,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig if (sslConfigBuilder_ != null) { return sslConfigBuilder_.getMessageOrBuilder(); } else { - return sslConfig_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() - : sslConfig_; + return sslConfig_ == null ? + com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance() : sslConfig_; } } /** - * - * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1309,24 +1174,21 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder> getSslConfigFieldBuilder() { if (sslConfigBuilder_ == null) { - sslConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSslConfig, - com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder>( - getSslConfig(), getParentForChildren(), isClean()); + sslConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlSslConfig, com.google.cloud.datastream.v1alpha1.MysqlSslConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder>( + getSslConfig(), + getParentForChildren(), + isClean()); sslConfig_ = null; } return sslConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1336,12 +1198,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(); } @@ -1350,16 +1212,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; @@ -1374,4 +1236,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java similarity index 66% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java index 71fc0534..e84fd0e1 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlProfileOrBuilder.java @@ -1,147 +1,101 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlProfileOrBuilder - extends +public interface MysqlProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the MySQL connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the MySQL connection, default value is 3306.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the MySQL connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Input only. Password for the MySQL connection.
    * 
* - * - * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * - * + * string password = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return Whether the sslConfig field is set. */ boolean hasSslConfig(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSslConfig ssl_config = 5; - * * @return The sslConfig. */ com.google.cloud.datastream.v1alpha1.MysqlSslConfig getSslConfig(); /** - * - * *
    * SSL configuration for the MySQL connection.
    * 
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java similarity index 75% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java index 27c492ed..b71429c0 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbms.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -71,32 +54,29 @@ private MysqlRdbms( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlDatabases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mysqlDatabases_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlDatabase.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -105,27 +85,22 @@ 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
    * 
@@ -133,13 +108,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List - getMysqlDatabasesList() { + public java.util.List getMysqlDatabasesList() { return mysqlDatabases_; } /** - * - * *
    * Mysql databases on the server
    * 
@@ -147,13 +119,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ @java.lang.Override - public java.util.List + public java.util.List getMysqlDatabasesOrBuilderList() { return mysqlDatabases_; } /** - * - * *
    * Mysql databases on the server
    * 
@@ -165,8 +135,6 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** - * - * *
    * Mysql databases on the server
    * 
@@ -178,8 +146,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int return mysqlDatabases_.get(index); } /** - * - * *
    * Mysql databases on the server
    * 
@@ -193,7 +159,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -219,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < mysqlDatabases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mysqlDatabases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, mysqlDatabases_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -229,15 +196,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; } @@ -258,127 +225,118 @@ 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() @@ -386,17 +344,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(); @@ -410,9 +368,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 @@ -431,8 +389,7 @@ 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)) { @@ -451,39 +408,38 @@ 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; @@ -491,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlRdbms other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) return this; if (mysqlDatabasesBuilder_ == null) { if (!other.mysqlDatabases_.isEmpty()) { if (mysqlDatabases_.isEmpty()) { @@ -511,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlRdbms other) mysqlDatabasesBuilder_ = null; mysqlDatabases_ = other.mysqlDatabases_; bitField0_ = (bitField0_ & ~0x00000001); - mysqlDatabasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getMysqlDatabasesFieldBuilder() - : null; + mysqlDatabasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMysqlDatabasesFieldBuilder() : null; } else { mysqlDatabasesBuilder_.addAllMessages(other.mysqlDatabases_); } @@ -548,38 +502,28 @@ 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 { @@ -587,8 +531,6 @@ private void ensureMysqlDatabasesIsMutable() { } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -603,8 +545,6 @@ public int getMysqlDatabasesCount() { } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -619,8 +559,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -642,8 +580,6 @@ public Builder setMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -662,8 +598,6 @@ public Builder setMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -684,8 +618,6 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1alpha1.MysqlDatab return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -707,8 +639,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -727,8 +657,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -747,8 +675,6 @@ public Builder addMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -759,7 +685,8 @@ public Builder addAllMysqlDatabases( java.lang.Iterable values) { if (mysqlDatabasesBuilder_ == null) { ensureMysqlDatabasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlDatabases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, mysqlDatabases_); onChanged(); } else { mysqlDatabasesBuilder_.addAllMessages(values); @@ -767,8 +694,6 @@ public Builder addAllMysqlDatabases( return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -786,8 +711,6 @@ public Builder clearMysqlDatabases() { return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -805,8 +728,6 @@ public Builder removeMysqlDatabases(int index) { return this; } /** - * - * *
      * Mysql databases on the server
      * 
@@ -818,8 +739,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** - * - * *
      * Mysql databases on the server
      * 
@@ -829,22 +748,19 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( int index) { if (mysqlDatabasesBuilder_ == null) { - return mysqlDatabases_.get(index); - } else { + return mysqlDatabases_.get(index); } else { return mysqlDatabasesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesOrBuilderList() { + public java.util.List + getMysqlDatabasesOrBuilderList() { if (mysqlDatabasesBuilder_ != null) { return mysqlDatabasesBuilder_.getMessageOrBuilderList(); } else { @@ -852,8 +768,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } } /** - * - * *
      * Mysql databases on the server
      * 
@@ -861,12 +775,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDatabasesBuilder() { - return getMysqlDatabasesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); } /** - * - * *
      * Mysql databases on the server
      * 
@@ -875,35 +787,26 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDataba */ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder addMysqlDatabasesBuilder( int index) { - return getMysqlDatabasesFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); + return getMysqlDatabasesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.MysqlDatabase.getDefaultInstance()); } /** - * - * *
      * Mysql databases on the server
      * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - public java.util.List - getMysqlDatabasesBuilderList() { + public java.util.List + getMysqlDatabasesBuilderList() { return getMysqlDatabasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder> getMysqlDatabasesFieldBuilder() { if (mysqlDatabasesBuilder_ == null) { - mysqlDatabasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlDatabase, - com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder>( + mysqlDatabasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlDatabase, com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder, com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder>( mysqlDatabases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -912,9 +815,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); } @@ -924,12 +827,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(); } @@ -938,16 +841,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; @@ -962,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java index 57ea7c1a..a66f896a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlRdbmsOrBuilder - extends +public interface MysqlRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - java.util.List getMysqlDatabasesList(); + java.util.List + getMysqlDatabasesList(); /** - * - * *
    * Mysql databases on the server
    * 
@@ -44,8 +25,6 @@ public interface MysqlRdbmsOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int index); /** - * - * *
    * Mysql databases on the server
    * 
@@ -54,24 +33,21 @@ public interface MysqlRdbmsOrBuilder */ int getMysqlDatabasesCount(); /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - java.util.List + java.util.List getMysqlDatabasesOrBuilderList(); /** - * - * *
    * Mysql databases on the server
    * 
* * repeated .google.cloud.datastream.v1alpha1.MysqlDatabase mysql_databases = 1; */ - com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatabasesOrBuilder( + int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java index 0d345b98..2500af1c 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -68,83 +52,72 @@ 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 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 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; + rejectlist_ = input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rejectlist_); + rejectlist_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -152,25 +125,18 @@ public boolean hasAllowlist() { return allowlist_ != null; } /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return The allowlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist() { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; } /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
@@ -185,14 +151,11 @@ 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 @@ -200,25 +163,18 @@ public boolean hasRejectlist() { return rejectlist_ != null; } /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return The rejectlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist() { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; } /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
@@ -231,7 +187,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowlist_ != null) { output.writeMessage(1, getAllowlist()); } @@ -260,10 +216,12 @@ public int getSerializedSize() { size = 0; if (allowlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllowlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAllowlist()); } if (rejectlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRejectlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRejectlist()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other = - (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) obj; + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other = (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) obj; if (hasAllowlist() != other.hasAllowlist()) return false; if (hasAllowlist()) { - if (!getAllowlist().equals(other.getAllowlist())) return false; + if (!getAllowlist() + .equals(other.getAllowlist())) return false; } if (hasRejectlist() != other.hasRejectlist()) return false; if (hasRejectlist()) { - if (!getRejectlist().equals(other.getRejectlist())) return false; + if (!getRejectlist() + .equals(other.getRejectlist())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -314,127 +273,117 @@ 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() @@ -442,15 +391,16 @@ 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(); @@ -470,9 +420,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 @@ -491,8 +441,7 @@ 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 { @@ -511,39 +460,38 @@ 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; @@ -551,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) return this; if (other.hasAllowlist()) { mergeAllowlist(other.getAllowlist()); } @@ -578,8 +525,7 @@ 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) { @@ -591,47 +537,34 @@ 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.
      * 
@@ -652,8 +585,6 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms valu return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -672,8 +603,6 @@ public Builder setAllowlist( return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -684,9 +613,7 @@ 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; } @@ -698,8 +625,6 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms va return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -718,8 +643,6 @@ public Builder clearAllowlist() { return this; } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -727,13 +650,11 @@ 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.
      * 
@@ -744,14 +665,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu if (allowlistBuilder_ != null) { return allowlistBuilder_.getMessageOrBuilder(); } else { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? + com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : allowlist_; } } /** - * - * *
      * MySQL objects to retrieve from the source.
      * 
@@ -759,17 +677,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getAllowlistFieldBuilder() { if (allowlistBuilder_ == null) { - allowlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( - getAllowlist(), getParentForChildren(), isClean()); + allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + getAllowlist(), + getParentForChildren(), + isClean()); allowlist_ = null; } return allowlistBuilder_; @@ -777,47 +692,34 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBu private com.google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> - rejectlistBuilder_; + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> rejectlistBuilder_; /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ public boolean hasRejectlist() { return 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.
      * 
@@ -838,8 +740,6 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -858,8 +758,6 @@ public Builder setRejectlist( return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -870,9 +768,7 @@ 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; } @@ -884,8 +780,6 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -904,8 +798,6 @@ public Builder clearRejectlist() { return this; } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -913,13 +805,11 @@ 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.
      * 
@@ -930,14 +820,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB if (rejectlistBuilder_ != null) { return rejectlistBuilder_.getMessageOrBuilder(); } else { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? + com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance() : rejectlist_; } } /** - * - * *
      * MySQL objects to exclude from the stream.
      * 
@@ -945,24 +832,21 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getRejectlistFieldBuilder() { if (rejectlistBuilder_ == null) { - rejectlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( - getRejectlist(), getParentForChildren(), isClean()); + rejectlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + getRejectlist(), + getParentForChildren(), + isClean()); rejectlist_ = null; } return rejectlistBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +856,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(); } @@ -986,16 +870,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; @@ -1010,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java index f1a3bb82..c8c8491a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlSourceConfigOrBuilder - extends +public interface MysqlSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ boolean hasAllowlist(); /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms allowlist = 1; - * * @return The allowlist. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getAllowlist(); /** - * - * *
    * MySQL objects to retrieve from the source.
    * 
@@ -59,32 +35,24 @@ public interface MysqlSourceConfigOrBuilder com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getAllowlistOrBuilder(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ boolean hasRejectlist(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms rejectlist = 2; - * * @return The rejectlist. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getRejectlist(); /** - * - * *
    * MySQL objects to exclude from the stream.
    * 
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java similarity index 75% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java index 749825ae..9f15e5d4 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfig.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL SSL configuration information.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlSslConfig} */ -public final class MysqlSslConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlSslConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlSslConfig) MysqlSslConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlSslConfig.newBuilder() to construct. private MysqlSslConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlSslConfig() { clientKey_ = ""; clientCertificate_ = ""; @@ -45,15 +27,16 @@ 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) @@ -72,81 +55,74 @@ private MysqlSslConfig( case 0: done = true; break; - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); + 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(); + clientKey_ = s; + break; + } + case 96: { - clientCertificate_ = s; - break; - } - case 112: - { - clientCertificateSet_ = input.readBool(); - break; - } - case 122: - { - java.lang.String s = input.readStringRequireUtf8(); + clientKeySet_ = input.readBool(); + break; + } + case 106: { + java.lang.String s = input.readStringRequireUtf8(); - caCertificate_ = s; - break; - } - case 128: - { - caCertificateSet_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + clientCertificate_ = s; + break; + } + case 112: { + + clientCertificateSet_ = input.readBool(); + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + + caCertificate_ = s; + break; + } + case 128: { + + caCertificateSet_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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
@@ -154,7 +130,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ @java.lang.Override @@ -163,15 +138,14 @@ public java.lang.String getClientKey() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientKey_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -179,15 +153,16 @@ public java.lang.String getClientKey() {
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ @java.lang.Override - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -198,14 +173,11 @@ public com.google.protobuf.ByteString getClientKeyBytes() { 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 @@ -216,8 +188,6 @@ 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
@@ -225,7 +195,6 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ @java.lang.Override @@ -234,15 +203,14 @@ public java.lang.String getClientCertificate() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); clientCertificate_ = s; return s; } } /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -250,15 +218,16 @@ public java.lang.String getClientCertificate() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ @java.lang.Override - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -269,14 +238,11 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { 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 @@ -287,15 +253,12 @@ 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 @@ -304,30 +267,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 { @@ -338,14 +301,11 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { 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 @@ -354,7 +314,6 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,7 +325,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientKey_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, clientKey_); } @@ -398,19 +358,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, clientKey_); } if (clientKeySet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, clientKeySet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, clientKeySet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clientCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, clientCertificate_); } if (clientCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, clientCertificateSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, clientCertificateSet_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(caCertificate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, caCertificate_); } if (caCertificateSet_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, caCertificateSet_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, caCertificateSet_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -420,20 +383,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlSslConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.MysqlSslConfig other = - (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) obj; - - if (!getClientKey().equals(other.getClientKey())) return false; - if (getClientKeySet() != other.getClientKeySet()) return false; - if (!getClientCertificate().equals(other.getClientCertificate())) return false; - if (getClientCertificateSet() != other.getClientCertificateSet()) return false; - if (!getCaCertificate().equals(other.getCaCertificate())) return false; - if (getCaCertificateSet() != other.getCaCertificateSet()) return false; + com.google.cloud.datastream.v1alpha1.MysqlSslConfig other = (com.google.cloud.datastream.v1alpha1.MysqlSslConfig) obj; + + if (!getClientKey() + .equals(other.getClientKey())) return false; + if (getClientKeySet() + != other.getClientKeySet()) return false; + if (!getClientCertificate() + .equals(other.getClientCertificate())) return false; + if (getClientCertificateSet() + != other.getClientCertificateSet()) return false; + if (!getCaCertificate() + .equals(other.getCaCertificate())) return false; + if (getCaCertificateSet() + != other.getCaCertificateSet()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -448,141 +416,135 @@ 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() @@ -590,15 +552,16 @@ 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(); @@ -618,9 +581,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 @@ -639,8 +602,7 @@ 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_; @@ -655,39 +617,38 @@ 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; @@ -695,8 +656,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlSslConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlSslConfig.getDefaultInstance()) return this; if (!other.getClientKey().isEmpty()) { clientKey_ = other.clientKey_; onChanged(); @@ -737,8 +697,7 @@ 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) { @@ -750,8 +709,6 @@ 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
@@ -759,13 +716,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; @@ -774,8 +731,6 @@ public java.lang.String getClientKey() { } } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -783,14 +738,15 @@ public java.lang.String getClientKey() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - public com.google.protobuf.ByteString getClientKeyBytes() { + public com.google.protobuf.ByteString + getClientKeyBytes() { java.lang.Object ref = clientKey_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientKey_ = b; return b; } else { @@ -798,8 +754,6 @@ public com.google.protobuf.ByteString getClientKeyBytes() { } } /** - * - * *
      * Input only. PEM-encoded private key associated with the Client Certificate.
      * If this field is used then the 'client_certificate' and the
@@ -807,22 +761,20 @@ public com.google.protobuf.ByteString getClientKeyBytes() {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientKey to set. * @return This builder for chaining. */ - public Builder setClientKey(java.lang.String value) { + 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
@@ -830,18 +782,15 @@ public Builder setClientKey(java.lang.String value) {
      * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientKey() { - + 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
@@ -849,31 +798,28 @@ 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 @@ -881,36 +827,30 @@ 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; @@ -918,8 +858,6 @@ public Builder clearClientKeySet() { private java.lang.Object clientCertificate_ = ""; /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -927,13 +865,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; @@ -942,8 +880,6 @@ public java.lang.String getClientCertificate() { } } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -951,14 +887,15 @@ public java.lang.String getClientCertificate() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - public com.google.protobuf.ByteString getClientCertificateBytes() { + public com.google.protobuf.ByteString + getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); clientCertificate_ = b; return b; } else { @@ -966,8 +903,6 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { } } /** - * - * *
      * Input only. PEM-encoded certificate that will be used by the replica to
      * authenticate against the source database server. If this field is used
@@ -975,22 +910,20 @@ public com.google.protobuf.ByteString getClientCertificateBytes() {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The clientCertificate to set. * @return This builder for chaining. */ - public Builder setClientCertificate(java.lang.String value) { + 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
@@ -998,18 +931,15 @@ public Builder setClientCertificate(java.lang.String value) {
      * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearClientCertificate() { - + 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
@@ -1017,31 +947,28 @@ 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 @@ -1049,36 +976,30 @@ 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; @@ -1086,21 +1007,19 @@ public Builder clearClientCertificateSet() { private java.lang.Object caCertificate_ = ""; /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ public java.lang.String getCaCertificate() { java.lang.Object ref = caCertificate_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); caCertificate_ = s; return s; @@ -1109,22 +1028,21 @@ public java.lang.String getCaCertificate() { } } /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ - public com.google.protobuf.ByteString getCaCertificateBytes() { + public com.google.protobuf.ByteString + getCaCertificateBytes() { java.lang.Object ref = caCertificate_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); caCertificate_ = b; return b; } else { @@ -1132,79 +1050,69 @@ public com.google.protobuf.ByteString getCaCertificateBytes() { } } /** - * - * *
      * Input only. PEM-encoded certificate of the CA that signed the source database
      * server's certificate.
      * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @param value The caCertificate to set. * @return This builder for chaining. */ - public Builder setCaCertificate(java.lang.String value) { + 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 @@ -1212,43 +1120,37 @@ 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); } @@ -1258,12 +1160,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(); } @@ -1272,16 +1174,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; @@ -1296,4 +1198,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.MysqlSslConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java similarity index 77% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java index 2a4721fa..3cdea7e3 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlSslConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface MysqlSslConfigOrBuilder - extends +public interface MysqlSslConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlSslConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -33,13 +15,10 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientKey. */ java.lang.String getClientKey(); /** - * - * *
    * Input only. PEM-encoded private key associated with the Client Certificate.
    * If this field is used then the 'client_certificate' and the
@@ -47,27 +26,22 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientKey. */ - com.google.protobuf.ByteString getClientKeyBytes(); + com.google.protobuf.ByteString + getClientKeyBytes(); /** - * - * *
    * Output only. Indicates whether the client_key field is set.
    * 
* * bool client_key_set = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientKeySet. */ boolean getClientKeySet(); /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -75,13 +49,10 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** - * - * *
    * Input only. PEM-encoded certificate that will be used by the replica to
    * authenticate against the source database server. If this field is used
@@ -89,60 +60,49 @@ public interface MysqlSslConfigOrBuilder
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for clientCertificate. */ - com.google.protobuf.ByteString getClientCertificateBytes(); + com.google.protobuf.ByteString + getClientCertificateBytes(); /** - * - * *
    * Output only. Indicates whether the client_certificate field is set.
    * 
* * bool client_certificate_set = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The clientCertificateSet. */ boolean getClientCertificateSet(); /** - * - * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The caCertificate. */ java.lang.String getCaCertificate(); /** - * - * *
    * Input only. PEM-encoded certificate of the CA that signed the source database
    * server's certificate.
    * 
* * string ca_certificate = 15 [(.google.api.field_behavior) = INPUT_ONLY]; - * * @return The bytes for caCertificate. */ - com.google.protobuf.ByteString getCaCertificateBytes(); + com.google.protobuf.ByteString + getCaCertificateBytes(); /** - * - * *
    * Output only. Indicates whether the ca_certificate field is set.
    * 
* * bool ca_certificate_set = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The caCertificateSet. */ boolean getCaCertificateSet(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java similarity index 76% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java index a9cfa958..1f4215e7 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * MySQL table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.MysqlTable} */ -public final class MysqlTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class MysqlTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.MysqlTable) MysqlTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use MysqlTable.newBuilder() to construct. private MysqlTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MysqlTable() { tableName_ = ""; mysqlColumns_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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) @@ -72,39 +55,35 @@ 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; - } - mysqlColumns_.add( - input.readMessage( - com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), - extensionRegistry)); - break; + tableName_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + mysqlColumns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mysqlColumns_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.MysqlColumn.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -113,33 +92,27 @@ 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 @@ -148,29 +121,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 { @@ -181,8 +154,6 @@ public com.google.protobuf.ByteString getTableNameBytes() { 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
@@ -196,8 +167,6 @@ public java.util.List getMysql
     return mysqlColumns_;
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -207,13 +176,11 @@ public java.util.List getMysql
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getMysqlColumnsOrBuilderList() {
     return mysqlColumns_;
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -227,8 +194,6 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -242,8 +207,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int inde
     return mysqlColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -259,7 +222,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -271,7 +233,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -291,7 +254,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
     }
     for (int i = 0; i < mysqlColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, mysqlColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, mysqlColumns_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -301,16 +265,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.MysqlTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.MysqlTable other =
-        (com.google.cloud.datastream.v1alpha1.MysqlTable) obj;
+    com.google.cloud.datastream.v1alpha1.MysqlTable other = (com.google.cloud.datastream.v1alpha1.MysqlTable) obj;
 
-    if (!getTableName().equals(other.getTableName())) return false;
-    if (!getMysqlColumnsList().equals(other.getMysqlColumnsList())) return false;
+    if (!getTableName()
+        .equals(other.getTableName())) return false;
+    if (!getMysqlColumnsList()
+        .equals(other.getMysqlColumnsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -333,127 +298,118 @@ 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() @@ -461,17 +417,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(); @@ -487,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_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 @@ -508,8 +464,7 @@ 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) { @@ -529,39 +484,38 @@ 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; @@ -569,8 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.MysqlTable other) { - if (other == com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.MysqlTable.getDefaultInstance()) return this; if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; onChanged(); @@ -593,10 +546,9 @@ 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_); } @@ -630,25 +582,22 @@ 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; @@ -657,21 +606,20 @@ public java.lang.String getTableName() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - public com.google.protobuf.ByteString getTableNameBytes() { + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableName_ = b; return b; } else { @@ -679,87 +627,72 @@ public com.google.protobuf.ByteString getTableNameBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setTableName(java.lang.String value) { + 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
@@ -776,8 +709,6 @@ public java.util.List getMysql
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -794,8 +725,6 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -812,8 +741,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int inde
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -837,8 +764,6 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -859,8 +784,6 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -883,8 +806,6 @@ public Builder addMysqlColumns(com.google.cloud.datastream.v1alpha1.MysqlColumn
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -908,8 +829,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -930,8 +849,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -952,8 +869,6 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -966,7 +881,8 @@ public Builder addAllMysqlColumns(
         java.lang.Iterable values) {
       if (mysqlColumnsBuilder_ == null) {
         ensureMysqlColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mysqlColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, mysqlColumns_);
         onChanged();
       } else {
         mysqlColumnsBuilder_.addAllMessages(values);
@@ -974,8 +890,6 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -995,8 +909,6 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1016,8 +928,6 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1031,8 +941,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder getMysqlColumnsB
       return getMysqlColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1044,14 +952,11 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder getMysqlColumnsB
     public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
         int index) {
       if (mysqlColumnsBuilder_ == null) {
-        return mysqlColumns_.get(index);
-      } else {
+        return mysqlColumns_.get(index);  } else {
         return mysqlColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1060,8 +965,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 {
@@ -1069,8 +974,6 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
       }
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1080,12 +983,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
     public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsBuilder() {
-      return getMysqlColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1096,12 +997,10 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsB
      */
     public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsBuilder(
         int index) {
-      return getMysqlColumnsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
+      return getMysqlColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1alpha1.MysqlColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -1110,30 +1009,27 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder addMysqlColumnsB
      *
      * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
      */
-    public java.util.List
-        getMysqlColumnsBuilderList() {
+    public java.util.List 
+         getMysqlColumnsBuilderList() {
       return getMysqlColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.MysqlColumn,
-            com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder,
-            com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>
+        com.google.cloud.datastream.v1alpha1.MysqlColumn, com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder, com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder> 
         getMysqlColumnsFieldBuilder() {
       if (mysqlColumnsBuilder_ == null) {
-        mysqlColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.MysqlColumn,
-                com.google.cloud.datastream.v1alpha1.MysqlColumn.Builder,
-                com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder>(
-                mysqlColumns_, ((bitField0_ & 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);
     }
 
@@ -1143,12 +1039,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();
   }
@@ -1157,16 +1053,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;
@@ -1181,4 +1077,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.MysqlTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
similarity index 72%
rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
index e8ed3fe4..e597ddda 100644
--- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
+++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/MysqlTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface MysqlTableOrBuilder
-    extends
+public interface MysqlTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.MysqlTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table_name = 1; - * * @return The tableName. */ java.lang.String getTableName(); /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - com.google.protobuf.ByteString getTableNameBytes(); + com.google.protobuf.ByteString + getTableNameBytes(); /** - * - * *
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -59,10 +36,9 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List getMysqlColumnsList();
+  java.util.List 
+      getMysqlColumnsList();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -73,8 +49,6 @@ public interface MysqlTableOrBuilder
    */
   com.google.cloud.datastream.v1alpha1.MysqlColumn getMysqlColumns(int index);
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -85,8 +59,6 @@ public interface MysqlTableOrBuilder
    */
   int getMysqlColumnsCount();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -95,11 +67,9 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getMysqlColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -108,5 +78,6 @@ public interface MysqlTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.MysqlColumn mysql_columns = 2;
    */
-  com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumnsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
similarity index 66%
rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
index a21dc3e0..2dc306e2 100644
--- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
+++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettings.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the 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) @@ -68,42 +52,39 @@ private NoConnectivitySettings( 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) { throw e.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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.NoConnectivitySettings)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other = - (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) obj; + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other = (com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ 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() @@ -286,15 +257,16 @@ 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(); @@ -302,9 +274,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 @@ -323,8 +295,7 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings build() { @java.lang.Override public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings buildPartial() { - com.google.cloud.datastream.v1alpha1.NoConnectivitySettings result = - new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(this); + com.google.cloud.datastream.v1alpha1.NoConnectivitySettings result = new com.google.cloud.datastream.v1alpha1.NoConnectivitySettings(this); onBuilt(); return result; } @@ -333,39 +304,38 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.NoConnectivitySettings)other); } else { super.mergeFrom(other); return this; @@ -373,8 +343,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.NoConnectivitySettings other) { - if (other == com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.NoConnectivitySettings.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -394,8 +363,7 @@ 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) { @@ -404,9 +372,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); } @@ -416,12 +384,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(); } @@ -430,16 +398,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; @@ -454,4 +422,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 00000000..fe72f9f2 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface NoConnectivitySettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.NoConnectivitySettings) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java index 3da720c7..80075932 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadata.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Represents the metadata of the long-running operation.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OperationMetadata} */ -public final class OperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OperationMetadata) OperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperationMetadata.newBuilder() to construct. private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperationMetadata() { target_ = ""; verb_ = ""; @@ -46,15 +28,16 @@ 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) @@ -73,132 +56,114 @@ private OperationMetadata( case 0: done = true; break; - 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; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - 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; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - target_ = s; - break; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - 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(); + 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: { - apiVersion_ = s; - break; + requestedCancellation_ = input.readBool(); + break; + } + case 58: { + 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(); } - 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; + validationResult_ = input.readMessage(com.google.cloud.datastream.v1alpha1.ValidationResult.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validationResult_); + validationResult_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -206,15 +171,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -222,14 +183,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -239,15 +197,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp endTime_; /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ @java.lang.Override @@ -255,15 +209,11 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ @java.lang.Override @@ -271,14 +221,11 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -288,14 +235,11 @@ 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 @@ -304,29 +248,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 { @@ -337,14 +281,11 @@ public com.google.protobuf.ByteString getTargetBytes() { 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 @@ -353,29 +294,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 { @@ -386,14 +327,11 @@ public com.google.protobuf.ByteString getVerbBytes() { 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 @@ -402,29 +340,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 { @@ -435,8 +373,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { 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
@@ -445,7 +381,6 @@ public com.google.protobuf.ByteString getStatusMessageBytes() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -456,14 +391,11 @@ 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 @@ -472,29 +404,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 { @@ -505,16 +437,11 @@ public com.google.protobuf.ByteString getApiVersionBytes() { public static final int VALIDATION_RESULT_FIELD_NUMBER = 8; private com.google.cloud.datastream.v1alpha1.ValidationResult validationResult_; /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ @java.lang.Override @@ -522,43 +449,30 @@ public boolean hasValidationResult() { return validationResult_ != null; } /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult() { - return validationResult_ == null - ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() - : validationResult_; + return validationResult_ == null ? com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance() : validationResult_; } /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder - getValidationResultOrBuilder() { + public com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder() { return getValidationResult(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -570,7 +484,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (createTime_ != null) { output.writeMessage(1, getCreateTime()); } @@ -605,10 +520,12 @@ public int getSerializedSize() { size = 0; if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCreateTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); @@ -620,13 +537,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); } if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(6, requestedCancellation_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); } if (validationResult_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getValidationResult()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getValidationResult()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -636,30 +555,37 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OperationMetadata)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OperationMetadata other = - (com.google.cloud.datastream.v1alpha1.OperationMetadata) obj; + com.google.cloud.datastream.v1alpha1.OperationMetadata other = (com.google.cloud.datastream.v1alpha1.OperationMetadata) obj; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; - } - if (!getTarget().equals(other.getTarget())) return false; - if (!getVerb().equals(other.getVerb())) return false; - if (!getStatusMessage().equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() != other.getRequestedCancellation()) return false; - if (!getApiVersion().equals(other.getApiVersion())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getTarget() + .equals(other.getTarget())) return false; + if (!getVerb() + .equals(other.getVerb())) return false; + if (!getStatusMessage() + .equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() + != other.getRequestedCancellation()) return false; + if (!getApiVersion() + .equals(other.getApiVersion())) return false; if (hasValidationResult() != other.hasValidationResult()) return false; if (hasValidationResult()) { - if (!getValidationResult().equals(other.getValidationResult())) return false; + if (!getValidationResult() + .equals(other.getValidationResult())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -687,7 +613,8 @@ public int hashCode() { hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getRequestedCancellation()); hash = (37 * hash) + API_VERSION_FIELD_NUMBER; hash = (53 * hash) + getApiVersion().hashCode(); if (hasValidationResult()) { @@ -700,127 +627,117 @@ 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() @@ -828,15 +745,16 @@ 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(); @@ -872,9 +790,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 @@ -893,8 +811,7 @@ 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 { @@ -923,39 +840,38 @@ 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; @@ -963,8 +879,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OperationMetadata other) { - if (other == com.google.cloud.datastream.v1alpha1.OperationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OperationMetadata.getDefaultInstance()) return this; if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -1012,8 +927,7 @@ 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) { @@ -1025,58 +939,39 @@ 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) { @@ -1092,17 +987,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1113,21 +1005,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1139,15 +1027,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1161,64 +1045,48 @@ 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_; @@ -1226,35 +1094,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - endTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ public boolean hasEndTime() { return 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() { @@ -1265,14 +1122,11 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -1288,16 +1142,14 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -1308,20 +1160,17 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1333,14 +1182,11 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The time the operation finished running.
      * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -1354,59 +1200,48 @@ 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_; @@ -1414,20 +1249,18 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private java.lang.Object target_ = ""; /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ public java.lang.String getTarget() { java.lang.Object ref = target_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); target_ = s; return s; @@ -1436,21 +1269,20 @@ public java.lang.String getTarget() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - public com.google.protobuf.ByteString getTargetBytes() { + public com.google.protobuf.ByteString + getTargetBytes() { java.lang.Object ref = target_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); target_ = b; return b; } else { @@ -1458,61 +1290,54 @@ public com.google.protobuf.ByteString getTargetBytes() { } } /** - * - * *
      * Output only. Server-defined resource path for the target of the operation.
      * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The target to set. * @return This builder for chaining. */ - public Builder setTarget(java.lang.String value) { + 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; @@ -1520,20 +1345,18 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { private java.lang.Object verb_ = ""; /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ public java.lang.String getVerb() { java.lang.Object ref = verb_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); verb_ = s; return s; @@ -1542,21 +1365,20 @@ public java.lang.String getVerb() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - public com.google.protobuf.ByteString getVerbBytes() { + public com.google.protobuf.ByteString + getVerbBytes() { java.lang.Object ref = verb_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); verb_ = b; return b; } else { @@ -1564,61 +1386,54 @@ public com.google.protobuf.ByteString getVerbBytes() { } } /** - * - * *
      * Output only. Name of the verb executed by the operation.
      * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The verb to set. * @return This builder for chaining. */ - public Builder setVerb(java.lang.String value) { + 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; @@ -1626,20 +1441,18 @@ public Builder setVerbBytes(com.google.protobuf.ByteString value) { private java.lang.Object statusMessage_ = ""; /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); statusMessage_ = s; return s; @@ -1648,21 +1461,20 @@ public java.lang.String getStatusMessage() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { + public com.google.protobuf.ByteString + getStatusMessageBytes() { java.lang.Object ref = statusMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); statusMessage_ = b; return b; } else { @@ -1670,70 +1482,61 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { } } /** - * - * *
      * Output only. Human-readable status of the operation, if any.
      * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The statusMessage to set. * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + 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
@@ -1742,7 +1545,6 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ @java.lang.Override @@ -1750,8 +1552,6 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** - * - * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1760,19 +1560,16 @@ 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
@@ -1781,11 +1578,10 @@ 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; @@ -1793,20 +1589,18 @@ public Builder clearRequestedCancellation() { private java.lang.Object apiVersion_ = ""; /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ public java.lang.String getApiVersion() { java.lang.Object ref = apiVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); apiVersion_ = s; return s; @@ -1815,21 +1609,20 @@ public java.lang.String getApiVersion() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - public com.google.protobuf.ByteString getApiVersionBytes() { + public com.google.protobuf.ByteString + getApiVersionBytes() { java.lang.Object ref = apiVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); apiVersion_ = b; return b; } else { @@ -1837,61 +1630,54 @@ public com.google.protobuf.ByteString getApiVersionBytes() { } } /** - * - * *
      * Output only. API version used to start the operation.
      * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The apiVersion to set. * @return This builder for chaining. */ - public Builder setApiVersion(java.lang.String value) { + 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; @@ -1899,61 +1685,41 @@ public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.ValidationResult validationResult_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationResult, - com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, - com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> - validationResultBuilder_; + com.google.cloud.datastream.v1alpha1.ValidationResult, com.google.cloud.datastream.v1alpha1.ValidationResult.Builder, com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder> validationResultBuilder_; /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ public boolean hasValidationResult() { return 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(); @@ -1967,15 +1733,11 @@ public Builder setValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setValidationResult( com.google.cloud.datastream.v1alpha1.ValidationResult.Builder builderForValue) { @@ -1989,24 +1751,17 @@ public Builder setValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeValidationResult( - com.google.cloud.datastream.v1alpha1.ValidationResult value) { + public Builder mergeValidationResult(com.google.cloud.datastream.v1alpha1.ValidationResult value) { if (validationResultBuilder_ == null) { if (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; } @@ -2018,15 +1773,11 @@ public Builder mergeValidationResult( return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearValidationResult() { if (validationResultBuilder_ == null) { @@ -2040,73 +1791,55 @@ public Builder clearValidationResult() { return this; } /** - * - * *
      * Output only. Results of executed validations if there are any.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.ValidationResult.Builder - getValidationResultBuilder() { - + public com.google.cloud.datastream.v1alpha1.ValidationResult.Builder getValidationResultBuilder() { + 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); } @@ -2116,12 +1849,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(); } @@ -2130,16 +1863,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; @@ -2154,4 +1887,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java index 8edd8553..af066741 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OperationMetadataOrBuilder.java @@ -1,182 +1,127 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface OperationMetadataOrBuilder - extends +public interface OperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The time the operation was created.
    * 
* - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** - * - * *
    * Output only. The time the operation finished running.
    * 
* - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The target. */ java.lang.String getTarget(); /** - * - * *
    * Output only. Server-defined resource path for the target of the operation.
    * 
* * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for target. */ - com.google.protobuf.ByteString getTargetBytes(); + com.google.protobuf.ByteString + getTargetBytes(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The verb. */ java.lang.String getVerb(); /** - * - * *
    * Output only. Name of the verb executed by the operation.
    * 
* * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for verb. */ - com.google.protobuf.ByteString getVerbBytes(); + com.google.protobuf.ByteString + getVerbBytes(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The statusMessage. */ java.lang.String getStatusMessage(); /** - * - * *
    * Output only. Human-readable status of the operation, if any.
    * 
* * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for statusMessage. */ - com.google.protobuf.ByteString getStatusMessageBytes(); + com.google.protobuf.ByteString + getStatusMessageBytes(); /** - * - * *
    * Output only. Identifies whether the user has requested cancellation
    * of the operation. Operations that have successfully been cancelled
@@ -185,74 +130,54 @@ public interface OperationMetadataOrBuilder
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The requestedCancellation. */ boolean getRequestedCancellation(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The apiVersion. */ java.lang.String getApiVersion(); /** - * - * *
    * Output only. API version used to start the operation.
    * 
* * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for apiVersion. */ - com.google.protobuf.ByteString getApiVersionBytes(); + com.google.protobuf.ByteString + getApiVersionBytes(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the validationResult field is set. */ boolean hasValidationResult(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The validationResult. */ com.google.cloud.datastream.v1alpha1.ValidationResult getValidationResult(); /** - * - * *
    * Output only. Results of executed validations if there are any.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.ValidationResult validation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.datastream.v1alpha1.ValidationResultOrBuilder getValidationResultOrBuilder(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java similarity index 72% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java index b675565f..08d56a29 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumn.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle Column.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleColumn} */ -public final class OracleColumn extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleColumn extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleColumn) OracleColumnOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleColumn.newBuilder() to construct. private OracleColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleColumn() { columnName_ = ""; dataType_ = ""; @@ -45,15 +27,16 @@ 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) @@ -72,102 +55,94 @@ private OracleColumn( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - columnName_ = s; - break; - } - case 18: - { - 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: - { - scale_ = input.readInt32(); - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); + dataType_ = s; + break; + } + case 24: { - 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; + length_ = input.readInt32(); + break; + } + case 32: { + + precision_ = input.readInt32(); + break; + } + case 40: { + + scale_ = input.readInt32(); + break; + } + case 50: { + java.lang.String s = input.readStringRequireUtf8(); + + 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; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -176,29 +151,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 { @@ -209,14 +184,11 @@ public com.google.protobuf.ByteString getColumnNameBytes() { 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 @@ -225,29 +197,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 { @@ -258,14 +230,11 @@ public com.google.protobuf.ByteString getDataTypeBytes() { public static final int LENGTH_FIELD_NUMBER = 3; private int length_; /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ @java.lang.Override @@ -276,14 +245,11 @@ 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 @@ -294,14 +260,11 @@ 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 @@ -312,14 +275,11 @@ 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 @@ -328,29 +288,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 { @@ -361,14 +321,11 @@ public com.google.protobuf.ByteString getEncodingBytes() { 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 @@ -379,14 +336,11 @@ 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 @@ -397,14 +351,11 @@ 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 @@ -413,7 +364,6 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -425,7 +375,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -469,25 +420,31 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataType_); } if (length_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, length_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, length_); } if (precision_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, precision_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, precision_); } if (scale_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, scale_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, scale_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(encoding_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, encoding_); } if (primaryKey_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, primaryKey_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, primaryKey_); } if (nullable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, nullable_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, nullable_); } if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(9, ordinalPosition_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -497,23 +454,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleColumn)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleColumn other = - (com.google.cloud.datastream.v1alpha1.OracleColumn) obj; - - if (!getColumnName().equals(other.getColumnName())) return false; - if (!getDataType().equals(other.getDataType())) return false; - if (getLength() != other.getLength()) return false; - if (getPrecision() != other.getPrecision()) return false; - if (getScale() != other.getScale()) return false; - if (!getEncoding().equals(other.getEncoding())) return false; - if (getPrimaryKey() != other.getPrimaryKey()) return false; - if (getNullable() != other.getNullable()) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; + com.google.cloud.datastream.v1alpha1.OracleColumn other = (com.google.cloud.datastream.v1alpha1.OracleColumn) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!getDataType() + .equals(other.getDataType())) return false; + if (getLength() + != other.getLength()) return false; + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (!getEncoding() + .equals(other.getEncoding())) return false; + if (getPrimaryKey() + != other.getPrimaryKey()) return false; + if (getNullable() + != other.getNullable()) return false; + if (getOrdinalPosition() + != other.getOrdinalPosition()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -538,9 +503,11 @@ public int hashCode() { hash = (37 * hash) + ENCODING_FIELD_NUMBER; hash = (53 * hash) + getEncoding().hashCode(); hash = (37 * hash) + PRIMARY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPrimaryKey()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPrimaryKey()); hash = (37 * hash) + NULLABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullable()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNullable()); hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; hash = (53 * hash) + getOrdinalPosition(); hash = (29 * hash) + unknownFields.hashCode(); @@ -549,126 +516,117 @@ 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() @@ -676,15 +634,16 @@ 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(); @@ -710,9 +669,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 @@ -731,8 +690,7 @@ 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_; @@ -750,39 +708,38 @@ 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; @@ -790,8 +747,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleColumn other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); @@ -841,8 +797,7 @@ 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) { @@ -854,20 +809,18 @@ 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; @@ -876,21 +829,20 @@ public java.lang.String getColumnName() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString getColumnNameBytes() { + public com.google.protobuf.ByteString + getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); columnName_ = b; return b; } else { @@ -898,61 +850,54 @@ public com.google.protobuf.ByteString getColumnNameBytes() { } } /** - * - * *
      * Column name.
      * 
* * string column_name = 1; - * * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName(java.lang.String value) { + 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; @@ -960,20 +905,18 @@ public Builder setColumnNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object dataType_ = ""; /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -982,21 +925,20 @@ public java.lang.String getDataType() { } } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - public com.google.protobuf.ByteString getDataTypeBytes() { + public com.google.protobuf.ByteString + getDataTypeBytes() { java.lang.Object ref = dataType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataType_ = b; return b; } else { @@ -1004,76 +946,66 @@ public com.google.protobuf.ByteString getDataTypeBytes() { } } /** - * - * *
      * The Oracle data type.
      * 
* * string data_type = 2; - * * @param value The dataType to set. * @return This builder for chaining. */ - public Builder setDataType(java.lang.String value) { + 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 @@ -1081,51 +1013,42 @@ 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 @@ -1133,51 +1056,42 @@ 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 @@ -1185,36 +1099,30 @@ 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; @@ -1222,20 +1130,18 @@ public Builder clearScale() { private java.lang.Object encoding_ = ""; /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return The encoding. */ public java.lang.String getEncoding() { java.lang.Object ref = encoding_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); encoding_ = s; return s; @@ -1244,21 +1150,20 @@ public java.lang.String getEncoding() { } } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @return The bytes for encoding. */ - public com.google.protobuf.ByteString getEncodingBytes() { + public com.google.protobuf.ByteString + getEncodingBytes() { java.lang.Object ref = encoding_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); encoding_ = b; return b; } else { @@ -1266,76 +1171,66 @@ public com.google.protobuf.ByteString getEncodingBytes() { } } /** - * - * *
      * Column encoding.
      * 
* * string encoding = 6; - * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(java.lang.String value) { + 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 @@ -1343,51 +1238,42 @@ 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 @@ -1395,51 +1281,42 @@ 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 @@ -1447,43 +1324,37 @@ 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); } @@ -1493,12 +1364,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(); } @@ -1507,16 +1378,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; @@ -1531,4 +1402,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java index 7d1e8da8..b338d0ba 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleColumnOrBuilder.java @@ -1,177 +1,128 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleColumnOrBuilder - extends +public interface OracleColumnOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleColumn) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The columnName. */ java.lang.String getColumnName(); /** - * - * *
    * Column name.
    * 
* * string column_name = 1; - * * @return The bytes for columnName. */ - com.google.protobuf.ByteString getColumnNameBytes(); + com.google.protobuf.ByteString + getColumnNameBytes(); /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The dataType. */ java.lang.String getDataType(); /** - * - * *
    * The Oracle data type.
    * 
* * string data_type = 2; - * * @return The bytes for dataType. */ - com.google.protobuf.ByteString getDataTypeBytes(); + com.google.protobuf.ByteString + getDataTypeBytes(); /** - * - * *
    * Column length.
    * 
* * int32 length = 3; - * * @return The length. */ int getLength(); /** - * - * *
    * Column precision.
    * 
* * int32 precision = 4; - * * @return The precision. */ int getPrecision(); /** - * - * *
    * Column scale.
    * 
* * int32 scale = 5; - * * @return The scale. */ int getScale(); /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The encoding. */ java.lang.String getEncoding(); /** - * - * *
    * Column encoding.
    * 
* * string encoding = 6; - * * @return The bytes for encoding. */ - com.google.protobuf.ByteString getEncodingBytes(); + com.google.protobuf.ByteString + getEncodingBytes(); /** - * - * *
    * Whether or not the column represents a primary key.
    * 
* * bool primary_key = 7; - * * @return The primaryKey. */ boolean getPrimaryKey(); /** - * - * *
    * Whether or not the column can accept a null value.
    * 
* * bool nullable = 8; - * * @return The nullable. */ boolean getNullable(); /** - * - * *
    * The ordinal position of the column in the table.
    * 
* * int32 ordinal_position = 9; - * * @return The ordinalPosition. */ int getOrdinalPosition(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java index 6fb7902e..aee74c34 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfile.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle database profile.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleProfile} */ -public final class OracleProfile extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleProfile extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleProfile) OracleProfileOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleProfile.newBuilder() to construct. private OracleProfile(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleProfile() { hostname_ = ""; username_ = ""; @@ -46,15 +28,16 @@ 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) @@ -74,113 +57,100 @@ 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: { - username_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + port_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - password_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + username_ = s; + break; + } + case 34: { + 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; - } - com.google.protobuf.MapEntry - connectionAttributes__ = - input.readMessage( - ConnectionAttributesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - connectionAttributes_ - .getMutableMap() - .put(connectionAttributes__.getKey(), connectionAttributes__.getValue()); - break; + 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; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -189,29 +159,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 { @@ -222,14 +192,11 @@ public com.google.protobuf.ByteString getHostnameBytes() { 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 @@ -240,14 +207,11 @@ 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 @@ -256,29 +220,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 { @@ -289,14 +253,11 @@ public com.google.protobuf.ByteString getUsernameBytes() { 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 @@ -305,29 +266,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 { @@ -338,14 +299,11 @@ public com.google.protobuf.ByteString getPasswordBytes() { 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 @@ -354,29 +312,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 { @@ -385,22 +343,21 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } public static final int CONNECTION_ATTRIBUTES_FIELD_NUMBER = 6; - private static final class ConnectionAttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField connectionAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; private com.google.protobuf.MapField - internalGetConnectionAttributes() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); @@ -412,30 +369,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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
    * 
@@ -443,12 +398,11 @@ 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
    * 
@@ -456,18 +410,16 @@ 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 java.lang.NullPointerException(); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Connection string attributes
    * 
@@ -475,10 +427,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 java.lang.NullPointerException(); - } + + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -488,7 +440,6 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -500,7 +451,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -516,7 +468,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseService_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseService_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetConnectionAttributes(), ConnectionAttributesDefaultEntryHolder.defaultEntry, @@ -534,7 +487,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, hostname_); } if (port_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, port_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, port_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(username_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -545,15 +499,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; @@ -563,21 +517,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleProfile)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleProfile other = - (com.google.cloud.datastream.v1alpha1.OracleProfile) obj; - - if (!getHostname().equals(other.getHostname())) return false; - if (getPort() != other.getPort()) return false; - if (!getUsername().equals(other.getUsername())) return false; - if (!getPassword().equals(other.getPassword())) return false; - if (!getDatabaseService().equals(other.getDatabaseService())) return false; - if (!internalGetConnectionAttributes().equals(other.internalGetConnectionAttributes())) - return false; + com.google.cloud.datastream.v1alpha1.OracleProfile other = (com.google.cloud.datastream.v1alpha1.OracleProfile) obj; + + if (!getHostname() + .equals(other.getHostname())) return false; + if (getPort() + != other.getPort()) return false; + if (!getUsername() + .equals(other.getUsername())) return false; + if (!getPassword() + .equals(other.getPassword())) return false; + if (!getDatabaseService() + .equals(other.getDatabaseService())) return false; + if (!internalGetConnectionAttributes().equals( + other.internalGetConnectionAttributes())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -609,146 +567,139 @@ 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() @@ -756,15 +707,16 @@ 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(); @@ -783,9 +735,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 @@ -804,8 +756,7 @@ 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_; @@ -822,39 +773,38 @@ 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; @@ -862,8 +812,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleProfile other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleProfile.getDefaultInstance()) return this; if (!other.getHostname().isEmpty()) { hostname_ = other.hostname_; onChanged(); @@ -883,7 +832,8 @@ 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; @@ -903,8 +853,7 @@ 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) { @@ -913,25 +862,22 @@ 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; @@ -940,21 +886,20 @@ public java.lang.String getHostname() { } } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - public com.google.protobuf.ByteString getHostnameBytes() { + public com.google.protobuf.ByteString + getHostnameBytes() { java.lang.Object ref = hostname_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); hostname_ = b; return b; } else { @@ -962,76 +907,66 @@ public com.google.protobuf.ByteString getHostnameBytes() { } } /** - * - * *
      * Required. Hostname for the Oracle connection.
      * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The hostname to set. * @return This builder for chaining. */ - public Builder setHostname(java.lang.String value) { + 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 @@ -1039,36 +974,30 @@ 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; @@ -1076,20 +1005,18 @@ public Builder clearPort() { private java.lang.Object username_ = ""; /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); username_ = s; return s; @@ -1098,21 +1025,20 @@ public java.lang.String getUsername() { } } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - public com.google.protobuf.ByteString getUsernameBytes() { + public com.google.protobuf.ByteString + getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); username_ = b; return b; } else { @@ -1120,61 +1046,54 @@ public com.google.protobuf.ByteString getUsernameBytes() { } } /** - * - * *
      * Required. Username for the Oracle connection.
      * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The username to set. * @return This builder for chaining. */ - public Builder setUsername(java.lang.String value) { + 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; @@ -1182,20 +1101,18 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { private java.lang.Object password_ = ""; /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); password_ = s; return s; @@ -1204,21 +1121,20 @@ public java.lang.String getPassword() { } } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - public com.google.protobuf.ByteString getPasswordBytes() { + public com.google.protobuf.ByteString + getPasswordBytes() { java.lang.Object ref = password_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); password_ = b; return b; } else { @@ -1226,61 +1142,54 @@ public com.google.protobuf.ByteString getPasswordBytes() { } } /** - * - * *
      * Required. Password for the Oracle connection.
      * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The password to set. * @return This builder for chaining. */ - public Builder setPassword(java.lang.String value) { + 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; @@ -1288,20 +1197,18 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private java.lang.Object databaseService_ = ""; /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ public java.lang.String getDatabaseService() { java.lang.Object ref = databaseService_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); databaseService_ = s; return s; @@ -1310,21 +1217,20 @@ public java.lang.String getDatabaseService() { } } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ - public com.google.protobuf.ByteString getDatabaseServiceBytes() { + public com.google.protobuf.ByteString + getDatabaseServiceBytes() { java.lang.Object ref = databaseService_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); databaseService_ = b; return b; } else { @@ -1332,85 +1238,75 @@ public com.google.protobuf.ByteString getDatabaseServiceBytes() { } } /** - * - * *
      * Required. Database for the Oracle connection.
      * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The databaseService to set. * @return This builder for chaining. */ - public Builder setDatabaseService(java.lang.String value) { + 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 connectionAttributes_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> connectionAttributes_; private com.google.protobuf.MapField - internalGetConnectionAttributes() { + internalGetConnectionAttributes() { if (connectionAttributes_ == null) { return com.google.protobuf.MapField.emptyMapField( ConnectionAttributesDefaultEntryHolder.defaultEntry); } return connectionAttributes_; } - 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(); @@ -1422,30 +1318,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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
      * 
@@ -1453,12 +1347,11 @@ 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
      * 
@@ -1466,18 +1359,16 @@ 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 java.lang.NullPointerException(); - } + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Connection string attributes
      * 
@@ -1485,10 +1376,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 java.lang.NullPointerException(); - } + + public java.lang.String getConnectionAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1498,66 +1389,66 @@ public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableConnectionAttributes().getMutableMap().remove(key); + + public Builder removeConnectionAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableConnectionAttributes().getMutableMap().put(key, value); + public Builder putConnectionAttributes( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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); } @@ -1567,12 +1458,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(); } @@ -1581,16 +1472,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; @@ -1605,4 +1496,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleProfile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java index 1a207bfd..464b99f9 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleProfileOrBuilder.java @@ -1,144 +1,103 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleProfileOrBuilder - extends +public interface OracleProfileOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleProfile) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The hostname. */ java.lang.String getHostname(); /** - * - * *
    * Required. Hostname for the Oracle connection.
    * 
* * string hostname = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for hostname. */ - com.google.protobuf.ByteString getHostnameBytes(); + com.google.protobuf.ByteString + getHostnameBytes(); /** - * - * *
    * Port for the Oracle connection, default value is 1521.
    * 
* * int32 port = 2; - * * @return The port. */ int getPort(); /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The username. */ java.lang.String getUsername(); /** - * - * *
    * Required. Username for the Oracle connection.
    * 
* * string username = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for username. */ - com.google.protobuf.ByteString getUsernameBytes(); + com.google.protobuf.ByteString + getUsernameBytes(); /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The password. */ java.lang.String getPassword(); /** - * - * *
    * Required. Password for the Oracle connection.
    * 
* * string password = 4 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for password. */ - com.google.protobuf.ByteString getPasswordBytes(); + com.google.protobuf.ByteString + getPasswordBytes(); /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The databaseService. */ java.lang.String getDatabaseService(); /** - * - * *
    * Required. Database for the Oracle connection.
    * 
* * string database_service = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for databaseService. */ - com.google.protobuf.ByteString getDatabaseServiceBytes(); + com.google.protobuf.ByteString + getDatabaseServiceBytes(); /** - * - * *
    * Connection string attributes
    * 
@@ -147,47 +106,48 @@ public interface OracleProfileOrBuilder */ int getConnectionAttributesCount(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - boolean containsConnectionAttributes(java.lang.String key); - /** Use {@link #getConnectionAttributesMap()} instead. */ + boolean containsConnectionAttributes( + java.lang.String key); + /** + * Use {@link #getConnectionAttributesMap()} instead. + */ @java.lang.Deprecated - java.util.Map getConnectionAttributes(); + java.util.Map + getConnectionAttributes(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ - java.util.Map getConnectionAttributesMap(); + java.util.Map + getConnectionAttributesMap(); /** - * - * *
    * Connection string attributes
    * 
* * map<string, string> connection_attributes = 6; */ + java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, java.lang.String defaultValue); + java.lang.String key, + 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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java similarity index 75% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java index a9e4f522..8884b8e9 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbms.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -71,32 +54,29 @@ private OracleRdbms( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleSchemas_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + oracleSchemas_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.OracleSchema.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -105,27 +85,22 @@ 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.
    * 
@@ -137,8 +112,6 @@ public java.util.List getOrac return oracleSchemas_; } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -146,13 +119,11 @@ public java.util.List getOrac * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ @java.lang.Override - public java.util.List + public java.util.List getOracleSchemasOrBuilderList() { return oracleSchemas_; } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -164,8 +135,6 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -177,8 +146,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in return oracleSchemas_.get(index); } /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -192,7 +159,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,7 +170,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < oracleSchemas_.size(); i++) { output.writeMessage(1, oracleSchemas_.get(i)); } @@ -218,7 +185,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < oracleSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, oracleSchemas_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, oracleSchemas_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -228,15 +196,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; } @@ -257,127 +225,118 @@ 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() @@ -385,17 +344,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(); @@ -409,9 +368,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 @@ -430,8 +389,7 @@ 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)) { @@ -450,39 +408,38 @@ 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; @@ -490,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleRdbms other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) return this; if (oracleSchemasBuilder_ == null) { if (!other.oracleSchemas_.isEmpty()) { if (oracleSchemas_.isEmpty()) { @@ -510,10 +466,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleRdbms other) oracleSchemasBuilder_ = null; oracleSchemas_ = other.oracleSchemas_; bitField0_ = (bitField0_ & ~0x00000001); - oracleSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getOracleSchemasFieldBuilder() - : null; + oracleSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getOracleSchemasFieldBuilder() : null; } else { oracleSchemasBuilder_.addAllMessages(other.oracleSchemas_); } @@ -547,38 +502,28 @@ 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 { @@ -586,8 +531,6 @@ private void ensureOracleSchemasIsMutable() { } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -602,8 +545,6 @@ public int getOracleSchemasCount() { } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -618,8 +559,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -641,8 +580,6 @@ public Builder setOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -661,8 +598,6 @@ public Builder setOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -683,8 +618,6 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1alpha1.OracleSchem return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -706,8 +639,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -726,8 +657,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -746,8 +675,6 @@ public Builder addOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -758,7 +685,8 @@ public Builder addAllOracleSchemas( java.lang.Iterable values) { if (oracleSchemasBuilder_ == null) { ensureOracleSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleSchemas_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleSchemas_); onChanged(); } else { oracleSchemasBuilder_.addAllMessages(values); @@ -766,8 +694,6 @@ public Builder addAllOracleSchemas( return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -785,8 +711,6 @@ public Builder clearOracleSchemas() { return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -804,8 +728,6 @@ public Builder removeOracleSchemas(int index) { return this; } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -817,8 +739,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema return getOracleSchemasFieldBuilder().getBuilder(index); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -828,22 +748,19 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( int index) { if (oracleSchemasBuilder_ == null) { - return oracleSchemas_.get(index); - } else { + return oracleSchemas_.get(index); } else { return oracleSchemasBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasOrBuilderList() { + public java.util.List + getOracleSchemasOrBuilderList() { if (oracleSchemasBuilder_ != null) { return oracleSchemasBuilder_.getMessageOrBuilderList(); } else { @@ -851,8 +768,6 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -860,12 +775,10 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchemasBuilder() { - return getOracleSchemasFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
@@ -874,35 +787,26 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchema */ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder addOracleSchemasBuilder( int index) { - return getOracleSchemasFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); + return getOracleSchemasFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()); } /** - * - * *
      * Oracle schemas/databases in the database server.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - public java.util.List - getOracleSchemasBuilderList() { + public java.util.List + getOracleSchemasBuilderList() { return getOracleSchemasFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder> getOracleSchemasFieldBuilder() { if (oracleSchemasBuilder_ == null) { - oracleSchemasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSchema, - com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder>( + oracleSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleSchema, com.google.cloud.datastream.v1alpha1.OracleSchema.Builder, com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder>( oracleSchemas_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -911,9 +815,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); } @@ -923,12 +827,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(); } @@ -937,16 +841,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; @@ -961,4 +865,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleRdbms getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java index 289431c5..82b3cf95 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleRdbmsOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleRdbmsOrBuilder - extends +public interface OracleRdbmsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleRdbms) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - java.util.List getOracleSchemasList(); + java.util.List + getOracleSchemasList(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -44,8 +25,6 @@ public interface OracleRdbmsOrBuilder */ com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int index); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
@@ -54,24 +33,21 @@ public interface OracleRdbmsOrBuilder */ int getOracleSchemasCount(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - java.util.List + java.util.List getOracleSchemasOrBuilderList(); /** - * - * *
    * Oracle schemas/databases in the database server.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleSchema oracle_schemas = 1; */ - com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchemasOrBuilder( + int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java similarity index 74% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java index 66de52ae..dbceebba 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchema.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle schema.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleSchema} */ -public final class OracleSchema extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleSchema extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleSchema) OracleSchemaOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleSchema.newBuilder() to construct. private OracleSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleSchema() { schemaName_ = ""; oracleTables_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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) @@ -72,39 +55,35 @@ 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; - } - oracleTables_.add( - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleTable.parser(), - extensionRegistry)); - break; + schemaName_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleTables_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + oracleTables_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.OracleTable.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -113,33 +92,27 @@ 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 @@ -148,29 +121,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 { @@ -181,8 +154,6 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { public static final int ORACLE_TABLES_FIELD_NUMBER = 2; private java.util.List oracleTables_; /** - * - * *
    * Tables in the schema.
    * 
@@ -194,8 +165,6 @@ public java.util.List getOracl return oracleTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -203,13 +172,11 @@ public java.util.List getOracl * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ @java.lang.Override - public java.util.List + public java.util.List getOracleTablesOrBuilderList() { return oracleTables_; } /** - * - * *
    * Tables in the schema.
    * 
@@ -221,8 +188,6 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** - * - * *
    * Tables in the schema.
    * 
@@ -234,8 +199,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde return oracleTables_.get(index); } /** - * - * *
    * Tables in the schema.
    * 
@@ -249,7 +212,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +223,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); } @@ -281,7 +244,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); } for (int i = 0; i < oracleTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleTables_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, oracleTables_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,16 +255,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.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; } @@ -324,126 +289,117 @@ 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() @@ -451,17 +407,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(); @@ -477,9 +433,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 @@ -498,8 +454,7 @@ 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) { @@ -519,39 +474,38 @@ 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; @@ -559,8 +513,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSchema other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleSchema.getDefaultInstance()) return this; if (!other.getSchemaName().isEmpty()) { schemaName_ = other.schemaName_; onChanged(); @@ -583,10 +536,9 @@ 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_); } @@ -611,8 +563,7 @@ 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) { @@ -621,25 +572,22 @@ 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; @@ -648,21 +596,20 @@ public java.lang.String getSchemaName() { } } /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @return The bytes for schemaName. */ - public com.google.protobuf.ByteString getSchemaNameBytes() { + public com.google.protobuf.ByteString + getSchemaNameBytes() { java.lang.Object ref = schemaName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schemaName_ = b; return b; } else { @@ -670,87 +617,72 @@ public com.google.protobuf.ByteString getSchemaNameBytes() { } } /** - * - * *
      * Schema name.
      * 
* * string schema_name = 1; - * * @param value The schemaName to set. * @return This builder for chaining. */ - public Builder setSchemaName(java.lang.String value) { + 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.
      * 
@@ -765,8 +697,6 @@ public java.util.List getOracl } } /** - * - * *
      * Tables in the schema.
      * 
@@ -781,8 +711,6 @@ public int getOracleTablesCount() { } } /** - * - * *
      * Tables in the schema.
      * 
@@ -797,8 +725,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde } } /** - * - * *
      * Tables in the schema.
      * 
@@ -820,8 +746,6 @@ public Builder setOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -840,8 +764,6 @@ public Builder setOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -862,8 +784,6 @@ public Builder addOracleTables(com.google.cloud.datastream.v1alpha1.OracleTable return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -885,8 +805,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -905,8 +823,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -925,8 +841,6 @@ public Builder addOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -937,7 +851,8 @@ public Builder addAllOracleTables( java.lang.Iterable values) { if (oracleTablesBuilder_ == null) { ensureOracleTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleTables_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, oracleTables_); onChanged(); } else { oracleTablesBuilder_.addAllMessages(values); @@ -945,8 +860,6 @@ public Builder addAllOracleTables( return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -964,8 +877,6 @@ public Builder clearOracleTables() { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -983,8 +894,6 @@ public Builder removeOracleTables(int index) { return this; } /** - * - * *
      * Tables in the schema.
      * 
@@ -996,8 +905,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB return getOracleTablesFieldBuilder().getBuilder(index); } /** - * - * *
      * Tables in the schema.
      * 
@@ -1007,22 +914,19 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder( int index) { if (oracleTablesBuilder_ == null) { - return oracleTables_.get(index); - } else { + return oracleTables_.get(index); } else { return oracleTablesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesOrBuilderList() { + public java.util.List + getOracleTablesOrBuilderList() { if (oracleTablesBuilder_ != null) { return oracleTablesBuilder_.getMessageOrBuilderList(); } else { @@ -1030,8 +934,6 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } } /** - * - * *
      * Tables in the schema.
      * 
@@ -1039,12 +941,10 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesBuilder() { - return getOracleTablesFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
@@ -1053,42 +953,37 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesB */ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder addOracleTablesBuilder( int index) { - return getOracleTablesFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); + return getOracleTablesFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()); } /** - * - * *
      * Tables in the schema.
      * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - public java.util.List - getOracleTablesBuilderList() { + public java.util.List + getOracleTablesBuilderList() { return getOracleTablesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder, - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleTable, com.google.cloud.datastream.v1alpha1.OracleTable.Builder, com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder> getOracleTablesFieldBuilder() { if (oracleTablesBuilder_ == null) { - oracleTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleTable, - com.google.cloud.datastream.v1alpha1.OracleTable.Builder, - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder>( - oracleTables_, ((bitField0_ & 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); } @@ -1098,12 +993,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(); } @@ -1112,16 +1007,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; @@ -1136,4 +1031,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSchema getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java index b102cf53..639a404f 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSchemaOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleSchemaOrBuilder - extends +public interface OracleSchemaOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleSchema) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Schema name.
    * 
* * string schema_name = 1; - * * @return The schemaName. */ java.lang.String getSchemaName(); /** - * - * *
    * Schema name.
    * 
* * string schema_name = 1; - * * @return The bytes for schemaName. */ - com.google.protobuf.ByteString getSchemaNameBytes(); + com.google.protobuf.ByteString + getSchemaNameBytes(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - java.util.List getOracleTablesList(); + java.util.List + getOracleTablesList(); /** - * - * *
    * Tables in the schema.
    * 
@@ -69,8 +45,6 @@ public interface OracleSchemaOrBuilder */ com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int index); /** - * - * *
    * Tables in the schema.
    * 
@@ -79,24 +53,21 @@ public interface OracleSchemaOrBuilder */ int getOracleTablesCount(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - java.util.List + java.util.List getOracleTablesOrBuilderList(); /** - * - * *
    * Tables in the schema.
    * 
* * repeated .google.cloud.datastream.v1alpha1.OracleTable oracle_tables = 2; */ - com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTablesOrBuilder( + int index); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java index f24cf7fb..ead90b1f 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -68,83 +52,72 @@ 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 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 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; + rejectlist_ = input.readMessage(com.google.cloud.datastream.v1alpha1.OracleRdbms.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(rejectlist_); + rejectlist_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -152,25 +125,18 @@ public boolean hasAllowlist() { return allowlist_ != null; } /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return The allowlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist() { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; } /** - * - * *
    * Oracle objects to include in the stream.
    * 
@@ -185,14 +151,11 @@ 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 @@ -200,25 +163,18 @@ public boolean hasRejectlist() { return rejectlist_ != null; } /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return The rejectlist. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist() { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; } /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
@@ -231,7 +187,6 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +198,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (allowlist_ != null) { output.writeMessage(1, getAllowlist()); } @@ -260,10 +216,12 @@ public int getSerializedSize() { size = 0; if (allowlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAllowlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAllowlist()); } if (rejectlist_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRejectlist()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRejectlist()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,21 +231,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleSourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.OracleSourceConfig other = - (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) obj; + com.google.cloud.datastream.v1alpha1.OracleSourceConfig other = (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) obj; if (hasAllowlist() != other.hasAllowlist()) return false; if (hasAllowlist()) { - if (!getAllowlist().equals(other.getAllowlist())) return false; + if (!getAllowlist() + .equals(other.getAllowlist())) return false; } if (hasRejectlist() != other.hasRejectlist()) return false; if (hasRejectlist()) { - if (!getRejectlist().equals(other.getRejectlist())) return false; + if (!getRejectlist() + .equals(other.getRejectlist())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -314,127 +273,117 @@ 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() @@ -442,15 +391,16 @@ 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(); @@ -470,9 +420,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 @@ -491,8 +441,7 @@ 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 { @@ -511,39 +460,38 @@ 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; @@ -551,8 +499,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleSourceConfig other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) return this; if (other.hasAllowlist()) { mergeAllowlist(other.getAllowlist()); } @@ -578,8 +525,7 @@ 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) { @@ -591,47 +537,34 @@ 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.
      * 
@@ -652,8 +585,6 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms val return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -672,8 +603,6 @@ public Builder setAllowlist( return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -684,9 +613,7 @@ 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; } @@ -698,8 +625,6 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -718,8 +643,6 @@ public Builder clearAllowlist() { return this; } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -727,13 +650,11 @@ 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.
      * 
@@ -744,14 +665,11 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB if (allowlistBuilder_ != null) { return allowlistBuilder_.getMessageOrBuilder(); } else { - return allowlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : allowlist_; + return allowlist_ == null ? + com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : allowlist_; } } /** - * - * *
      * Oracle objects to include in the stream.
      * 
@@ -759,17 +677,14 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getAllowlistFieldBuilder() { if (allowlistBuilder_ == null) { - allowlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( - getAllowlist(), getParentForChildren(), isClean()); + allowlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + getAllowlist(), + getParentForChildren(), + isClean()); allowlist_ = null; } return allowlistBuilder_; @@ -777,47 +692,34 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrB private com.google.cloud.datastream.v1alpha1.OracleRdbms rejectlist_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> - rejectlistBuilder_; + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> rejectlistBuilder_; /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ public boolean hasRejectlist() { return 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.
      * 
@@ -838,8 +740,6 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms va return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -858,8 +758,6 @@ public Builder setRejectlist( return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -870,9 +768,7 @@ 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; } @@ -884,8 +780,6 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -904,8 +798,6 @@ public Builder clearRejectlist() { return this; } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -913,13 +805,11 @@ 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.
      * 
@@ -930,14 +820,11 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr if (rejectlistBuilder_ != null) { return rejectlistBuilder_.getMessageOrBuilder(); } else { - return rejectlist_ == null - ? com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() - : rejectlist_; + return rejectlist_ == null ? + com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance() : rejectlist_; } } /** - * - * *
      * Oracle objects to exclude from the stream.
      * 
@@ -945,24 +832,21 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getRejectlistFieldBuilder() { if (rejectlistBuilder_ == null) { - rejectlistBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( - getRejectlist(), getParentForChildren(), isClean()); + rejectlistBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + getRejectlist(), + getParentForChildren(), + isClean()); rejectlist_ = null; } return rejectlistBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +856,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(); } @@ -986,16 +870,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; @@ -1010,4 +894,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java similarity index 71% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java index 2a8dd4e1..351b94f3 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleSourceConfigOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface OracleSourceConfigOrBuilder - extends +public interface OracleSourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleSourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return Whether the allowlist field is set. */ boolean hasAllowlist(); /** - * - * *
    * Oracle objects to include in the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms allowlist = 1; - * * @return The allowlist. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getAllowlist(); /** - * - * *
    * Oracle objects to include in the stream.
    * 
@@ -59,32 +35,24 @@ public interface OracleSourceConfigOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getAllowlistOrBuilder(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return Whether the rejectlist field is set. */ boolean hasRejectlist(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms rejectlist = 2; - * * @return The rejectlist. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getRejectlist(); /** - * - * *
    * Oracle objects to exclude from the stream.
    * 
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java similarity index 76% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java index baf7109c..a1474415 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTable.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Oracle table.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.OracleTable} */ -public final class OracleTable extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OracleTable extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.OracleTable) OracleTableOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OracleTable.newBuilder() to construct. private OracleTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OracleTable() { tableName_ = ""; oracleColumns_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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) @@ -72,39 +55,35 @@ 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; - } - oracleColumns_.add( - input.readMessage( - com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), - extensionRegistry)); - break; + tableName_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oracleColumns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + oracleColumns_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.OracleColumn.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -113,33 +92,27 @@ 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 @@ -148,29 +121,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 { @@ -181,8 +154,6 @@ public com.google.protobuf.ByteString getTableNameBytes() { 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
@@ -196,8 +167,6 @@ public java.util.List getOrac
     return oracleColumns_;
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -207,13 +176,11 @@ public java.util.List getOrac
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getOracleColumnsOrBuilderList() {
     return oracleColumns_;
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -227,8 +194,6 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -242,8 +207,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int in
     return oracleColumns_.get(index);
   }
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -259,7 +222,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -271,7 +233,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -291,7 +254,8 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tableName_);
     }
     for (int i = 0; i < oracleColumns_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, oracleColumns_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, oracleColumns_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -301,16 +265,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.datastream.v1alpha1.OracleTable)) {
       return super.equals(obj);
     }
-    com.google.cloud.datastream.v1alpha1.OracleTable other =
-        (com.google.cloud.datastream.v1alpha1.OracleTable) obj;
+    com.google.cloud.datastream.v1alpha1.OracleTable other = (com.google.cloud.datastream.v1alpha1.OracleTable) obj;
 
-    if (!getTableName().equals(other.getTableName())) return false;
-    if (!getOracleColumnsList().equals(other.getOracleColumnsList())) return false;
+    if (!getTableName()
+        .equals(other.getTableName())) return false;
+    if (!getOracleColumnsList()
+        .equals(other.getOracleColumnsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -333,127 +298,118 @@ 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() @@ -461,17 +417,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(); @@ -487,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_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 @@ -508,8 +464,7 @@ 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) { @@ -529,39 +484,38 @@ 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; @@ -569,8 +523,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.OracleTable other) { - if (other == com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.OracleTable.getDefaultInstance()) return this; if (!other.getTableName().isEmpty()) { tableName_ = other.tableName_; onChanged(); @@ -593,10 +546,9 @@ 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_); } @@ -630,25 +582,22 @@ 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; @@ -657,21 +606,20 @@ public java.lang.String getTableName() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - public com.google.protobuf.ByteString getTableNameBytes() { + public com.google.protobuf.ByteString + getTableNameBytes() { java.lang.Object ref = tableName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); tableName_ = b; return b; } else { @@ -679,87 +627,72 @@ public com.google.protobuf.ByteString getTableNameBytes() { } } /** - * - * *
      * Table name.
      * 
* * string table_name = 1; - * * @param value The tableName to set. * @return This builder for chaining. */ - public Builder setTableName(java.lang.String value) { + 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
@@ -768,8 +701,7 @@ private void ensureOracleColumnsIsMutable() {
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsList() {
+    public java.util.List getOracleColumnsList() {
       if (oracleColumnsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(oracleColumns_);
       } else {
@@ -777,8 +709,6 @@ private void ensureOracleColumnsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -795,8 +725,6 @@ public int getOracleColumnsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -813,8 +741,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int in
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -838,8 +764,6 @@ public Builder setOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -860,8 +784,6 @@ public Builder setOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -884,8 +806,6 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1alpha1.OracleColum
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -909,8 +829,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -931,8 +849,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -953,8 +869,6 @@ public Builder addOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -967,7 +881,8 @@ public Builder addAllOracleColumns(
         java.lang.Iterable values) {
       if (oracleColumnsBuilder_ == null) {
         ensureOracleColumnsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, oracleColumns_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, oracleColumns_);
         onChanged();
       } else {
         oracleColumnsBuilder_.addAllMessages(values);
@@ -975,8 +890,6 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -996,8 +909,6 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1017,8 +928,6 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1032,8 +941,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder getOracleColumn
       return getOracleColumnsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1045,14 +952,11 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder getOracleColumn
     public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
         int index) {
       if (oracleColumnsBuilder_ == null) {
-        return oracleColumns_.get(index);
-      } else {
+        return oracleColumns_.get(index);  } else {
         return oracleColumnsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1061,8 +965,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 {
@@ -1070,8 +974,6 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
       }
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1081,12 +983,10 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
     public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumnsBuilder() {
-      return getOracleColumnsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1097,13 +997,10 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
      */
     public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumnsBuilder(
         int index) {
-      return getOracleColumnsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
+      return getOracleColumnsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1alpha1.OracleColumn.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -1112,22 +1009,16 @@ public com.google.cloud.datastream.v1alpha1.OracleColumn.Builder addOracleColumn
      *
      * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
      */
-    public java.util.List
-        getOracleColumnsBuilderList() {
+    public java.util.List 
+         getOracleColumnsBuilderList() {
       return getOracleColumnsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.OracleColumn,
-            com.google.cloud.datastream.v1alpha1.OracleColumn.Builder,
-            com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>
+        com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder> 
         getOracleColumnsFieldBuilder() {
       if (oracleColumnsBuilder_ == null) {
-        oracleColumnsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.OracleColumn,
-                com.google.cloud.datastream.v1alpha1.OracleColumn.Builder,
-                com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>(
+        oracleColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.OracleColumn, com.google.cloud.datastream.v1alpha1.OracleColumn.Builder, com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder>(
                 oracleColumns_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1136,9 +1027,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);
     }
 
@@ -1148,12 +1039,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();
   }
@@ -1162,16 +1053,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;
@@ -1186,4 +1077,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.OracleTable getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
similarity index 72%
rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
index effd7072..f47acc07 100644
--- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
+++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/OracleTableOrBuilder.java
@@ -1,56 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface OracleTableOrBuilder
-    extends
+public interface OracleTableOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.OracleTable)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Table name.
    * 
* * string table_name = 1; - * * @return The tableName. */ java.lang.String getTableName(); /** - * - * *
    * Table name.
    * 
* * string table_name = 1; - * * @return The bytes for tableName. */ - com.google.protobuf.ByteString getTableNameBytes(); + com.google.protobuf.ByteString + getTableNameBytes(); /** - * - * *
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -59,10 +36,9 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  java.util.List getOracleColumnsList();
+  java.util.List 
+      getOracleColumnsList();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -73,8 +49,6 @@ public interface OracleTableOrBuilder
    */
   com.google.cloud.datastream.v1alpha1.OracleColumn getOracleColumns(int index);
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -85,8 +59,6 @@ public interface OracleTableOrBuilder
    */
   int getOracleColumnsCount();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -95,11 +67,9 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  java.util.List
+  java.util.List 
       getOracleColumnsOrBuilderList();
   /**
-   *
-   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -108,5 +78,6 @@ public interface OracleTableOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.OracleColumn oracle_columns = 2;
    */
-  com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(int index);
+  com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColumnsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
similarity index 63%
rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
index e19e3423..60331095 100644
--- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
+++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnection.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
- *
- *
  * 
  * The PrivateConnection resource is used to establish private connectivity
  * between Datastream and a customer's network.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnection}
  */
-public final class PrivateConnection extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PrivateConnection extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.PrivateConnection)
     PrivateConnectionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PrivateConnection.newBuilder() to construct.
   private PrivateConnection(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PrivateConnection() {
     name_ = "";
     displayName_ = "";
@@ -46,15 +28,16 @@ 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)
@@ -74,163 +57,147 @@ 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;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          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;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = 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;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.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;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 48:
-            {
-              int rawValue = input.readEnum();
+            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();
 
-              state_ = rawValue;
-              break;
+            state_ = rawValue;
+            break;
+          }
+          case 58: {
+            com.google.cloud.datastream.v1alpha1.Error.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          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;
+            error_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Error.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = 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;
+          }
+          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();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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.
      * 
@@ -239,8 +206,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATING(1), /** - * - * *
      * The private connection has been created with all of it's resources.
      * 
@@ -249,8 +214,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(2), /** - * - * *
      * The private connection creation has failed.
      * 
@@ -261,11 +224,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** STATE_UNSPECIFIED = 0; */ + /** + * STATE_UNSPECIFIED = 0; + */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The private connection is in creation state - creating resources.
      * 
@@ -274,8 +237,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATING_VALUE = 1; /** - * - * *
      * The private connection has been created with all of it's resources.
      * 
@@ -284,8 +245,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 2; /** - * - * *
      * The private connection creation has failed.
      * 
@@ -294,6 +253,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -318,53 +278,50 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return CREATING; - case 2: - return CREATED; - case 3: - return FAILED; - default: - return null; + case 0: return STATE_UNSPECIFIED; + case 1: return CREATING; + case 2: return CREATED; + case 3: return FAILED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.PrivateConnection.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.PrivateConnection.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -384,14 +341,11 @@ 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 @@ -400,29 +354,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 { @@ -433,15 +387,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -449,15 +399,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -465,14 +411,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -482,15 +425,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -498,15 +437,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -514,14 +449,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -529,23 +461,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -554,30 +487,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -585,12 +516,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -598,16 +528,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -615,11 +545,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -629,14 +560,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { 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 @@ -645,29 +573,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 { @@ -678,58 +606,38 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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 @@ -737,34 +645,23 @@ 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() { @@ -774,14 +671,11 @@ 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 @@ -789,25 +683,18 @@ public boolean hasVpcPeeringConfig() { return vpcPeeringConfig_ != null; } /** - * - * *
    * VPC Peering Config
    * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return The vpcPeeringConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig() { - return vpcPeeringConfig_ == null - ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() - : vpcPeeringConfig_; + return vpcPeeringConfig_ == null ? com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance() : vpcPeeringConfig_; } /** - * - * *
    * VPC Peering Config
    * 
@@ -815,13 +702,11 @@ public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getVpcPeeringConfig * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder - getVpcPeeringConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder getVpcPeeringConfigOrBuilder() { return getVpcPeeringConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -833,7 +718,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -843,14 +729,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } - if (state_ - != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(6, state_); } if (error_ != null) { @@ -872,34 +760,37 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } - if (state_ - != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + if (state_ != com.google.cloud.datastream.v1alpha1.PrivateConnection.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, state_); } if (error_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getError()); } if (vpcPeeringConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(100, getVpcPeeringConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, getVpcPeeringConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -909,33 +800,39 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.PrivateConnection)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.PrivateConnection other = - (com.google.cloud.datastream.v1alpha1.PrivateConnection) obj; + com.google.cloud.datastream.v1alpha1.PrivateConnection other = (com.google.cloud.datastream.v1alpha1.PrivateConnection) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (state_ != other.state_) return false; if (hasError() != other.hasError()) return false; if (hasError()) { - if (!getError().equals(other.getError())) return false; + if (!getError() + .equals(other.getError())) return false; } if (hasVpcPeeringConfig() != other.hasVpcPeeringConfig()) return false; if (hasVpcPeeringConfig()) { - if (!getVpcPeeringConfig().equals(other.getVpcPeeringConfig())) return false; + if (!getVpcPeeringConfig() + .equals(other.getVpcPeeringConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -980,104 +877,96 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.PrivateConnection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.PrivateConnection prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.PrivateConnection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The PrivateConnection resource is used to establish private connectivity
    * between Datastream and a customer's network.
@@ -1085,43 +974,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.PrivateConnection}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.PrivateConnection)
       com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.PrivateConnection.class,
-              com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
+              com.google.cloud.datastream.v1alpha1.PrivateConnection.class, com.google.cloud.datastream.v1alpha1.PrivateConnection.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.PrivateConnection.newBuilder()
@@ -1129,15 +1018,16 @@ 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();
@@ -1176,9 +1066,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
@@ -1197,8 +1087,7 @@ 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) {
@@ -1233,39 +1122,38 @@ 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;
@@ -1273,8 +1161,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnection other) {
-      if (other == com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1alpha1.PrivateConnection.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1285,7 +1172,8 @@ 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();
@@ -1318,8 +1206,7 @@ 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) {
@@ -1328,25 +1215,22 @@ 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; @@ -1355,21 +1239,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1377,61 +1260,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -1439,58 +1315,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return 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) { @@ -1506,17 +1363,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1527,21 +1381,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1553,15 +1403,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1575,64 +1421,48 @@ 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_; @@ -1640,58 +1470,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return 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) { @@ -1707,17 +1518,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1728,21 +1536,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1754,15 +1558,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1776,84 +1576,69 @@ 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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - 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(); @@ -1865,30 +1650,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -1896,12 +1679,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -1909,17 +1691,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -1927,11 +1708,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1939,79 +1721,78 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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; @@ -2020,21 +1801,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -2042,61 +1822,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + 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; @@ -2104,75 +1877,51 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. The state of the Private Connection.
      * 
* - * - * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.PrivateConnection.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ 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. */ @@ -2180,26 +1929,21 @@ 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; @@ -2207,58 +1951,39 @@ public Builder clearState() { private com.google.cloud.datastream.v1alpha1.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> - errorBuilder_; + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> errorBuilder_; /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the error field is set. */ public boolean hasError() { return 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) { @@ -2274,17 +1999,14 @@ public Builder setError(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setError(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder setError( + com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -2295,23 +2017,17 @@ public Builder setError(com.google.cloud.datastream.v1alpha1.Error.Builder build return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeError(com.google.cloud.datastream.v1alpha1.Error value) { if (errorBuilder_ == null) { if (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; } @@ -2323,15 +2039,11 @@ public Builder mergeError(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * Output only. In case of error, the details of the error in a user-friendly format.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.datastream.v1alpha1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { if (errorBuilder_ == null) { @@ -2345,64 +2057,48 @@ 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_; @@ -2410,55 +2106,41 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorOrBuilder() { private com.google.cloud.datastream.v1alpha1.VpcPeeringConfig vpcPeeringConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> - vpcPeeringConfigBuilder_; + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> vpcPeeringConfigBuilder_; /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; - * * @return Whether the vpcPeeringConfig field is set. */ public boolean hasVpcPeeringConfig() { return 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(); @@ -2472,8 +2154,6 @@ public Builder setVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config
      * 
@@ -2492,22 +2172,17 @@ public Builder setVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public Builder mergeVpcPeeringConfig( - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { + public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig value) { if (vpcPeeringConfigBuilder_ == null) { if (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; } @@ -2519,8 +2194,6 @@ public Builder mergeVpcPeeringConfig( return this; } /** - * - * *
      * VPC Peering Config
      * 
@@ -2539,42 +2212,33 @@ public Builder clearVpcPeeringConfig() { return this; } /** - * - * *
      * VPC Peering Config
      * 
* * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ - public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder - getVpcPeeringConfigBuilder() { - + public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder getVpcPeeringConfigBuilder() { + 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
      * 
@@ -2582,24 +2246,21 @@ public Builder clearVpcPeeringConfig() { * .google.cloud.datastream.v1alpha1.VpcPeeringConfig vpc_peering_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder> getVpcPeeringConfigFieldBuilder() { if (vpcPeeringConfigBuilder_ == null) { - vpcPeeringConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, - com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder>( - getVpcPeeringConfig(), getParentForChildren(), isClean()); + vpcPeeringConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder, com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder>( + getVpcPeeringConfig(), + getParentForChildren(), + isClean()); vpcPeeringConfig_ = null; } return vpcPeeringConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2609,12 +2270,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(); } @@ -2623,16 +2284,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; @@ -2647,4 +2308,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionName.java diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java index ceffcbba..472f75fc 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectionOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface PrivateConnectionOrBuilder - extends +public interface PrivateConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,171 +90,136 @@ public interface PrivateConnectionOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + 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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java index de9d53cd..5896395b 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivity.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -70,52 +53,48 @@ 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; - } - break; + privateConnectionName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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 @@ -124,7 +103,8 @@ public java.lang.String getPrivateConnectionName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); privateConnectionName_ = s; return s; @@ -132,15 +112,16 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionName. */ @java.lang.Override - public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionNameBytes() { java.lang.Object ref = privateConnectionName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionName_ = b; return b; } else { @@ -149,7 +130,6 @@ public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,7 +141,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(privateConnectionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnectionName_); } @@ -185,15 +166,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; } @@ -213,127 +194,117 @@ 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() @@ -341,15 +312,16 @@ 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(); @@ -359,9 +331,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 @@ -380,8 +352,7 @@ 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; @@ -391,39 +362,38 @@ 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; @@ -431,8 +401,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.PrivateConnectivity other) { - if (other == com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.PrivateConnectivity.getDefaultInstance()) return this; if (!other.getPrivateConnectionName().isEmpty()) { privateConnectionName_ = other.privateConnectionName_; onChanged(); @@ -456,8 +425,7 @@ 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) { @@ -470,13 +438,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; @@ -486,14 +454,15 @@ public java.lang.String getPrivateConnectionName() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for privateConnectionName. */ - public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { + public com.google.protobuf.ByteString + getPrivateConnectionNameBytes() { java.lang.Object ref = privateConnectionName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); privateConnectionName_ = b; return b; } else { @@ -502,49 +471,48 @@ public com.google.protobuf.ByteString getPrivateConnectionNameBytes() { } /** * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The privateConnectionName to set. * @return This builder for chaining. */ - public Builder setPrivateConnectionName(java.lang.String value) { + 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); } @@ -554,12 +522,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(); } @@ -568,16 +536,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; @@ -592,4 +560,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.PrivateConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + 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 new file mode 100644 index 00000000..fcc6ed47 --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java @@ -0,0 +1,21 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface PrivateConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnectivity) + com.google.protobuf.MessageOrBuilder { + + /** + * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The privateConnectionName. + */ + java.lang.String getPrivateConnectionName(); + /** + * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for privateConnectionName. + */ + com.google.protobuf.ByteString + getPrivateConnectionNameBytes(); +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java index 53d8c764..8733f89a 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Route.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * The Route resource is the child of the PrivateConnection resource.
  * It used to define a route for a PrivateConnection setup.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.Route}
  */
-public final class Route extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Route extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Route)
     RouteOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Route.newBuilder() to construct.
   private Route(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Route() {
     name_ = "";
     displayName_ = "";
@@ -46,15 +28,16 @@ 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)
@@ -74,131 +57,120 @@ 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;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          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;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = 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;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.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;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labels_ = com.google.protobuf.MapField.newMapField(
+                  LabelsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            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();
 
-              destinationAddress_ = s;
-              break;
-            }
-          case 56:
-            {
-              destinationPort_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            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;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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 @@ -207,29 +179,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -240,15 +212,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -256,15 +224,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -272,14 +236,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -289,15 +250,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -305,15 +262,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -321,14 +274,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -336,23 +286,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -361,30 +312,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -392,12 +341,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -405,16 +353,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -422,11 +370,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -436,14 +385,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { 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 @@ -452,29 +398,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** - * - * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -485,14 +431,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { 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 @@ -501,29 +444,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 { @@ -534,14 +477,11 @@ public com.google.protobuf.ByteString getDestinationAddressBytes() { 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 @@ -550,7 +490,6 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -562,7 +501,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -572,8 +512,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -596,20 +540,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); @@ -618,7 +564,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationAddress_); } if (destinationPort_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, destinationPort_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, destinationPort_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -628,27 +575,33 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Route)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Route other = - (com.google.cloud.datastream.v1alpha1.Route) obj; + com.google.cloud.datastream.v1alpha1.Route other = (com.google.cloud.datastream.v1alpha1.Route) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDestinationAddress().equals(other.getDestinationAddress())) return false; - if (getDestinationPort() != other.getDestinationPort()) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDestinationAddress() + .equals(other.getDestinationAddress())) return false; + if (getDestinationPort() + != other.getDestinationPort()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -685,104 +638,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datastream.v1alpha1.Route parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Route parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Route parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Route prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The Route resource is the child of the PrivateConnection resource.
    * It used to define a route for a PrivateConnection setup.
@@ -790,43 +736,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.Route}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.Route)
       com.google.cloud.datastream.v1alpha1.RouteOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMutableMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMutableMapField(
+        int number) {
       switch (number) {
         case 4:
           return internalGetMutableLabels();
         default:
-          throw new RuntimeException("Invalid map field number: " + number);
+          throw new RuntimeException(
+              "Invalid map field number: " + number);
       }
     }
-
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.Route.class,
-              com.google.cloud.datastream.v1alpha1.Route.Builder.class);
+              com.google.cloud.datastream.v1alpha1.Route.class, com.google.cloud.datastream.v1alpha1.Route.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.Route.newBuilder()
@@ -834,15 +780,16 @@ 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();
@@ -871,9 +818,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
@@ -892,8 +839,7 @@ 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) {
@@ -919,39 +865,38 @@ 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;
@@ -970,7 +915,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Route other) {
       if (other.hasUpdateTime()) {
         mergeUpdateTime(other.getUpdateTime());
       }
-      internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      internalGetMutableLabels().mergeFrom(
+          other.internalGetLabels());
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -1010,25 +956,22 @@ 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; @@ -1037,21 +980,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1059,61 +1001,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The resource's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -1121,58 +1056,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return 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) { @@ -1188,17 +1104,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1209,21 +1122,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1235,15 +1144,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The create time of the resource.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1257,64 +1162,48 @@ 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_; @@ -1322,58 +1211,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return 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) { @@ -1389,17 +1259,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1410,21 +1277,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1436,15 +1299,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The update time of the resource.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -1458,84 +1317,69 @@ 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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - 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(); @@ -1547,30 +1391,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -1578,12 +1420,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -1591,17 +1432,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -1609,11 +1449,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1621,79 +1462,78 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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; @@ -1702,21 +1542,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -1724,61 +1563,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + 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; @@ -1786,20 +1618,18 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destinationAddress_ = ""; /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The destinationAddress. */ public java.lang.String getDestinationAddress() { java.lang.Object ref = destinationAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationAddress_ = s; return s; @@ -1808,21 +1638,20 @@ public java.lang.String getDestinationAddress() { } } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for destinationAddress. */ - public com.google.protobuf.ByteString getDestinationAddressBytes() { + public com.google.protobuf.ByteString + getDestinationAddressBytes() { java.lang.Object ref = destinationAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); destinationAddress_ = b; return b; } else { @@ -1830,76 +1659,66 @@ public com.google.protobuf.ByteString getDestinationAddressBytes() { } } /** - * - * *
      * Required. Destination address for connection
      * 
* * string destination_address = 6 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The destinationAddress to set. * @return This builder for chaining. */ - public Builder setDestinationAddress(java.lang.String value) { + 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 @@ -1907,43 +1726,37 @@ 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); } @@ -1953,12 +1766,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(); } @@ -1967,16 +1780,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; @@ -1991,4 +1804,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Route getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteName.java diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java index adab9b15..e3d175fe 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/RouteOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface RouteOrBuilder - extends +public interface RouteOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Route) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,108 +90,97 @@ public interface RouteOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + 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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java index 42be3f0d..c2b5caf8 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SchemaFileFormat.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Schema file format.
  * 
* * Protobuf enum {@code google.cloud.datastream.v1alpha1.SchemaFileFormat} */ -public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum { +public enum SchemaFileFormat + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified schema file format.
    * 
@@ -39,8 +21,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** - * - * *
    * Do not attach schema file.
    * 
@@ -49,8 +29,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ NO_SCHEMA_FILE(1), /** - * - * *
    * Avro schema format.
    * 
@@ -62,8 +40,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * Unspecified schema file format.
    * 
@@ -72,8 +48,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Do not attach schema file.
    * 
@@ -82,8 +56,6 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** - * - * *
    * Avro schema format.
    * 
@@ -92,6 +64,7 @@ public enum SchemaFileFormat implements com.google.protobuf.ProtocolMessageEnum */ public static final int AVRO_SCHEMA_FILE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,51 +89,49 @@ public static SchemaFileFormat valueOf(int value) { */ public static SchemaFileFormat forNumber(int value) { switch (value) { - case 0: - return SCHEMA_FILE_FORMAT_UNSPECIFIED; - case 1: - return NO_SCHEMA_FILE; - case 2: - return AVRO_SCHEMA_FILE; - default: - return null; + case 0: return SCHEMA_FILE_FORMAT_UNSPECIFIED; + case 1: return NO_SCHEMA_FILE; + case 2: return AVRO_SCHEMA_FILE; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaFileFormat findValueByNumber(int number) { - return SchemaFileFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + SchemaFileFormat> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SchemaFileFormat findValueByNumber(int number) { + return SchemaFileFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.getDescriptor().getEnumTypes().get(1); } private static final SchemaFileFormat[] VALUES = values(); - public static SchemaFileFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static SchemaFileFormat valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -176,3 +147,4 @@ private SchemaFileFormat(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.SchemaFileFormat) } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java similarity index 68% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java index 9fa9bda7..36cfc280 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfig.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -70,99 +53,81 @@ 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; + 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(); } - 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; + 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 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; + 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceStreamConfigCase_ = 101; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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; } @@ -178,38 +143,31 @@ 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 @@ -218,30 +176,29 @@ public java.lang.String getSourceConnectionProfileName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); sourceConnectionProfileName_ = s; return s; } } /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for sourceConnectionProfileName. */ @java.lang.Override - public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getSourceConnectionProfileNameBytes() { java.lang.Object ref = sourceConnectionProfileName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceConnectionProfileName_ = b; return b; } else { @@ -251,14 +208,11 @@ public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { public static final int ORACLE_SOURCE_CONFIG_FIELD_NUMBER = 100; /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ @java.lang.Override @@ -266,26 +220,21 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceConfig() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } /** - * - * *
    * Oracle data source configuration
    * 
@@ -293,24 +242,20 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceCo * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder - getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 100) { - return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } public static final int MYSQL_SOURCE_CONFIG_FIELD_NUMBER = 101; /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ @java.lang.Override @@ -318,26 +263,21 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConfig() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } /** - * - * *
    * MySQL data source configuration
    * 
@@ -345,16 +285,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConf * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder - getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if (sourceStreamConfigCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; + return (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_; } return com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -366,17 +304,16 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfileName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sourceConnectionProfileName_); } if (sourceStreamConfigCase_ == 100) { - output.writeMessage( - 100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + output.writeMessage(100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + output.writeMessage(101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); } unknownFields.writeTo(output); } @@ -388,18 +325,15 @@ public int getSerializedSize() { size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceConnectionProfileName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfileName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, sourceConnectionProfileName_); } if (sourceStreamConfigCase_ == 100) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(100, (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_); } if (sourceStreamConfigCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -409,23 +343,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.SourceConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.SourceConfig other = - (com.google.cloud.datastream.v1alpha1.SourceConfig) obj; + com.google.cloud.datastream.v1alpha1.SourceConfig other = (com.google.cloud.datastream.v1alpha1.SourceConfig) obj; - if (!getSourceConnectionProfileName().equals(other.getSourceConnectionProfileName())) - return false; + if (!getSourceConnectionProfileName() + .equals(other.getSourceConnectionProfileName())) return false; if (!getSourceStreamConfigCase().equals(other.getSourceStreamConfigCase())) return false; switch (sourceStreamConfigCase_) { case 100: - if (!getOracleSourceConfig().equals(other.getOracleSourceConfig())) return false; + if (!getOracleSourceConfig() + .equals(other.getOracleSourceConfig())) return false; break; case 101: - if (!getMysqlSourceConfig().equals(other.getMysqlSourceConfig())) return false; + if (!getMysqlSourceConfig() + .equals(other.getMysqlSourceConfig())) return false; break; case 0: default: @@ -461,126 +396,117 @@ 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() @@ -588,15 +514,16 @@ 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(); @@ -608,9 +535,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 @@ -629,8 +556,7 @@ 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) { @@ -655,39 +581,38 @@ 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; @@ -695,27 +620,23 @@ 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(); @@ -736,8 +657,7 @@ 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) { @@ -746,12 +666,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() { @@ -761,23 +681,21 @@ 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; @@ -786,22 +704,20 @@ public java.lang.String getSourceConnectionProfileName() { } } /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for sourceConnectionProfileName. */ - public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { + public com.google.protobuf.ByteString + getSourceConnectionProfileNameBytes() { java.lang.Object ref = sourceConnectionProfileName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); sourceConnectionProfileName_ = b; return b; } else { @@ -809,83 +725,67 @@ public com.google.protobuf.ByteString getSourceConnectionProfileNameBytes() { } } /** - * - * *
      * Required. Source connection profile identifier.
      * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The sourceConnectionProfileName to set. * @return This builder for chaining. */ - public Builder setSourceConnectionProfileName(java.lang.String value) { + 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 @@ -893,14 +793,11 @@ public boolean hasOracleSourceConfig() { return sourceStreamConfigCase_ == 100; } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ @java.lang.Override @@ -918,16 +815,13 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceCo } } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public Builder setOracleSourceConfig( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { + public Builder setOracleSourceConfig(com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -941,8 +835,6 @@ public Builder setOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration
      * 
@@ -961,25 +853,18 @@ public Builder setOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public Builder mergeOracleSourceConfig( - com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { + public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1alpha1.OracleSourceConfig value) { if (oracleSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 100 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 100 && + sourceStreamConfig_ != com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.OracleSourceConfig.newBuilder((com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -994,8 +879,6 @@ public Builder mergeOracleSourceConfig( return this; } /** - * - * *
      * Oracle data source configuration
      * 
@@ -1019,21 +902,16 @@ public Builder clearOracleSourceConfig() { return this; } /** - * - * *
      * Oracle data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ - public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder - getOracleSourceConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder getOracleSourceConfigBuilder() { return getOracleSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Oracle data source configuration
      * 
@@ -1041,8 +919,7 @@ public Builder clearOracleSourceConfig() { * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder - getOracleSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 100) && (oracleSourceConfigBuilder_ != null)) { return oracleSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1053,8 +930,6 @@ public Builder clearOracleSourceConfig() { } } /** - * - * *
      * Oracle data source configuration
      * 
@@ -1062,45 +937,32 @@ public Builder clearOracleSourceConfig() { * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder> getOracleSourceConfigFieldBuilder() { if (oracleSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 100)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.OracleSourceConfig.getDefaultInstance(); } - oracleSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleSourceConfig, - com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder>( + oracleSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleSourceConfig, com.google.cloud.datastream.v1alpha1.OracleSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); 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 @@ -1108,14 +970,11 @@ public boolean hasMysqlSourceConfig() { return sourceStreamConfigCase_ == 101; } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ @java.lang.Override @@ -1133,16 +992,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConf } } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public Builder setMysqlSourceConfig( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { + public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1156,8 +1012,6 @@ public Builder setMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1176,25 +1030,18 @@ public Builder setMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public Builder mergeMysqlSourceConfig( - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { + public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSourceConfig value) { if (mysqlSourceConfigBuilder_ == null) { - if (sourceStreamConfigCase_ == 101 - && sourceStreamConfig_ - != com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) - .mergeFrom(value) - .buildPartial(); + if (sourceStreamConfigCase_ == 101 && + sourceStreamConfig_ != com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance()) { + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_) + .mergeFrom(value).buildPartial(); } else { sourceStreamConfig_ = value; } @@ -1209,8 +1056,6 @@ public Builder mergeMysqlSourceConfig( return this; } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1234,21 +1079,16 @@ public Builder clearMysqlSourceConfig() { return this; } /** - * - * *
      * MySQL data source configuration
      * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder - getMysqlSourceConfigBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder getMysqlSourceConfigBuilder() { return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1256,8 +1096,7 @@ public Builder clearMysqlSourceConfig() { * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder - getMysqlSourceConfigOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder() { if ((sourceStreamConfigCase_ == 101) && (mysqlSourceConfigBuilder_ != null)) { return mysqlSourceConfigBuilder_.getMessageOrBuilder(); } else { @@ -1268,8 +1107,6 @@ public Builder clearMysqlSourceConfig() { } } /** - * - * *
      * MySQL data source configuration
      * 
@@ -1277,33 +1114,26 @@ public Builder clearMysqlSourceConfig() { * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder> getMysqlSourceConfigFieldBuilder() { if (mysqlSourceConfigBuilder_ == null) { if (!(sourceStreamConfigCase_ == 101)) { - sourceStreamConfig_ = - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); + sourceStreamConfig_ = com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.getDefaultInstance(); } - mysqlSourceConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder>( + mysqlSourceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlSourceConfig, com.google.cloud.datastream.v1alpha1.MysqlSourceConfig.Builder, com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlSourceConfig) sourceStreamConfig_, getParentForChildren(), isClean()); 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); } @@ -1313,12 +1143,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(); } @@ -1327,16 +1157,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; @@ -1351,4 +1181,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.SourceConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java similarity index 72% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java index 561e3858..158bed90 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/SourceConfigOrBuilder.java @@ -1,82 +1,51 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface SourceConfigOrBuilder - extends +public interface SourceConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.SourceConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The sourceConnectionProfileName. */ java.lang.String getSourceConnectionProfileName(); /** - * - * *
    * Required. Source connection profile identifier.
    * 
* - * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string source_connection_profile_name = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for sourceConnectionProfileName. */ - com.google.protobuf.ByteString getSourceConnectionProfileNameBytes(); + com.google.protobuf.ByteString + getSourceConnectionProfileNameBytes(); /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return Whether the oracleSourceConfig field is set. */ boolean hasOracleSourceConfig(); /** - * - * *
    * Oracle data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.OracleSourceConfig oracle_source_config = 100; - * * @return The oracleSourceConfig. */ com.google.cloud.datastream.v1alpha1.OracleSourceConfig getOracleSourceConfig(); /** - * - * *
    * Oracle data source configuration
    * 
@@ -86,32 +55,24 @@ public interface SourceConfigOrBuilder com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracleSourceConfigOrBuilder(); /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return Whether the mysqlSourceConfig field is set. */ boolean hasMysqlSourceConfig(); /** - * - * *
    * MySQL data source configuration
    * 
* * .google.cloud.datastream.v1alpha1.MysqlSourceConfig mysql_source_config = 101; - * * @return The mysqlSourceConfig. */ com.google.cloud.datastream.v1alpha1.MysqlSourceConfig getMysqlSourceConfig(); /** - * - * *
    * MySQL data source configuration
    * 
@@ -120,6 +81,5 @@ public interface SourceConfigOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); - public com.google.cloud.datastream.v1alpha1.SourceConfig.SourceStreamConfigCase - getSourceStreamConfigCase(); + public com.google.cloud.datastream.v1alpha1.SourceConfig.SourceStreamConfigCase getSourceStreamConfigCase(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java similarity index 63% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java index 63402e9e..4db31763 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivity.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -68,42 +52,39 @@ private StaticServiceIpConnectivity( 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) { throw e.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; @@ -115,7 +96,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -133,13 +115,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other = - (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) obj; + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other = (com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -158,127 +139,117 @@ 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() @@ -286,15 +257,16 @@ 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(); @@ -302,14 +274,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstanceForType() { return com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance(); } @@ -324,8 +295,7 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity buildPartial() { - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity result = - new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(this); + com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity result = new com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity(this); onBuilt(); return result; } @@ -334,50 +304,46 @@ public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) { - return mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other) { - if (other - == com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity other) { + if (other == com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -397,9 +363,7 @@ 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) { @@ -408,9 +372,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); } @@ -420,32 +384,30 @@ 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; @@ -457,8 +419,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/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 new file mode 100644 index 00000000..70408cec --- /dev/null +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datastream/v1alpha1/datastream_resources.proto + +package com.google.cloud.datastream.v1alpha1; + +public interface StaticServiceIpConnectivityOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java index caf8e406..7d3e151d 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Stream.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} */ -public final class Stream extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream} + */ +public final class Stream extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream) StreamOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Stream.newBuilder() to construct. private Stream(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Stream() { name_ = ""; displayName_ = ""; @@ -38,15 +24,16 @@ 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) @@ -66,174 +53,140 @@ 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; + name_ = s; + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - 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; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = 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; + break; + } + case 26: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.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; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - displayName_ = s; - break; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - 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(); - } + 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; + 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(); } - 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; + 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(); } - case 64: - { - int rawValue = input.readEnum(); - state_ = rawValue; - break; + 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; } - 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; + 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(); } - 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.BackfillAllStrategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) 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_ = 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(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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(); + } + backfillStrategyCase_ = 102; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -242,46 +195,41 @@ 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.
      * 
@@ -290,8 +238,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STATE_UNSPECIFIED(0), /** - * - * *
      * The stream has been created.
      * 
@@ -300,8 +246,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ CREATED(1), /** - * - * *
      * The stream is running.
      * 
@@ -310,8 +254,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ RUNNING(2), /** - * - * *
      * The stream is paused.
      * 
@@ -320,8 +262,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ PAUSED(3), /** - * - * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -331,8 +271,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     MAINTENANCE(4),
     /**
-     *
-     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -342,8 +280,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     FAILED(5),
     /**
-     *
-     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -352,8 +288,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ FAILED_PERMANENTLY(6), /** - * - * *
      * The stream is starting, but not yet running.
      * 
@@ -362,8 +296,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ STARTING(7), /** - * - * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -376,8 +308,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Unspecified stream state.
      * 
@@ -386,8 +316,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The stream has been created.
      * 
@@ -396,8 +324,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CREATED_VALUE = 1; /** - * - * *
      * The stream is running.
      * 
@@ -406,8 +332,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int RUNNING_VALUE = 2; /** - * - * *
      * The stream is paused.
      * 
@@ -416,8 +340,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAUSED_VALUE = 3; /** - * - * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -427,8 +349,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
-     *
-     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -438,8 +358,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FAILED_VALUE = 5;
     /**
-     *
-     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -448,8 +366,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** - * - * *
      * The stream is starting, but not yet running.
      * 
@@ -458,8 +374,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STARTING_VALUE = 7; /** - * - * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -469,6 +383,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DRAINING_VALUE = 8;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -493,61 +408,55 @@ public static State valueOf(int value) {
      */
     public static State forNumber(int value) {
       switch (value) {
-        case 0:
-          return STATE_UNSPECIFIED;
-        case 1:
-          return CREATED;
-        case 2:
-          return RUNNING;
-        case 3:
-          return PAUSED;
-        case 4:
-          return MAINTENANCE;
-        case 5:
-          return FAILED;
-        case 6:
-          return FAILED_PERMANENTLY;
-        case 7:
-          return STARTING;
-        case 8:
-          return DRAINING;
-        default:
-          return null;
+        case 0: return STATE_UNSPECIFIED;
+        case 1: return CREATED;
+        case 2: return RUNNING;
+        case 3: return PAUSED;
+        case 4: return MAINTENANCE;
+        case 5: return FAILED;
+        case 6: return FAILED_PERMANENTLY;
+        case 7: return STARTING;
+        case 8: return DRAINING;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        State> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public State findValueByNumber(int number) {
+              return State.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public State findValueByNumber(int number) {
-            return State.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.datastream.v1alpha1.Stream.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final State[] VALUES = values();
 
-    public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static State valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -564,38 +473,29 @@ private State(int value) {
     // @@protoc_insertion_point(enum_scope:google.cloud.datastream.v1alpha1.Stream.State)
   }
 
-  public interface BackfillAllStrategyOrBuilder
-      extends
+  public interface BackfillAllStrategyOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ boolean hasOracleExcludedObjects(); /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects(); /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -605,32 +505,24 @@ public interface BackfillAllStrategyOrBuilder com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ boolean hasMysqlExcludedObjects(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects(); /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -639,12 +531,9 @@ public interface BackfillAllStrategyOrBuilder */ com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); - public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.ExcludedObjectsCase - getExcludedObjectsCase(); + public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.ExcludedObjectsCase getExcludedObjectsCase(); } /** - * - * *
    * Backfill strategy to automatically backfill the Stream's objects.
    * Specific objects can be excluded.
@@ -652,29 +541,30 @@ public interface BackfillAllStrategyOrBuilder
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy}
    */
-  public static final class BackfillAllStrategy extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class BackfillAllStrategy extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
       BackfillAllStrategyOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use BackfillAllStrategy.newBuilder() to construct.
     private BackfillAllStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
-    private BackfillAllStrategy() {}
+    private BackfillAllStrategy() {
+    }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new BackfillAllStrategy();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private BackfillAllStrategy(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -693,92 +583,75 @@ 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();
-                }
-                excludedObjectsCase_ = 1;
-                break;
+            case 10: {
+              com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder subBuilder = null;
+              if (excludedObjectsCase_ == 1) {
+                subBuilder = ((com.google.cloud.datastream.v1alpha1.OracleRdbms) 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.OracleRdbms.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_);
+                excludedObjects_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                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();
+              }
+              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;
+              }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.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;
       }
@@ -794,36 +667,30 @@ public static ExcludedObjectsCase valueOf(int value) {
 
       public static ExcludedObjectsCase forNumber(int value) {
         switch (value) {
-          case 1:
-            return ORACLE_EXCLUDED_OBJECTS;
-          case 2:
-            return MYSQL_EXCLUDED_OBJECTS;
-          case 0:
-            return EXCLUDEDOBJECTS_NOT_SET;
-          default:
-            return null;
+          case 1: return ORACLE_EXCLUDED_OBJECTS;
+          case 2: return MYSQL_EXCLUDED_OBJECTS;
+          case 0: return EXCLUDEDOBJECTS_NOT_SET;
+          default: return null;
         }
       }
-
       public int getNumber() {
         return this.value;
       }
     };
 
-    public ExcludedObjectsCase getExcludedObjectsCase() {
-      return ExcludedObjectsCase.forNumber(excludedObjectsCase_);
+    public ExcludedObjectsCase
+    getExcludedObjectsCase() {
+      return ExcludedObjectsCase.forNumber(
+          excludedObjectsCase_);
     }
 
     public static final int ORACLE_EXCLUDED_OBJECTS_FIELD_NUMBER = 1;
     /**
-     *
-     *
      * 
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -831,26 +698,21 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } /** - * - * *
      * Oracle data source objects to avoid backfilling.
      * 
@@ -858,24 +720,20 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder - getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 1) { - return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } public static final int MYSQL_EXCLUDED_OBJECTS_FIELD_NUMBER = 2; /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return Whether the mysqlExcludedObjects field is set. */ @java.lang.Override @@ -883,26 +741,21 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } /** - * - * *
      * MySQL data source objects to avoid backfilling.
      * 
@@ -910,16 +763,14 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder - getMysqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { if (excludedObjectsCase_ == 2) { - return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; + return (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_; } return com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -931,7 +782,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (excludedObjectsCase_ == 1) { output.writeMessage(1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); } @@ -948,14 +800,12 @@ public int getSerializedSize() { size = 0; if (excludedObjectsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_); } if (excludedObjectsCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -965,21 +815,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other = - (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) obj; + com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy other = (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) obj; if (!getExcludedObjectsCase().equals(other.getExcludedObjectsCase())) return false; switch (excludedObjectsCase_) { case 1: - if (!getOracleExcludedObjects().equals(other.getOracleExcludedObjects())) return false; + if (!getOracleExcludedObjects() + .equals(other.getOracleExcludedObjects())) return false; break; case 2: - if (!getMysqlExcludedObjects().equals(other.getMysqlExcludedObjects())) return false; + if (!getMysqlExcludedObjects() + .equals(other.getMysqlExcludedObjects())) return false; break; case 0: default: @@ -1013,95 +864,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -1111,8 +954,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -1120,41 +961,38 @@ 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();
@@ -1164,14 +1002,13 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-            .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor;
       }
 
       @java.lang.Override
-      public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy
-          getDefaultInstanceForType() {
+      public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getDefaultInstanceForType() {
         return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
       }
 
@@ -1186,8 +1023,7 @@ 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_;
@@ -1211,67 +1047,58 @@ 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();
@@ -1292,9 +1119,7 @@ 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) {
@@ -1303,12 +1128,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() {
@@ -1318,20 +1143,15 @@ 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 @@ -1339,14 +1159,11 @@ public boolean hasOracleExcludedObjects() { return excludedObjectsCase_ == 1; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; - * * @return The oracleExcludedObjects. */ @java.lang.Override @@ -1364,16 +1181,13 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleExcludedObjects } } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public Builder setOracleExcludedObjects( - com.google.cloud.datastream.v1alpha1.OracleRdbms value) { + public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1387,8 +1201,6 @@ public Builder setOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1407,25 +1219,18 @@ public Builder setOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public Builder mergeOracleExcludedObjects( - com.google.cloud.datastream.v1alpha1.OracleRdbms value) { + public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.OracleRdbms value) { if (oracleExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 1 - && excludedObjects_ - != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 1 && + excludedObjects_ != com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1440,8 +1245,6 @@ public Builder mergeOracleExcludedObjects( return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1465,21 +1268,16 @@ public Builder clearOracleExcludedObjects() { return this; } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ - public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder - getOracleExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleExcludedObjectsBuilder() { return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1487,8 +1285,7 @@ public Builder clearOracleExcludedObjects() { * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder - getOracleExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 1) && (oracleExcludedObjectsBuilder_ != null)) { return oracleExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1499,8 +1296,6 @@ public Builder clearOracleExcludedObjects() { } } /** - * - * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1508,45 +1303,32 @@ public Builder clearOracleExcludedObjects() { * .google.cloud.datastream.v1alpha1.OracleRdbms oracle_excluded_objects = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder> getOracleExcludedObjectsFieldBuilder() { if (oracleExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 1)) { - excludedObjects_ = - com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); + excludedObjects_ = com.google.cloud.datastream.v1alpha1.OracleRdbms.getDefaultInstance(); } - oracleExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.OracleRdbms, - com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, - com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( + oracleExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.OracleRdbms, com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder, com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.OracleRdbms) excludedObjects_, getParentForChildren(), isClean()); 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 @@ -1554,14 +1336,11 @@ public boolean hasMysqlExcludedObjects() { return excludedObjectsCase_ == 2; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; - * * @return The mysqlExcludedObjects. */ @java.lang.Override @@ -1579,16 +1358,13 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlExcludedObjects() } } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public Builder setMysqlExcludedObjects( - com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { + public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1602,8 +1378,6 @@ public Builder setMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1622,25 +1396,18 @@ public Builder setMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public Builder mergeMysqlExcludedObjects( - com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { + public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.MysqlRdbms value) { if (mysqlExcludedObjectsBuilder_ == null) { - if (excludedObjectsCase_ == 2 - && excludedObjects_ - != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { - excludedObjects_ = - com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder( - (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_) - .mergeFrom(value) - .buildPartial(); + if (excludedObjectsCase_ == 2 && + excludedObjects_ != com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance()) { + excludedObjects_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.newBuilder((com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_) + .mergeFrom(value).buildPartial(); } else { excludedObjects_ = value; } @@ -1655,8 +1422,6 @@ public Builder mergeMysqlExcludedObjects( return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1680,21 +1445,16 @@ public Builder clearMysqlExcludedObjects() { return this; } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
* * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ - public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder - getMysqlExcludedObjectsBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlExcludedObjectsBuilder() { return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1702,8 +1462,7 @@ public Builder clearMysqlExcludedObjects() { * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ @java.lang.Override - public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder - getMysqlExcludedObjectsOrBuilder() { + public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder() { if ((excludedObjectsCase_ == 2) && (mysqlExcludedObjectsBuilder_ != null)) { return mysqlExcludedObjectsBuilder_.getMessageOrBuilder(); } else { @@ -1714,8 +1473,6 @@ public Builder clearMysqlExcludedObjects() { } } /** - * - * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1723,30 +1480,23 @@ public Builder clearMysqlExcludedObjects() { * .google.cloud.datastream.v1alpha1.MysqlRdbms mysql_excluded_objects = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder> getMysqlExcludedObjectsFieldBuilder() { if (mysqlExcludedObjectsBuilder_ == null) { if (!(excludedObjectsCase_ == 2)) { excludedObjects_ = com.google.cloud.datastream.v1alpha1.MysqlRdbms.getDefaultInstance(); } - mysqlExcludedObjectsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.MysqlRdbms, - com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, - com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( + mysqlExcludedObjectsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datastream.v1alpha1.MysqlRdbms, com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder, com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder>( (com.google.cloud.datastream.v1alpha1.MysqlRdbms) excludedObjects_, getParentForChildren(), isClean()); excludedObjects_ = null; } excludedObjectsCase_ = 2; - onChanged(); - ; + onChanged();; return mysqlExcludedObjectsBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1759,32 +1509,30 @@ 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; @@ -1796,48 +1544,47 @@ 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) @@ -1856,42 +1603,39 @@ 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) { throw e.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; @@ -1903,7 +1647,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { unknownFields.writeTo(output); } @@ -1921,13 +1666,12 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other = - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) obj; + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other = (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1946,95 +1690,87 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + } + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -2044,49 +1780,44 @@ 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(); @@ -2094,16 +1825,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } @java.lang.Override @@ -2117,8 +1846,7 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy build() @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy buildPartial() { - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy result = - new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(this); + com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy result = new com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy(this); onBuilt(); return result; } @@ -2127,53 +1855,46 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy buildPar public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) { - return mergeFrom( - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) other); + return mergeFrom((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other) { - if (other - == com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy other) { + if (other == com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2193,9 +1914,7 @@ 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) { @@ -2204,7 +1923,6 @@ public Builder mergeFrom( } return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2217,32 +1935,30 @@ 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; @@ -2254,24 +1970,21 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } private int backfillStrategyCase_ = 0; private java.lang.Object backfillStrategy_; - public enum BackfillStrategyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BACKFILL_ALL(101), BACKFILL_NONE(102), BACKFILLSTRATEGY_NOT_SET(0); private final int value; - private BackfillStrategyCase(int value) { this.value = value; } @@ -2287,37 +2000,31 @@ 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 @@ -2326,29 +2033,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 { @@ -2359,15 +2066,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -2375,15 +2078,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -2391,14 +2090,11 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -2408,15 +2104,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ @java.lang.Override @@ -2424,15 +2116,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ @java.lang.Override @@ -2440,14 +2128,11 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -2455,23 +2140,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } public static final int LABELS_FIELD_NUMBER = 4; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } @@ -2480,30 +2166,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -2511,12 +2195,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
    * Labels.
    * 
@@ -2524,16 +2207,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Labels.
    * 
@@ -2541,11 +2224,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * map<string, string> labels = 4; */ @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2555,14 +2239,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { 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 @@ -2571,29 +2252,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 { @@ -2604,16 +2285,11 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int SOURCE_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datastream.v1alpha1.SourceConfig sourceConfig_; /** - * - * *
    * Required. Source connection profile configuration.
    * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ @java.lang.Override @@ -2621,34 +2297,23 @@ 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() { @@ -2658,16 +2323,11 @@ 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 @@ -2675,88 +2335,64 @@ 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 @@ -2764,27 +2400,22 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance(); } /** - * - * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -2793,24 +2424,20 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi
    * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
    */
   @java.lang.Override
-  public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
-      getBackfillAllOrBuilder() {
+  public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
     if (backfillStrategyCase_ == 101) {
-      return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
+       return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
     }
     return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
   }
 
   public static final int BACKFILL_NONE_FIELD_NUMBER = 102;
   /**
-   *
-   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return Whether the backfillNone field is set. */ @java.lang.Override @@ -2818,26 +2445,21 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** - * - * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } /** - * - * *
    * Do not automatically backfill any objects.
    * 
@@ -2845,10 +2467,9 @@ 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(); } @@ -2856,84 +2477,64 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackf 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; @@ -2945,7 +2546,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -2955,8 +2557,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetLabels(), + LabelsDefaultEntryHolder.defaultEntry, + 4); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } @@ -2973,13 +2579,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(9, errors_.get(i)); } if (backfillStrategyCase_ == 101) { - output.writeMessage( - 101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); + output.writeMessage(101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - output.writeMessage( - 102, - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); + output.writeMessage(102, (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); } unknownFields.writeTo(output); } @@ -2994,47 +2597,49 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry + : internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry + labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (sourceConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSourceConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getSourceConfig()); } if (destinationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDestinationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDestinationConfig()); } if (state_ != com.google.cloud.datastream.v1alpha1.Stream.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, state_); } for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, errors_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, errors_.get(i)); } if (backfillStrategyCase_ == 101) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 101, - (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(101, (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_); } if (backfillStrategyCase_ == 102) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 102, - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(102, (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -3044,42 +2649,51 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Stream)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Stream other = - (com.google.cloud.datastream.v1alpha1.Stream) obj; + com.google.cloud.datastream.v1alpha1.Stream other = (com.google.cloud.datastream.v1alpha1.Stream) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetLabels().equals( + other.internalGetLabels())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (hasSourceConfig() != other.hasSourceConfig()) return false; if (hasSourceConfig()) { - if (!getSourceConfig().equals(other.getSourceConfig())) return false; + if (!getSourceConfig() + .equals(other.getSourceConfig())) return false; } if (hasDestinationConfig() != other.hasDestinationConfig()) return false; if (hasDestinationConfig()) { - if (!getDestinationConfig().equals(other.getDestinationConfig())) return false; + if (!getDestinationConfig() + .equals(other.getDestinationConfig())) return false; } if (state_ != other.state_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; + if (!getErrorsList() + .equals(other.getErrorsList())) return false; if (!getBackfillStrategyCase().equals(other.getBackfillStrategyCase())) return false; switch (backfillStrategyCase_) { case 101: - if (!getBackfillAll().equals(other.getBackfillAll())) return false; + if (!getBackfillAll() + .equals(other.getBackfillAll())) return false; break; case 102: - if (!getBackfillNone().equals(other.getBackfillNone())) return false; + if (!getBackfillNone() + .equals(other.getBackfillNone())) return false; break; case 0: default: @@ -3142,139 +2756,136 @@ 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() @@ -3282,17 +2893,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(); @@ -3339,9 +2950,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 @@ -3360,8 +2971,7 @@ 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) { @@ -3420,39 +3030,38 @@ 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; @@ -3471,7 +3080,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Stream other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); @@ -3503,30 +3113,26 @@ 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(); @@ -3556,12 +3162,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() { @@ -3575,20 +3181,18 @@ public Builder clearBackfillStrategy() { private java.lang.Object name_ = ""; /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -3597,21 +3201,20 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -3619,61 +3222,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The stream's name.
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + 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; @@ -3681,58 +3277,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return 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) { @@ -3748,17 +3325,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -3769,21 +3343,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3795,15 +3365,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The creation time of the stream.
      * 
* - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -3817,64 +3383,48 @@ 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_; @@ -3882,58 +3432,39 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - /** - * - * + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + /** *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return 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) { @@ -3949,17 +3480,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -3970,21 +3498,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3996,15 +3520,11 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. The last update time of the stream.
      * 
* - * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -4018,84 +3538,69 @@ 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 labels_; - - private com.google.protobuf.MapField internalGetLabels() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> labels_; + private com.google.protobuf.MapField + internalGetLabels() { if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + LabelsDefaultEntryHolder.defaultEntry); } return labels_; } - private com.google.protobuf.MapField - internalGetMutableLabels() { - 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(); @@ -4107,30 +3612,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -4138,12 +3641,11 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
      * Labels.
      * 
@@ -4151,17 +3653,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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Labels.
      * 
@@ -4169,11 +3670,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4181,79 +3683,78 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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; @@ -4262,21 +3763,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); displayName_ = b; return b; } else { @@ -4284,61 +3784,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. Display name.
      * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + 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; @@ -4346,58 +3839,39 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datastream.v1alpha1.SourceConfig sourceConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.SourceConfig, - com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, - com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> - sourceConfigBuilder_; + com.google.cloud.datastream.v1alpha1.SourceConfig, com.google.cloud.datastream.v1alpha1.SourceConfig.Builder, com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder> sourceConfigBuilder_; /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the sourceConfig field is set. */ public boolean hasSourceConfig() { return 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) { @@ -4413,15 +3887,11 @@ public Builder setSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSourceConfig( com.google.cloud.datastream.v1alpha1.SourceConfig.Builder builderForValue) { @@ -4435,23 +3905,17 @@ public Builder setSourceConfig( return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConfig value) { if (sourceConfigBuilder_ == null) { if (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; } @@ -4463,15 +3927,11 @@ public Builder mergeSourceConfig(com.google.cloud.datastream.v1alpha1.SourceConf return this; } /** - * - * *
      * Required. Source connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSourceConfig() { if (sourceConfigBuilder_ == null) { @@ -4485,64 +3945,48 @@ 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_; @@ -4550,61 +3994,41 @@ public com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfi private com.google.cloud.datastream.v1alpha1.DestinationConfig destinationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.DestinationConfig, - com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, - com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> - destinationConfigBuilder_; + com.google.cloud.datastream.v1alpha1.DestinationConfig, com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder, com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder> destinationConfigBuilder_; /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the destinationConfig field is set. */ public boolean hasDestinationConfig() { return 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(); @@ -4618,15 +4042,11 @@ public Builder setDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDestinationConfig( com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder builderForValue) { @@ -4640,24 +4060,17 @@ public Builder setDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeDestinationConfig( - com.google.cloud.datastream.v1alpha1.DestinationConfig value) { + public Builder mergeDestinationConfig(com.google.cloud.datastream.v1alpha1.DestinationConfig value) { if (destinationConfigBuilder_ == null) { if (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; } @@ -4669,15 +4082,11 @@ public Builder mergeDestinationConfig( return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDestinationConfig() { if (destinationConfigBuilder_ == null) { @@ -4691,66 +4100,48 @@ public Builder clearDestinationConfig() { return this; } /** - * - * *
      * Required. Destination connection profile configuration.
      * 
* - * - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder - getDestinationConfigBuilder() { - + public com.google.cloud.datastream.v1alpha1.DestinationConfig.Builder getDestinationConfigBuilder() { + 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_; @@ -4758,67 +4149,51 @@ public Builder clearDestinationConfig() { private int state_ = 0; /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * The state of the stream.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ 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. */ @@ -4826,44 +4201,35 @@ 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 @@ -4871,23 +4237,19 @@ public boolean hasBackfillAll() { return backfillStrategyCase_ == 101; } /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
      * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; - * * @return The backfillAll. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll() { if (backfillAllBuilder_ == null) { if (backfillStrategyCase_ == 101) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) - backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_; } return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance(); } else { @@ -4898,8 +4260,6 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi } } /** - * - * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4907,8 +4267,7 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder setBackfillAll(
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
+    public Builder setBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4922,8 +4281,6 @@ public Builder setBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4943,8 +4300,6 @@ public Builder setBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4952,19 +4307,12 @@ public Builder setBackfillAll(
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public Builder mergeBackfillAll(
-        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
+    public Builder mergeBackfillAll(com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy value) {
       if (backfillAllBuilder_ == null) {
-        if (backfillStrategyCase_ == 101
-            && backfillStrategy_
-                != com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy
-                    .getDefaultInstance()) {
-          backfillStrategy_ =
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder(
-                      (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
-                          backfillStrategy_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (backfillStrategyCase_ == 101 &&
+            backfillStrategy_ != com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance()) {
+          backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.newBuilder((com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_)
+              .mergeFrom(value).buildPartial();
         } else {
           backfillStrategy_ = value;
         }
@@ -4979,8 +4327,6 @@ public Builder mergeBackfillAll(
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5005,8 +4351,6 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5014,13 +4358,10 @@ public Builder clearBackfillAll() {
      *
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
-    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder
-        getBackfillAllBuilder() {
+    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder getBackfillAllBuilder() {
       return getBackfillAllFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5029,21 +4370,17 @@ public Builder clearBackfillAll() {
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     @java.lang.Override
-    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder
-        getBackfillAllOrBuilder() {
+    public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder() {
       if ((backfillStrategyCase_ == 101) && (backfillAllBuilder_ != null)) {
         return backfillAllBuilder_.getMessageOrBuilder();
       } else {
         if (backfillStrategyCase_ == 101) {
-          return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy)
-              backfillStrategy_;
+          return (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_;
         }
         return com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -5052,46 +4389,32 @@ public Builder clearBackfillAll() {
      * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy,
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder,
-            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>
+        com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder> 
         getBackfillAllFieldBuilder() {
       if (backfillAllBuilder_ == null) {
         if (!(backfillStrategyCase_ == 101)) {
-          backfillStrategy_ =
-              com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
+          backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.getDefaultInstance();
         }
-        backfillAllBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy,
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder,
-                com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>(
+        backfillAllBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy.Builder, com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategyOrBuilder>(
                 (com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy) backfillStrategy_,
                 getParentForChildren(),
                 isClean());
         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 @@ -5099,46 +4422,35 @@ public boolean hasBackfillNone() { return backfillStrategyCase_ == 102; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; * @return The backfillNone. */ @java.lang.Override public com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy getBackfillNone() { if (backfillNoneBuilder_ == null) { if (backfillStrategyCase_ == 102) { - return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - backfillStrategy_; + return (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_; } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } else { if (backfillStrategyCase_ == 102) { return backfillNoneBuilder_.getMessage(); } - return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance(); + return com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance(); } } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder setBackfillNone( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { + public Builder setBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5152,14 +4464,11 @@ public Builder setBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ public Builder setBackfillNone( com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.Builder builderForValue) { @@ -5173,28 +4482,18 @@ public Builder setBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ - public Builder mergeBackfillNone( - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { + public Builder mergeBackfillNone(com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy value) { if (backfillNoneBuilder_ == null) { - if (backfillStrategyCase_ == 102 - && backfillStrategy_ - != com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy - .getDefaultInstance()) { - backfillStrategy_ = - com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder( - (com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) - backfillStrategy_) - .mergeFrom(value) - .buildPartial(); + if (backfillStrategyCase_ == 102 && + backfillStrategy_ != com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.getDefaultInstance()) { + backfillStrategy_ = com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy.newBuilder((com.google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy) backfillStrategy_) + .mergeFrom(value).buildPartial(); } else { backfillStrategy_ = value; } @@ -5209,14 +4508,11 @@ public Builder mergeBackfillNone( return this; } /** - * - * *
      * Do not automatically backfill any objects.
      * 
* - * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; - * + * .google.cloud.datastream.v1alpha1.Stream.BackfillNoneStrategy backfill_none = 102; */ public Builder clearBackfillNone() { if (backfillNoneBuilder_ == null) { @@ -5235,106 +4531,77 @@ 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) { @@ -5344,15 +4611,11 @@ public java.util.List getErrorsList( } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public int getErrorsCount() { if (errorsBuilder_ == null) { @@ -5362,15 +4625,11 @@ public int getErrorsCount() { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { if (errorsBuilder_ == null) { @@ -5380,17 +4639,14 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder setErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5404,15 +4660,11 @@ public Builder setErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setErrors( int index, com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { @@ -5426,15 +4678,11 @@ public Builder setErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { @@ -5450,17 +4698,14 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error value) { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error value) { + public Builder addErrors( + int index, com.google.cloud.datastream.v1alpha1.Error value) { if (errorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5474,17 +4719,14 @@ public Builder addErrors(int index, com.google.cloud.datastream.v1alpha1.Error v return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { + public Builder addErrors( + com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); errors_.add(builderForValue.build()); @@ -5495,15 +4737,11 @@ public Builder addErrors(com.google.cloud.datastream.v1alpha1.Error.Builder buil return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addErrors( int index, com.google.cloud.datastream.v1alpha1.Error.Builder builderForValue) { @@ -5517,21 +4755,18 @@ public Builder addErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder addAllErrors( java.lang.Iterable values) { if (errorsBuilder_ == null) { ensureErrorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errors_); onChanged(); } else { errorsBuilder_.addAllMessages(values); @@ -5539,15 +4774,11 @@ public Builder addAllErrors( return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearErrors() { if (errorsBuilder_ == null) { @@ -5560,15 +4791,11 @@ public Builder clearErrors() { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder removeErrors(int index) { if (errorsBuilder_ == null) { @@ -5581,50 +4808,39 @@ public Builder removeErrors(int index) { return this; } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.Error.Builder getErrorsBuilder( + int index) { return getErrorsFieldBuilder().getBuilder(index); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(int index) { + public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( + int index) { if (errorsBuilder_ == null) { - return errors_.get(index); - } else { + return errors_.get(index); } else { return errorsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsOrBuilderList() { + public java.util.List + getErrorsOrBuilderList() { if (errorsBuilder_ != null) { return errorsBuilder_.getMessageOrBuilderList(); } else { @@ -5632,70 +4848,56 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder(in } } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder() { - return getErrorsFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + return getErrorsFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder(int index) { - return getErrorsFieldBuilder() - .addBuilder(index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); + public com.google.cloud.datastream.v1alpha1.Error.Builder addErrorsBuilder( + int index) { + return getErrorsFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.Error.getDefaultInstance()); } /** - * - * *
      * Output only. Errors on the Stream.
      * 
* - * - * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * repeated .google.cloud.datastream.v1alpha1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public java.util.List - getErrorsBuilderList() { + public java.util.List + getErrorsBuilderList() { return getErrorsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> + com.google.cloud.datastream.v1alpha1.Error, com.google.cloud.datastream.v1alpha1.Error.Builder, com.google.cloud.datastream.v1alpha1.ErrorOrBuilder> getErrorsFieldBuilder() { if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Error, - com.google.cloud.datastream.v1alpha1.Error.Builder, - com.google.cloud.datastream.v1alpha1.ErrorOrBuilder>( - errors_, ((bitField0_ & 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); } @@ -5705,12 +4907,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(); } @@ -5719,16 +4921,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; @@ -5743,4 +4945,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Stream getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamName.java diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java similarity index 67% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java index 8edc6c6e..8dd899dc 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StreamOrBuilder.java @@ -1,132 +1,87 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface StreamOrBuilder - extends +public interface StreamOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Stream) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The stream's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. The creation time of the stream.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. The last update time of the stream.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Labels.
    * 
@@ -135,210 +90,165 @@ public interface StreamOrBuilder */ int getLabelsCount(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - boolean containsLabels(java.lang.String key); - /** Use {@link #getLabelsMap()} instead. */ + boolean containsLabels( + java.lang.String key); + /** + * Use {@link #getLabelsMap()} instead. + */ @java.lang.Deprecated - java.util.Map getLabels(); + java.util.Map + getLabels(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + 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.
@@ -346,106 +256,78 @@ public interface StreamOrBuilder
    *
    * .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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java similarity index 69% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java index c6d0c8d8..f204baf6 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequest.java @@ -1,50 +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.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) @@ -63,84 +49,73 @@ 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(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - 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; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; + break; + } + case 18: { + com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder subBuilder = null; + if (connectionProfile_ != null) { + subBuilder = connectionProfile_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + 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(); + + requestId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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.
@@ -149,9 +124,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -159,8 +132,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -169,9 +140,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -179,8 +148,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -189,8 +156,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -200,16 +166,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int CONNECTION_PROFILE_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ @java.lang.Override @@ -217,46 +178,32 @@ 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
@@ -272,7 +219,6 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfi
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -281,15 +227,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -305,15 +250,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -322,7 +268,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,7 +279,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -354,10 +300,12 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (connectionProfile_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectionProfile()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConnectionProfile()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); @@ -370,23 +318,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other = - (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) obj; + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest other = (com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasConnectionProfile() != other.hasConnectionProfile()) return false; if (hasConnectionProfile()) { - if (!getConnectionProfile().equals(other.getConnectionProfile())) return false; + if (!getConnectionProfile() + .equals(other.getConnectionProfile())) return false; } - if (!getRequestId().equals(other.getRequestId())) return false; + if (!getRequestId() + .equals(other.getRequestId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -414,137 +364,130 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, - com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); + com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.class, com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.Builder.class); } - // Construct using - // com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.newBuilder() + // 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(); @@ -566,16 +509,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto - .internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - getDefaultInstanceForType() { - return com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - .getDefaultInstance(); + public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstanceForType() { + return com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest.getDefaultInstance(); } @java.lang.Override @@ -589,8 +530,7 @@ 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 { @@ -610,51 +550,46 @@ 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()); } @@ -684,9 +619,7 @@ 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) { @@ -698,13 +631,8 @@ 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.
@@ -713,17 +641,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -732,23 +656,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -757,8 +675,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -774,8 +691,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -784,10 +699,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(); @@ -798,8 +713,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -808,14 +721,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -827,8 +739,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -837,8 +747,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -852,8 +761,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -862,17 +769,14 @@ 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.
@@ -881,21 +785,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * ConnectionProfile resource by the update.
@@ -904,21 +804,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -926,61 +822,41 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1alpha1.ConnectionProfile connectionProfile_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ConnectionProfile, - com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, - com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> - connectionProfileBuilder_; + com.google.cloud.datastream.v1alpha1.ConnectionProfile, com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder, com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder> connectionProfileBuilder_; /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ public boolean hasConnectionProfile() { return 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(); @@ -994,15 +870,11 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConnectionProfile( com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder builderForValue) { @@ -1016,24 +888,17 @@ public Builder setConnectionProfile( return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeConnectionProfile( - com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { + public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.ConnectionProfile value) { if (connectionProfileBuilder_ == null) { if (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; } @@ -1045,15 +910,11 @@ public Builder mergeConnectionProfile( return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConnectionProfile() { if (connectionProfileBuilder_ == null) { @@ -1067,66 +928,48 @@ public Builder clearConnectionProfile() { return this; } /** - * - * *
      * Required. The ConnectionProfile to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder - getConnectionProfileBuilder() { - + public com.google.cloud.datastream.v1alpha1.ConnectionProfile.Builder getConnectionProfileBuilder() { + 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_; @@ -1134,8 +977,6 @@ public Builder clearConnectionProfile() { private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1151,13 +992,13 @@ public Builder clearConnectionProfile() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -1166,8 +1007,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1183,14 +1022,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1198,8 +1038,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1215,22 +1053,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -1246,18 +1082,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -1273,23 +1106,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); } @@ -1299,32 +1132,30 @@ 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; @@ -1336,8 +1167,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest - getDefaultInstanceForType() { + public com.google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java index 3cf91734..8162512c 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateConnectionProfileRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface UpdateConnectionProfileRequestOrBuilder - extends +public interface UpdateConnectionProfileRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.UpdateConnectionProfileRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * ConnectionProfile resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the connectionProfile field is set. */ boolean hasConnectionProfile(); /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The connectionProfile. */ com.google.cloud.datastream.v1alpha1.ConnectionProfile getConnectionProfile(); /** - * - * *
    * Required. The ConnectionProfile to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.ConnectionProfile connection_profile = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnectionProfileOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,8 +108,8 @@ public interface UpdateConnectionProfileRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java similarity index 73% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java index 503775ce..f5b12ee5 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequest.java @@ -1,49 +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.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) @@ -62,93 +49,83 @@ private UpdateStreamRequest( 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(); - } - - break; + case 10: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - 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; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - requestId_ = s; - break; - } - case 32: - { - validateOnly_ = input.readBool(); - break; + break; + } + case 18: { + com.google.cloud.datastream.v1alpha1.Stream.Builder subBuilder = null; + if (stream_ != null) { + subBuilder = stream_.toBuilder(); } - case 40: - { - force_ = input.readBool(); - break; + stream_ = input.readMessage(com.google.cloud.datastream.v1alpha1.Stream.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(stream_); + stream_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - 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; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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.
@@ -157,9 +134,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -167,8 +142,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -177,9 +150,7 @@ public boolean hasUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -187,8 +158,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -197,8 +166,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -208,16 +176,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { public static final int STREAM_FIELD_NUMBER = 2; private com.google.cloud.datastream.v1alpha1.Stream stream_; /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ @java.lang.Override @@ -225,34 +188,23 @@ 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() { @@ -262,8 +214,6 @@ 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
@@ -279,7 +229,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ @java.lang.Override @@ -288,15 +237,14 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -312,15 +260,16 @@ public java.lang.String getRequestId() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -331,15 +280,12 @@ public com.google.protobuf.ByteString getRequestIdBytes() { 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 @@ -350,14 +296,11 @@ 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 @@ -366,7 +309,6 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -378,7 +320,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -404,19 +347,23 @@ public int getSerializedSize() { size = 0; if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getUpdateMask()); } if (stream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStream()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStream()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); } if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, validateOnly_); } if (force_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, force_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, force_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -426,25 +373,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.UpdateStreamRequest)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other = - (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) obj; + com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other = (com.google.cloud.datastream.v1alpha1.UpdateStreamRequest) obj; if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (hasStream() != other.hasStream()) return false; if (hasStream()) { - if (!getStream().equals(other.getStream())) return false; - } - if (!getRequestId().equals(other.getRequestId())) return false; - if (getValidateOnly() != other.getValidateOnly()) return false; - if (getForce() != other.getForce()) return false; + if (!getStream() + .equals(other.getStream())) return false; + } + if (!getRequestId() + .equals(other.getRequestId())) return false; + if (getValidateOnly() + != other.getValidateOnly()) return false; + if (getForce() + != other.getForce()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -467,128 +418,124 @@ 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() @@ -596,15 +543,16 @@ 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(); @@ -630,9 +578,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 @@ -651,8 +599,7 @@ 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 { @@ -674,39 +621,38 @@ 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; @@ -714,8 +660,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.UpdateStreamRequest other) { - if (other == com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.UpdateStreamRequest.getDefaultInstance()) return this; if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); } @@ -751,8 +696,7 @@ 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) { @@ -764,13 +708,8 @@ 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.
@@ -779,17 +718,13 @@ public Builder mergeFrom(
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -798,23 +733,17 @@ public boolean hasUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -823,8 +752,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -840,8 +768,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -850,10 +776,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(); @@ -864,8 +790,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -874,14 +798,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -893,8 +816,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -903,8 +824,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -918,8 +838,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -928,17 +846,14 @@ 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.
@@ -947,21 +862,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. Field mask is used to specify the fields to be overwritten in the
      * stream resource by the update.
@@ -970,21 +881,17 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * user does not provide a mask then all fields will be overwritten.
      * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; @@ -992,58 +899,39 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { private com.google.cloud.datastream.v1alpha1.Stream stream_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.Stream, - com.google.cloud.datastream.v1alpha1.Stream.Builder, - com.google.cloud.datastream.v1alpha1.StreamOrBuilder> - streamBuilder_; + com.google.cloud.datastream.v1alpha1.Stream, com.google.cloud.datastream.v1alpha1.Stream.Builder, com.google.cloud.datastream.v1alpha1.StreamOrBuilder> streamBuilder_; /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ public boolean hasStream() { return 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) { @@ -1059,17 +947,14 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { + public Builder setStream( + com.google.cloud.datastream.v1alpha1.Stream.Builder builderForValue) { if (streamBuilder_ == null) { stream_ = builderForValue.build(); onChanged(); @@ -1080,23 +965,17 @@ public Builder setStream(com.google.cloud.datastream.v1alpha1.Stream.Builder bui return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { if (streamBuilder_ == null) { if (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; } @@ -1108,15 +987,11 @@ public Builder mergeStream(com.google.cloud.datastream.v1alpha1.Stream value) { return this; } /** - * - * *
      * Required. The stream resource to update.
      * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearStream() { if (streamBuilder_ == null) { @@ -1130,64 +1005,48 @@ 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_; @@ -1195,8 +1054,6 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder() private java.lang.Object requestId_ = ""; /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1212,13 +1069,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; @@ -1227,8 +1084,6 @@ public java.lang.String getRequestId() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1244,14 +1099,15 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getRequestIdBytes() { + public com.google.protobuf.ByteString + getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); requestId_ = b; return b; } else { @@ -1259,8 +1115,6 @@ public com.google.protobuf.ByteString getRequestIdBytes() { } } /** - * - * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1276,22 +1130,20 @@ public com.google.protobuf.ByteString getRequestIdBytes() {
      * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId(java.lang.String value) { + 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
@@ -1307,18 +1159,15 @@ public Builder setRequestId(java.lang.String value) {
      * 
* * 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
@@ -1334,32 +1183,29 @@ 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 @@ -1367,53 +1213,44 @@ 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 @@ -1421,43 +1258,37 @@ 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); } @@ -1467,12 +1298,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(); } @@ -1481,16 +1312,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; @@ -1505,4 +1336,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.UpdateStreamRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java index 8129fb19..84c1b730 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/UpdateStreamRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream.proto package com.google.cloud.datastream.v1alpha1; -public interface UpdateStreamRequestOrBuilder - extends +public interface UpdateStreamRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.UpdateStreamRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -34,15 +16,11 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -51,15 +29,11 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Field mask is used to specify the fields to be overwritten in the
    * stream resource by the update.
@@ -68,55 +42,38 @@ public interface UpdateStreamRequestOrBuilder
    * user does not provide a mask then all fields will be overwritten.
    * 
* - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the stream field is set. */ boolean hasStream(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The stream. */ com.google.cloud.datastream.v1alpha1.Stream getStream(); /** - * - * *
    * Required. The stream resource to update.
    * 
* - * - * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datastream.v1alpha1.Stream stream = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -132,13 +89,10 @@ public interface UpdateStreamRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The requestId. */ java.lang.String getRequestId(); /** - * - * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -154,34 +108,28 @@ public interface UpdateStreamRequestOrBuilder
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for requestId. */ - com.google.protobuf.ByteString getRequestIdBytes(); + com.google.protobuf.ByteString + getRequestIdBytes(); /** - * - * *
    * Optional. Only validate the stream with the changes, without actually updating it.
    * The default is false.
    * 
* * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The validateOnly. */ boolean getValidateOnly(); /** - * - * *
    * Optional. Execute the update without validating it.
    * 
* * bool force = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The force. */ boolean getForce(); diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java similarity index 74% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java index 75739ed6..12915981 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/Validation.java @@ -1,34 +1,20 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -/** Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} */ -public final class Validation extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datastream.v1alpha1.Validation} + */ +public final class Validation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.Validation) ValidationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Validation.newBuilder() to construct. private Validation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Validation() { description_ = ""; status_ = 0; @@ -38,15 +24,16 @@ 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) @@ -66,54 +53,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(); - status_ = rawValue; - break; - } - 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; + status_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + message_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + 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; - } - break; + code_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -122,35 +102,29 @@ 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.
      * 
@@ -159,8 +133,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ STATUS_UNSPECIFIED(0), /** - * - * *
      * Validation did not execute.
      * 
@@ -169,8 +141,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ NOT_EXECUTED(1), /** - * - * *
      * Validation failed.
      * 
@@ -179,8 +149,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ FAILED(2), /** - * - * *
      * Validation passed.
      * 
@@ -192,8 +160,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified status.
      * 
@@ -202,8 +168,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Validation did not execute.
      * 
@@ -212,8 +176,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NOT_EXECUTED_VALUE = 1; /** - * - * *
      * Validation failed.
      * 
@@ -222,8 +184,6 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAILED_VALUE = 2; /** - * - * *
      * Validation passed.
      * 
@@ -232,6 +192,7 @@ public enum Status implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PASSED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -256,51 +217,50 @@ public static Status valueOf(int value) { */ public static Status forNumber(int value) { switch (value) { - case 0: - return STATUS_UNSPECIFIED; - case 1: - return NOT_EXECUTED; - case 2: - return FAILED; - case 3: - return PASSED; - default: - return null; + case 0: return STATUS_UNSPECIFIED; + case 1: return NOT_EXECUTED; + case 2: return FAILED; + case 3: return PASSED; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Status> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Status findValueByNumber(int number) { + return Status.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.datastream.v1alpha1.Validation.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); - public static Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Status valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -320,14 +280,11 @@ 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 @@ -336,29 +293,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 { @@ -369,46 +326,33 @@ public com.google.protobuf.ByteString getDescriptionBytes() { 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.
    * 
@@ -420,8 +364,6 @@ public java.util.List ge return message_; } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -429,13 +371,11 @@ public java.util.List ge * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessageOrBuilderList() { return message_; } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -447,8 +387,6 @@ public int getMessageCount() { return message_.size(); } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -460,8 +398,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind return message_.get(index); } /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -477,14 +413,11 @@ 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 @@ -493,29 +426,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 { @@ -524,7 +457,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -536,12 +468,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++) { @@ -562,12 +494,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); } - if (status_ - != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + if (status_ != com.google.cloud.datastream.v1alpha1.Validation.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, status_); } for (int i = 0; i < message_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, message_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, message_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -580,18 +513,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.Validation)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.Validation other = - (com.google.cloud.datastream.v1alpha1.Validation) obj; + com.google.cloud.datastream.v1alpha1.Validation other = (com.google.cloud.datastream.v1alpha1.Validation) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (status_ != other.status_) return false; - if (!getMessageList().equals(other.getMessageList())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!getMessageList() + .equals(other.getMessageList())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -618,119 +553,114 @@ 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() @@ -738,17 +668,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(); @@ -768,9 +698,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 @@ -789,8 +719,7 @@ 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_; @@ -812,39 +741,38 @@ 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; @@ -852,8 +780,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.Validation other) { - if (other == com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance()) return this; if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); @@ -879,10 +806,9 @@ 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_); } @@ -920,25 +846,22 @@ 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; @@ -947,21 +870,20 @@ public java.lang.String getDescription() { } } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @return The bytes for description. */ - public com.google.protobuf.ByteString getDescriptionBytes() { + public com.google.protobuf.ByteString + getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); description_ = b; return b; } else { @@ -969,61 +891,54 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * A short description of the validation.
      * 
* * string description = 1; - * * @param value The description to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + 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; @@ -1031,67 +946,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int status_ = 0; /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The enum numeric value on the wire for status. */ - @java.lang.Override - public int getStatusValue() { + @java.lang.Override public int getStatusValue() { return status_; } /** - * - * *
      * Validation execution status.
      * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @param value The enum numeric value on the wire for status to set. * @return This builder for chaining. */ 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. */ @@ -1099,50 +998,39 @@ 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.
      * 
@@ -1157,8 +1045,6 @@ public java.util.List ge } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1173,8 +1059,6 @@ public int getMessageCount() { } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1189,8 +1073,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1212,8 +1094,6 @@ public Builder setMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1232,8 +1112,6 @@ public Builder setMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1254,8 +1132,6 @@ public Builder addMessage(com.google.cloud.datastream.v1alpha1.ValidationMessage return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1277,8 +1153,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1297,8 +1171,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1317,8 +1189,6 @@ public Builder addMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1326,11 +1196,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); @@ -1338,8 +1208,6 @@ public Builder addAllMessage( return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1357,8 +1225,6 @@ public Builder clearMessage() { return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1376,8 +1242,6 @@ public Builder removeMessage(int index) { return this; } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1389,8 +1253,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage return getMessageFieldBuilder().getBuilder(index); } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1400,22 +1262,19 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder( int index) { if (messageBuilder_ == null) { - return message_.get(index); - } else { + return message_.get(index); } else { return messageBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - public java.util.List - getMessageOrBuilderList() { + public java.util.List + getMessageOrBuilderList() { if (messageBuilder_ != null) { return messageBuilder_.getMessageOrBuilderList(); } else { @@ -1423,8 +1282,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1432,12 +1289,10 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessageBuilder() { - return getMessageFieldBuilder() - .addBuilder(com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder().addBuilder( + com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); } /** - * - * *
      * Messages reflecting the validation results.
      * 
@@ -1446,36 +1301,30 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessage */ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessageBuilder( int index) { - return getMessageFieldBuilder() - .addBuilder( - index, com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); + return getMessageFieldBuilder().addBuilder( + index, com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()); } /** - * - * *
      * Messages reflecting the validation results.
      * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - public java.util.List - getMessageBuilderList() { + public java.util.List + getMessageBuilderList() { return getMessageFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> + com.google.cloud.datastream.v1alpha1.ValidationMessage, com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder> getMessageFieldBuilder() { if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datastream.v1alpha1.ValidationMessage, - com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder, - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder>( - message_, ((bitField0_ & 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_; @@ -1483,20 +1332,18 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder addMessage private java.lang.Object code_ = ""; /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return The code. */ public java.lang.String getCode() { java.lang.Object ref = code_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); code_ = s; return s; @@ -1505,21 +1352,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1527,68 +1373,61 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * A custom code identifying this validation.
      * 
* * string code = 4; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { + 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); } @@ -1598,12 +1437,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(); } @@ -1612,16 +1451,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; @@ -1636,4 +1475,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.Validation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java similarity index 65% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java index baf32115..6ac4f520 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessage.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; /** - * - * *
  * Represent user-facing validation result message.
  * 
* * Protobuf type {@code google.cloud.datastream.v1alpha1.ValidationMessage} */ -public final class ValidationMessage extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ValidationMessage extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.ValidationMessage) ValidationMessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ValidationMessage.newBuilder() to construct. private ValidationMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ValidationMessage() { message_ = ""; level_ = 0; @@ -45,15 +27,16 @@ 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) @@ -73,100 +56,91 @@ 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; - } - com.google.protobuf.MapEntry metadata__ = - input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - metadata_.getMutableMap().put(metadata__.getKey(), metadata__.getValue()); - break; + level_ = rawValue; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + 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; - } - break; + code_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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.
      * 
@@ -175,8 +149,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ LEVEL_UNSPECIFIED(0), /** - * - * *
      * Potentially cause issues with the Stream.
      * 
@@ -185,8 +157,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ WARNING(1), /** - * - * *
      * Definitely cause issues with the Stream.
      * 
@@ -198,8 +168,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Unspecified level.
      * 
@@ -208,8 +176,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Potentially cause issues with the Stream.
      * 
@@ -218,8 +184,6 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int WARNING_VALUE = 1; /** - * - * *
      * Definitely cause issues with the Stream.
      * 
@@ -228,6 +192,7 @@ public enum Level implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ERROR_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -252,51 +217,49 @@ public static Level valueOf(int value) { */ public static Level forNumber(int value) { switch (value) { - case 0: - return LEVEL_UNSPECIFIED; - case 1: - return WARNING; - case 2: - return ERROR; - default: - return null; + case 0: return LEVEL_UNSPECIFIED; + case 1: return WARNING; + case 2: return ERROR; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + Level> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Level findValueByNumber(int number) { + return Level.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datastream.v1alpha1.ValidationMessage.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datastream.v1alpha1.ValidationMessage.getDescriptor().getEnumTypes().get(0); } private static final Level[] VALUES = values(); - public static Level valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Level valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -316,14 +279,11 @@ 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 @@ -332,29 +292,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 { @@ -365,59 +325,49 @@ public com.google.protobuf.ByteString getMessageBytes() { 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 defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto - .internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); } - - private com.google.protobuf.MapField metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } @@ -426,30 +376,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
    * 
@@ -457,12 +405,11 @@ 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.
    * 
@@ -470,17 +417,16 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -488,11 +434,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -502,14 +449,11 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { 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 @@ -518,29 +462,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 { @@ -549,7 +493,6 @@ public com.google.protobuf.ByteString getCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -561,17 +504,20 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } - if (level_ - != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED - .getNumber()) { + if (level_ != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { output.writeEnum(2, level_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( - output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 3); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -587,20 +533,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } - if (level_ - != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, level_); - } - for (java.util.Map.Entry entry : - internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry metadata__ = - MetadataDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metadata__); + if (level_ != com.google.cloud.datastream.v1alpha1.ValidationMessage.Level.LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, level_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(code_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, code_); @@ -613,18 +558,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.ValidationMessage)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.ValidationMessage other = - (com.google.cloud.datastream.v1alpha1.ValidationMessage) obj; + com.google.cloud.datastream.v1alpha1.ValidationMessage other = (com.google.cloud.datastream.v1alpha1.ValidationMessage) obj; - if (!getMessage().equals(other.getMessage())) return false; + if (!getMessage() + .equals(other.getMessage())) return false; if (level_ != other.level_) return false; - if (!internalGetMetadata().equals(other.internalGetMetadata())) return false; - if (!getCode().equals(other.getCode())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; + if (!getCode() + .equals(other.getCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -652,147 +599,139 @@ 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() @@ -800,15 +739,16 @@ 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(); @@ -823,9 +763,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 @@ -844,8 +784,7 @@ 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_; @@ -860,39 +799,38 @@ 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; @@ -900,8 +838,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationMessage other) { - if (other == com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ValidationMessage.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; onChanged(); @@ -909,7 +846,8 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationMessage if (other.level_ != 0) { setLevelValue(other.getLevelValue()); } - internalGetMutableMetadata().mergeFrom(other.internalGetMetadata()); + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); if (!other.getCode().isEmpty()) { code_ = other.code_; onChanged(); @@ -933,8 +871,7 @@ 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) { @@ -943,25 +880,22 @@ 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; @@ -970,21 +904,20 @@ public java.lang.String getMessage() { } } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @return The bytes for message. */ - public com.google.protobuf.ByteString getMessageBytes() { + public com.google.protobuf.ByteString + getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); message_ = b; return b; } else { @@ -992,61 +925,54 @@ public com.google.protobuf.ByteString getMessageBytes() { } } /** - * - * *
      * The result of the validation.
      * 
* * string message = 1; - * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage(java.lang.String value) { + 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; @@ -1054,67 +980,51 @@ public Builder setMessageBytes(com.google.protobuf.ByteString value) { private int level_ = 0; /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ - @java.lang.Override - public int getLevelValue() { + @java.lang.Override public int getLevelValue() { return level_; } /** - * - * *
      * Message severity level (warning or error).
      * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @param value The enum numeric value on the wire for level to set. * @return This builder for chaining. */ 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. */ @@ -1122,45 +1032,42 @@ 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 metadata_; - - private com.google.protobuf.MapField internalGetMetadata() { + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField(MetadataDefaultEntryHolder.defaultEntry); + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); } return metadata_; } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - 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(); @@ -1172,30 +1079,28 @@ 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 java.lang.NullPointerException(); - } + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
      * 
@@ -1203,12 +1108,11 @@ 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.
      * 
@@ -1216,17 +1120,16 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * Additional metadata related to the result.
      * 
@@ -1234,11 +1137,12 @@ 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetMetadata().getMap(); + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1246,79 +1150,78 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { } 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 java.lang.NullPointerException(); - } - internalGetMutableMetadata().getMutableMap().remove(key); + + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableMetadata().getMutableMap().put(key, value); + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + 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; @@ -1327,21 +1230,20 @@ public java.lang.String getCode() { } } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @return The bytes for code. */ - public com.google.protobuf.ByteString getCodeBytes() { + public com.google.protobuf.ByteString + getCodeBytes() { java.lang.Object ref = code_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); code_ = b; return b; } else { @@ -1349,68 +1251,61 @@ public com.google.protobuf.ByteString getCodeBytes() { } } /** - * - * *
      * A custom code identifying this specific message.
      * 
* * string code = 4; - * * @param value The code to set. * @return This builder for chaining. */ - public Builder setCode(java.lang.String value) { + 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); } @@ -1420,12 +1315,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(); } @@ -1434,16 +1329,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; @@ -1458,4 +1353,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java similarity index 64% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java index d08afb54..71293ffa 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationMessageOrBuilder.java @@ -1,81 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ValidationMessageOrBuilder - extends +public interface ValidationMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ValidationMessage) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The message. */ java.lang.String getMessage(); /** - * - * *
    * The result of the validation.
    * 
* * string message = 1; - * * @return The bytes for message. */ - com.google.protobuf.ByteString getMessageBytes(); + com.google.protobuf.ByteString + getMessageBytes(); /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The enum numeric value on the wire for level. */ int getLevelValue(); /** - * - * *
    * Message severity level (warning or error).
    * 
* * .google.cloud.datastream.v1alpha1.ValidationMessage.Level level = 2; - * * @return The level. */ com.google.cloud.datastream.v1alpha1.ValidationMessage.Level getLevel(); /** - * - * *
    * Additional metadata related to the result.
    * 
@@ -84,71 +55,68 @@ public interface ValidationMessageOrBuilder */ int getMetadataCount(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - boolean containsMetadata(java.lang.String key); - /** Use {@link #getMetadataMap()} instead. */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ @java.lang.Deprecated - java.util.Map getMetadata(); + java.util.Map + getMetadata(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.util.Map getMetadataMap(); + java.util.Map + getMetadataMap(); /** - * - * *
    * Additional metadata related to the result.
    * 
* * map<string, string> metadata = 3; */ - java.lang.String getMetadataOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getMetadataOrDefault( + java.lang.String key, + 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/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java similarity index 73% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java index 8dfef25e..3afd6fa6 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface ValidationOrBuilder - extends +public interface ValidationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.Validation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * A short description of the validation.
    * 
* * string description = 1; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** - * - * *
    * Validation execution status.
    * 
* * .google.cloud.datastream.v1alpha1.Validation.Status status = 2; - * * @return The status. */ com.google.cloud.datastream.v1alpha1.Validation.Status getStatus(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - java.util.List getMessageList(); + java.util.List + getMessageList(); /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -94,8 +64,6 @@ public interface ValidationOrBuilder */ com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int index); /** - * - * *
    * Messages reflecting the validation results.
    * 
@@ -104,49 +72,41 @@ public interface ValidationOrBuilder */ int getMessageCount(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - java.util.List + java.util.List getMessageOrBuilderList(); /** - * - * *
    * Messages reflecting the validation results.
    * 
* * repeated .google.cloud.datastream.v1alpha1.ValidationMessage message = 3; */ - com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder(int index); + com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessageOrBuilder( + int index); /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The code. */ java.lang.String getCode(); /** - * - * *
    * A custom code identifying this validation.
    * 
* * string code = 4; - * * @return The bytes for code. */ - com.google.protobuf.ByteString getCodeBytes(); + com.google.protobuf.ByteString + getCodeBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java similarity index 75% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java index 16e545fe..53cdbd98 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResult.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the 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) @@ -71,31 +54,29 @@ private ValidationResult( case 0: done = true; break; - 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; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + validations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + validations_.add( + input.readMessage(com.google.cloud.datastream.v1alpha1.Validation.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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_); @@ -104,27 +85,22 @@ 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).
@@ -137,8 +113,6 @@ public java.util.List getValida
     return validations_;
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -147,13 +121,11 @@ public java.util.List getValida
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getValidationsOrBuilderList() {
     return validations_;
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -166,8 +138,6 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -180,8 +150,6 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
     return validations_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -196,7 +164,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -208,7 +175,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -222,7 +190,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < validations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, validations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, validations_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -232,15 +201,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;
   }
@@ -262,127 +231,117 @@ 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() @@ -390,17 +349,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(); @@ -414,9 +373,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 @@ -435,8 +394,7 @@ 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)) { @@ -455,39 +413,38 @@ 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; @@ -495,8 +452,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationResult other) { - if (other == com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.datastream.v1alpha1.ValidationResult.getDefaultInstance()) return this; if (validationsBuilder_ == null) { if (!other.validations_.isEmpty()) { if (validations_.isEmpty()) { @@ -515,10 +471,9 @@ public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.ValidationResult o validationsBuilder_ = null; validations_ = other.validations_; bitField0_ = (bitField0_ & ~0x00000001); - validationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getValidationsFieldBuilder() - : null; + validationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidationsFieldBuilder() : null; } else { validationsBuilder_.addAllMessages(other.validations_); } @@ -543,8 +498,7 @@ 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) { @@ -553,29 +507,21 @@ 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).
@@ -591,8 +537,6 @@ public java.util.List getValida
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -608,8 +552,6 @@ public int getValidationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -625,8 +567,6 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -649,8 +589,6 @@ public Builder setValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -670,8 +608,6 @@ public Builder setValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -693,8 +629,6 @@ public Builder addValidations(com.google.cloud.datastream.v1alpha1.Validation va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -717,8 +651,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -738,8 +670,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -759,8 +689,6 @@ public Builder addValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -772,7 +700,8 @@ public Builder addAllValidations(
         java.lang.Iterable values) {
       if (validationsBuilder_ == null) {
         ensureValidationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, validations_);
         onChanged();
       } else {
         validationsBuilder_.addAllMessages(values);
@@ -780,8 +709,6 @@ public Builder addAllValidations(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -800,8 +727,6 @@ public Builder clearValidations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -820,8 +745,6 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -834,8 +757,6 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder getValidationsBui
       return getValidationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -846,14 +767,11 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder getValidationsBui
     public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(
         int index) {
       if (validationsBuilder_ == null) {
-        return validations_.get(index);
-      } else {
+        return validations_.get(index);  } else {
         return validationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -861,8 +779,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 {
@@ -870,8 +788,6 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
       }
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -880,12 +796,10 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
     public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBuilder() {
-      return getValidationsFieldBuilder()
-          .addBuilder(com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder().addBuilder(
+          com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -895,12 +809,10 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBui
      */
     public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBuilder(
         int index) {
-      return getValidationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
+      return getValidationsFieldBuilder().addBuilder(
+          index, com.google.cloud.datastream.v1alpha1.Validation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -908,30 +820,27 @@ public com.google.cloud.datastream.v1alpha1.Validation.Builder addValidationsBui
      *
      * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
      */
-    public java.util.List
-        getValidationsBuilderList() {
+    public java.util.List 
+         getValidationsBuilderList() {
       return getValidationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datastream.v1alpha1.Validation,
-            com.google.cloud.datastream.v1alpha1.Validation.Builder,
-            com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>
+        com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder> 
         getValidationsFieldBuilder() {
       if (validationsBuilder_ == null) {
-        validationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datastream.v1alpha1.Validation,
-                com.google.cloud.datastream.v1alpha1.Validation.Builder,
-                com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>(
-                validations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        validationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datastream.v1alpha1.Validation, com.google.cloud.datastream.v1alpha1.Validation.Builder, com.google.cloud.datastream.v1alpha1.ValidationOrBuilder>(
+                validations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         validations_ = null;
       }
       return validationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -941,12 +850,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();
   }
@@ -955,16 +864,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;
@@ -979,4 +888,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datastream.v1alpha1.ValidationResult getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
similarity index 69%
rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
index b43f8e41..383c1067 100644
--- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
+++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/ValidationResultOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
-public interface ValidationResultOrBuilder
-    extends
+public interface ValidationResultOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.ValidationResult)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -33,10 +15,9 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  java.util.List getValidationsList();
+  java.util.List 
+      getValidationsList();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -46,8 +27,6 @@ public interface ValidationResultOrBuilder
    */
   com.google.cloud.datastream.v1alpha1.Validation getValidations(int index);
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -57,8 +36,6 @@ public interface ValidationResultOrBuilder
    */
   int getValidationsCount();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -66,11 +43,9 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  java.util.List
+  java.util.List 
       getValidationsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -78,5 +53,6 @@ public interface ValidationResultOrBuilder
    *
    * repeated .google.cloud.datastream.v1alpha1.Validation validations = 1;
    */
-  com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(int index);
+  com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
similarity index 70%
rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
index d31fc2ea..643f41a8 100644
--- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
+++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfig.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/datastream/v1alpha1/datastream_resources.proto
 
 package com.google.cloud.datastream.v1alpha1;
 
 /**
- *
- *
  * 
  * The VPC Peering configuration is used to create VPC peering between
  * Datastream and the consumer's VPC.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datastream.v1alpha1.VpcPeeringConfig}
  */
-public final class VpcPeeringConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VpcPeeringConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datastream.v1alpha1.VpcPeeringConfig)
     VpcPeeringConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VpcPeeringConfig.newBuilder() to construct.
   private VpcPeeringConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VpcPeeringConfig() {
     vpcName_ = "";
     subnet_ = "";
@@ -45,15 +27,16 @@ 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)
@@ -72,65 +55,58 @@ 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;
-              }
-              break;
+            subnet_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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 @@ -139,29 +115,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 { @@ -172,14 +148,11 @@ public com.google.protobuf.ByteString getVpcNameBytes() { 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 @@ -188,29 +161,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 { @@ -219,7 +192,6 @@ public com.google.protobuf.ByteString getSubnetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(vpcName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, vpcName_); } @@ -261,16 +234,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.v1alpha1.VpcPeeringConfig)) { return super.equals(obj); } - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other = - (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) obj; + com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other = (com.google.cloud.datastream.v1alpha1.VpcPeeringConfig) obj; - if (!getVpcName().equals(other.getVpcName())) return false; - if (!getSubnet().equals(other.getSubnet())) return false; + if (!getVpcName() + .equals(other.getVpcName())) return false; + if (!getSubnet() + .equals(other.getSubnet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,104 +266,96 @@ public int hashCode() { } public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datastream.v1alpha1.VpcPeeringConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datastream.v1alpha1.VpcPeeringConfig prototype) { + public static Builder newBuilder(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The VPC Peering configuration is used to create VPC peering between
    * Datastream and the consumer's VPC.
@@ -397,23 +363,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datastream.v1alpha1.VpcPeeringConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datastream.v1alpha1.VpcPeeringConfig)
       com.google.cloud.datastream.v1alpha1.VpcPeeringConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto
-          .internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
+      return com.google.cloud.datastream.v1alpha1.CloudDatastreamResourcesProto.internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class,
-              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
+              com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.class, com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.newBuilder()
@@ -421,15 +385,16 @@ 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();
@@ -441,9 +406,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
@@ -462,8 +427,7 @@ 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();
@@ -474,39 +438,38 @@ 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;
@@ -514,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datastream.v1alpha1.VpcPeeringConfig other) {
-      if (other == com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datastream.v1alpha1.VpcPeeringConfig.getDefaultInstance()) return this;
       if (!other.getVpcName().isEmpty()) {
         vpcName_ = other.vpcName_;
         onChanged();
@@ -543,8 +505,7 @@ 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) {
@@ -556,20 +517,18 @@ 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; @@ -578,21 +537,20 @@ public java.lang.String getVpcName() { } } /** - * - * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vpcName. */ - public com.google.protobuf.ByteString getVpcNameBytes() { + public com.google.protobuf.ByteString + getVpcNameBytes() { java.lang.Object ref = vpcName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); vpcName_ = b; return b; } else { @@ -600,61 +558,54 @@ public com.google.protobuf.ByteString getVpcNameBytes() { } } /** - * - * *
      * Required. fully qualified name of the VPC Datastream will peer to.
      * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The vpcName to set. * @return This builder for chaining. */ - public Builder setVpcName(java.lang.String value) { + 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; @@ -662,20 +613,18 @@ public Builder setVpcNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object subnet_ = ""; /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ public java.lang.String getSubnet() { java.lang.Object ref = subnet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); subnet_ = s; return s; @@ -684,21 +633,20 @@ public java.lang.String getSubnet() { } } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ - public com.google.protobuf.ByteString getSubnetBytes() { + public com.google.protobuf.ByteString + getSubnetBytes() { java.lang.Object ref = subnet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); subnet_ = b; return b; } else { @@ -706,68 +654,61 @@ public com.google.protobuf.ByteString getSubnetBytes() { } } /** - * - * *
      * Required. A free subnet for peering. (CIDR of /29)
      * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The subnet to set. * @return This builder for chaining. */ - public Builder setSubnet(java.lang.String value) { + 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); } @@ -777,12 +718,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(); } @@ -791,16 +732,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; @@ -815,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1alpha1.VpcPeeringConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java similarity index 60% rename from proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java index 70db0c12..88f44375 100644 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java +++ b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/VpcPeeringConfigOrBuilder.java @@ -1,75 +1,49 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datastream/v1alpha1/datastream_resources.proto package com.google.cloud.datastream.v1alpha1; -public interface VpcPeeringConfigOrBuilder - extends +public interface VpcPeeringConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.VpcPeeringConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The vpcName. */ java.lang.String getVpcName(); /** - * - * *
    * Required. fully qualified name of the VPC Datastream will peer to.
    * 
* * string vpc_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for vpcName. */ - com.google.protobuf.ByteString getVpcNameBytes(); + com.google.protobuf.ByteString + getVpcNameBytes(); /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The subnet. */ java.lang.String getSubnet(); /** - * - * *
    * Required. A free subnet for peering. (CIDR of /29)
    * 
* * string subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for subnet. */ - com.google.protobuf.ByteString getSubnetBytes(); + com.google.protobuf.ByteString + getSubnetBytes(); } diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream.proto diff --git a/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto b/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto similarity index 100% rename from proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto rename to owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/proto/google/cloud/datastream/v1alpha1/datastream_resources.proto 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 deleted file mode 100644 index 5950a815..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface AvroFileFormatOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.AvroFileFormat) - com.google.protobuf.MessageOrBuilder {} diff --git a/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 deleted file mode 100644 index 3c834769..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java +++ /dev/null @@ -1,835 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public final class CloudDatastreamResourcesProto { - private CloudDatastreamResourcesProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleProfile_ConnectionAttributesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GcsProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_NoConnectivitySettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_StaticServiceIpConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ForwardSshTunnelConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_VpcPeeringConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnection_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_PrivateConnectivity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Route_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Route_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Route_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlSslConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ConnectionProfile_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OracleSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlColumn_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlTable_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlDatabase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlRdbms_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_MysqlSourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_SourceConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_AvroFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_JsonFileFormat_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GcsDestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DestinationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillAllStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_BackfillNoneStrategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Stream_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Error_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Error_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Error_DetailsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_Validation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_Validation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ValidationMessage_MetadataEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/datastream/v1alpha1/datas" - + "tream_resources.proto\022 google.cloud.data" - + "stream.v1alpha1\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032\036goo" - + "gle/protobuf/duration.proto\032\037google/prot" - + "obuf/timestamp.proto\032\034google/api/annotat" - + "ions.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\010username\030\003 " - + "\001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020datab" - + "ase_service\030\005 \001(\tB\003\340A\002\022h\n\025connection_att" - + "ributes\030\006 \003(\0132I.google.cloud.datastream." - + "v1alpha1.OracleProfile.ConnectionAttribu" - + "tesEntry\032;\n\031ConnectionAttributesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\014MysqlP" - + "rofile\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\010password\030\004" - + " \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001(\01320.googl" - + "e.cloud.datastream.v1alpha1.MysqlSslConf" - + "ig\"9\n\nGcsProfile\022\030\n\013bucket_name\030\001 \001(\tB\003\340" - + "A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoConnectivityS" - + "ettings\"\035\n\033StaticServiceIpConnectivity\"\250" - + "\001\n\034ForwardSshTunnelConnectivity\022\025\n\010hostn" - + "ame\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\013" - + "private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authenticati" - + "on_method\">\n\020VpcPeeringConfig\022\025\n\010vpc_nam" - + "e\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\324\005\n\021Pr" - + "ivateConnection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" - + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?" - + ".google.cloud.datastream.v1alpha1.Privat" - + "eConnection.LabelsEntry\022\031\n\014display_name\030" - + "\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.google.cloud" - + ".datastream.v1alpha1.PrivateConnection.S" - + "tateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.google.cloud." - + "datastream.v1alpha1.ErrorB\003\340A\003\022N\n\022vpc_pe" - + "ering_config\030d \001(\01322.google.cloud.datast" - + "ream.v1alpha1.VpcPeeringConfig\032-\n\013Labels" - + "Entry\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\010CREATIN" - + "G\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201\001\352A~\n+data" - + "stream.googleapis.com/PrivateConnection\022" - + "Oprojects/{project}/locations/{location}" - + "/privateConnections/{private_connection}" - + "\";\n\023PrivateConnectivity\022$\n\027private_conne" - + "ction_name\030\001 \001(\tB\003\340A\002\"\331\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.TimestampB\003\340A\003\0224\n\013update_time\030" - + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C" - + "\n\006labels\030\004 \003(\01323.google.cloud.datastream" - + ".v1alpha1.Route.LabelsEntry\022\031\n\014display_n" - + "ame\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\013La" - + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001:\205\001\352A\201\001\n\037datastream.googleapis.com/Rout" - + "e\022^projects/{project}/locations/{locatio" - + "n}/privateConnections/{private_connectio" - + "n}/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\n" - + "client_key\030\013 \001(\tB\003\340A\004\022\033\n\016client_key_set\030" - + "\014 \001(\010B\003\340A\003\022\037\n\022client_certificate\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_cert" - + "ificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021ConnectionPro" - + "file\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" - + "\013update_time\030\003 \001(\0132\032.google.protobuf.Tim" - + "estampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.clo" - + "ud.datastream.v1alpha1.ConnectionProfile" - + ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" - + "I\n\016oracle_profile\030d \001(\0132/.google.cloud.d" - + "atastream.v1alpha1.OracleProfileH\000\022C\n\013gc" - + "s_profile\030e \001(\0132,.google.cloud.datastrea" - + "m.v1alpha1.GcsProfileH\000\022G\n\rmysql_profile" - + "\030f \001(\0132..google.cloud.datastream.v1alpha" - + "1.MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001" - + "(\01328.google.cloud.datastream.v1alpha1.No" - + "ConnectivitySettingsH\001\022h\n\036static_service" - + "_ip_connectivity\030\311\001 \001(\0132=.google.cloud.d" - + "atastream.v1alpha1.StaticServiceIpConnec" - + "tivityH\001\022c\n\030forward_ssh_connectivity\030\312\001 " - + "\001(\0132>.google.cloud.datastream.v1alpha1.F" - + "orwardSshTunnelConnectivityH\001\022V\n\024private" - + "_connectivity\030\313\001 \001(\01325.google.cloud.data" - + "stream.v1alpha1.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/Co" - + "nnectionProfile\022Oprojects/{project}/loca" - + "tions/{location}/connectionProfiles/{con" - + "nection_profile}B\t\n\007profileB\016\n\014connectiv" - + "ity\"\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\t" - + "precision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encodi" - + "ng\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullabl" - + "e\030\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Ora" - + "cleTable\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_c" - + "olumns\030\002 \003(\0132..google.cloud.datastream.v" - + "1alpha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013" - + "schema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\013" - + "2-.google.cloud.datastream.v1alpha1.Orac" - + "leTable\"U\n\013OracleRdbms\022F\n\016oracle_schemas" - + "\030\001 \003(\0132..google.cloud.datastream.v1alpha" - + "1.OracleSchema\"\231\001\n\022OracleSourceConfig\022@\n" - + "\tallowlist\030\001 \001(\0132-.google.cloud.datastre" - + "am.v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 " - + "\001(\0132-.google.cloud.datastream.v1alpha1.O" - + "racleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013column_nam" - + "e\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_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-.google.cloud.d" - + "atastream.v1alpha1.MysqlColumn\"j\n\rMysqlD" - + "atabase\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_" - + "tables\030\002 \003(\0132,.google.cloud.datastream.v" - + "1alpha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysq" - + "l_databases\030\001 \003(\0132/.google.cloud.datastr" - + "eam.v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSour" - + "ceConfig\022?\n\tallowlist\030\001 \001(\0132,.google.clo" - + "ud.datastream.v1alpha1.MysqlRdbms\022@\n\nrej" - + "ectlist\030\002 \001(\0132,.google.cloud.datastream." - + "v1alpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036" - + "source_connection_profile_name\030\001 \001(\tB\003\340A" - + "\002\022T\n\024oracle_source_config\030d \001(\01324.google" - + ".cloud.datastream.v1alpha1.OracleSourceC" - + "onfigH\000\022R\n\023mysql_source_config\030e \001(\01323.g" - + "oogle.cloud.datastream.v1alpha1.MysqlSou" - + "rceConfigH\000B\026\n\024source_stream_config\"\020\n\016A" - + "vroFileFormat\"\212\002\n\016JsonFileFormat\022N\n\022sche" - + "ma_file_format\030\001 \001(\01622.google.cloud.data" - + "stream.v1alpha1.SchemaFileFormat\022U\n\013comp" - + "ression\030\002 \001(\0162@.google.cloud.datastream." - + "v1alpha1.JsonFileFormat.JsonCompression\"" - + "Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_U" - + "NSPECIFIED\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/.google.clou" - + "d.datastream.v1alpha1.GcsFileFormatB\002\030\001\022" - + "\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026file_rotati" - + "on_interval\030\004 \001(\0132\031.google.protobuf.Dura" - + "tion\022L\n\020avro_file_format\030d \001(\01320.google." - + "cloud.datastream.v1alpha1.AvroFileFormat" - + "H\000\022L\n\020json_file_format\030e \001(\01320.google.cl" - + "oud.datastream.v1alpha1.JsonFileFormatH\000" - + "B\r\n\013file_format\"\274\001\n\021DestinationConfig\0220\n" - + "#destination_connection_profile_name\030\001 \001" - + "(\tB\003\340A\002\022X\n\026gcs_destination_config\030d \001(\0132" - + "6.google.cloud.datastream.v1alpha1.GcsDe" - + "stinationConfigH\000B\033\n\031destination_stream_" - + "config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" - + "create_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\013" - + "24.google.cloud.datastream.v1alpha1.Stre" - + "am.LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A" - + "\002\022J\n\rsource_config\030\006 \001(\0132..google.cloud." - + "datastream.v1alpha1.SourceConfigB\003\340A\002\022T\n" - + "\022destination_config\030\007 \001(\01323.google.cloud" - + ".datastream.v1alpha1.DestinationConfigB\003" - + "\340A\002\022=\n\005state\030\010 \001(\0162..google.cloud.datast" - + "ream.v1alpha1.Stream.State\022T\n\014backfill_a" - + "ll\030e \001(\0132<.google.cloud.datastream.v1alp" - + "ha1.Stream.BackfillAllStrategyH\000\022V\n\rback" - + "fill_none\030f \001(\0132=.google.cloud.datastrea" - + "m.v1alpha1.Stream.BackfillNoneStrategyH\000" - + "\022<\n\006errors\030\t \003(\0132\'.google.cloud.datastre" - + "am.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllSt" - + "rategy\022P\n\027oracle_excluded_objects\030\001 \001(\0132" - + "-.google.cloud.datastream.v1alpha1.Oracl" - + "eRdbmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\013" - + "2,.google.cloud.datastream.v1alpha1.Mysq" - + "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\"\225\001\n\005State\022\025\n\021STATE_U" - + "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\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\010STARTING\020\007\022\014\n" - + "\010DRAINING\020\010:_\352A\\\n datastream.googleapis." - + "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\ne" - + "rror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerro" - + "r_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "\022E\n\007details\030\005 \003(\01324.google.cloud.datastr" - + "eam.v1alpha1.Error.DetailsEntry\032.\n\014Detai" - + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "U\n\020ValidationResult\022A\n\013validations\030\001 \003(\013" - + "2,.google.cloud.datastream.v1alpha1.Vali" - + "dation\"\206\002\n\nValidation\022\023\n\013description\030\001 \001" - + "(\t\022C\n\006status\030\002 \001(\01623.google.cloud.datast" - + "ream.v1alpha1.Validation.Status\022D\n\007messa" - + "ge\030\003 \003(\01323.google.cloud.datastream.v1alp" - + "ha1.ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006S" - + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXE" - + "CUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Vali" - + "dationMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030" - + "\002 \001(\01629.google.cloud.datastream.v1alpha1" - + ".ValidationMessage.Level\022S\n\010metadata\030\003 \003" - + "(\0132A.google.cloud.datastream.v1alpha1.Va" - + "lidationMessage.MetadataEntry\022\014\n\004code\030\004 " - + "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" - + "ue\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFI" - + "ED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileF" - + "ormat\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010" - + "\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHE" - + "MA_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEM" - + "A_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.g" - + "oogle.cloud.datastream.v1alpha1B\035CloudDa" - + "tastreamResourcesProtoP\001ZJgoogle.golang." - + "org/genproto/googleapis/cloud/datastream" - + "/v1alpha1;datastream\252\002 Google.Cloud.Data" - + "stream.V1Alpha1\312\002 Google\\Cloud\\Datastrea" - + "m\\V1alpha1\352\002#Google::Cloud::Datastream::" - + "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(), - com.google.api.AnnotationsProto.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(); - com.google.api.AnnotationsProto.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 deleted file mode 100644 index 02306caf..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java +++ /dev/null @@ -1,699 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public final class CloudDatastreamServiceProto { - private CloudDatastreamServiceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DiscoverConnectionProfileResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchStaticIpsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_FetchErrorsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListConnectionProfilesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_UpdateConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteConnectionProfileRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_UpdateStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreatePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListPrivateConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeletePrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetPrivateConnectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_CreateRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListRoutesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_ListRoutesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_DeleteRouteRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datastream_v1alpha1_GetRouteRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/datastream/v1alpha1/datas" - + "tream.proto\022 google.cloud.datastream.v1a" - + "lpha1\032\034google/api/annotations.proto\032\027goo" - + "gle/api/client.proto\032\037google/api/field_b" - + "ehavior.proto\032\031google/api/resource.proto" - + "\032;google/cloud/datastream/v1alpha1/datas" - + "tream_resources.proto\032#google/longrunnin" - + "g/operations.proto\032 google/protobuf/fiel" - + "d_mask.proto\032\037google/protobuf/timestamp." - + "proto\"\275\003\n DiscoverConnectionProfileReque" - + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.g" - + "oogleapis.com/ConnectionProfile\022R\n\022conne" - + "ction_profile\030\310\001 \001(\01323.google.cloud.data" - + "stream.v1alpha1.ConnectionProfileH\000\022\"\n\027c" - + "onnection_profile_name\030\311\001 \001(\tH\000\022\023\n\trecur" - + "sive\030\003 \001(\010H\001\022\031\n\017recursion_depth\030\004 \001(\005H\001\022" - + "E\n\014oracle_rdbms\030d \001(\0132-.google.cloud.dat" - + "astream.v1alpha1.OracleRdbmsH\002\022C\n\013mysql_" - + "rdbms\030e \001(\0132,.google.cloud.datastream.v1" - + "alpha1.MysqlRdbmsH\002B\010\n\006targetB\007\n\005depthB\r" - + "\n\013data_object\"\276\001\n!DiscoverConnectionProf" - + "ileResponse\022E\n\014oracle_rdbms\030d \001(\0132-.goog" - + "le.cloud.datastream.v1alpha1.OracleRdbms" - + "H\000\022C\n\013mysql_rdbms\030e \001(\0132,.google.cloud.d" - + "atastream.v1alpha1.MysqlRdbmsH\000B\r\n\013data_" - + "object\"w\n\025FetchStaticIpsRequest\0227\n\004name\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nsta" - + "tic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"K" - + "\n\022FetchErrorsRequest\0225\n\006stream\030\001 \001(\tB%\372A" - + "\"\n datastream.googleapis.com/Stream\"N\n\023F" - + "etchErrorsResponse\0227\n\006errors\030\001 \003(\0132\'.goo" - + "gle.cloud.datastream.v1alpha1.Error\"\255\001\n\035" - + "ListConnectionProfilesRequest\022C\n\006parent\030" - + "\001 \001(\tB3\340A\002\372A-\022+datastream.googleapis.com" - + "/ConnectionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n" - + "\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010ord" - + "er_by\030\005 \001(\t\"\240\001\n\036ListConnectionProfilesRe" - + "sponse\022P\n\023connection_profiles\030\001 \003(\01323.go" - + "ogle.cloud.datastream.v1alpha1.Connectio" - + "nProfile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unr" - + "eachable\030\003 \003(\t\"`\n\033GetConnectionProfileRe" - + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream." - + "googleapis.com/ConnectionProfile\"\370\001\n\036Cre" - + "ateConnectionProfileRequest\022C\n\006parent\030\001 " - + "\001(\tB3\340A\002\372A-\022+datastream.googleapis.com/C" - + "onnectionProfile\022\"\n\025connection_profile_i" - + "d\030\002 \001(\tB\003\340A\002\022T\n\022connection_profile\030\003 \001(\013" - + "23.google.cloud.datastream.v1alpha1.Conn" - + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003" - + "\340A\001\"\305\001\n\036UpdateConnectionProfileRequest\0224" - + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\022T\n\022connection_profile\030\002 \001(\013" - + "23.google.cloud.datastream.v1alpha1.Conn" - + "ectionProfileB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003" - + "\340A\001\"|\n\036DeleteConnectionProfileRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleap" - + "is.com/ConnectionProfile\022\027\n\nrequest_id\030\002" - + " \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pare" - + "nt\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis." - + "com/Stream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 " - + "\001(\t\"~\n\023ListStreamsResponse\0229\n\007streams\030\001 " - + "\003(\0132(.google.cloud.datastream.v1alpha1.S" - + "tream\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" - + "hable\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030" - + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" - + "/Stream\"\357\001\n\023CreateStreamRequest\0228\n\006paren" - + "t\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapis.c" - + "om/Stream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\022=\n\006str" - + "eam\030\003 \001(\0132(.google.cloud.datastream.v1al" - + "pha1.StreamB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" - + "\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006" - + " \001(\010B\003\340A\001\"\323\001\n\023UpdateStreamRequest\0224\n\013upd" - + "ate_mask\030\001 \001(\0132\032.google.protobuf.FieldMa" - + "skB\003\340A\001\022=\n\006stream\030\002 \001(\0132(.google.cloud.d" - + "atastream.v1alpha1.StreamB\003\340A\002\022\027\n\nreques" - + "t_id\030\003 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003" - + "\340A\001\022\022\n\005force\030\005 \001(\010B\003\340A\001\"f\n\023DeleteStreamR" - + "equest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n datastream" - + ".googleapis.com/Stream\022\027\n\nrequest_id\030\002 \001" - + "(\tB\003\340A\001\"\324\002\n\021OperationMetadata\0224\n\013create_" - + "time\030\001 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022\023\n\006target\030\003 \001(\tB\003\340A\003\022\021\n\004v" - + "erb\030\004 \001(\tB\003\340A\003\022\033\n\016status_message\030\005 \001(\tB\003" - + "\340A\003\022#\n\026requested_cancellation\030\006 \001(\010B\003\340A\003" - + "\022\030\n\013api_version\030\007 \001(\tB\003\340A\003\022R\n\021validation" - + "_result\030\010 \001(\01322.google.cloud.datastream." - + "v1alpha1.ValidationResultB\003\340A\003\"\370\001\n\036Creat" - + "ePrivateConnectionRequest\022C\n\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Pri" - + "vateConnection\022\"\n\025private_connection_id\030" - + "\002 \001(\tB\003\340A\002\022T\n\022private_connection\030\003 \001(\01323" - + ".google.cloud.datastream.v1alpha1.Privat" - + "eConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A" - + "\001\"\255\001\n\035ListPrivateConnectionsRequest\022C\n\006p" - + "arent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleap" - + "is.com/PrivateConnection\022\021\n\tpage_size\030\002 " - + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022" - + "\020\n\010order_by\030\005 \001(\t\"\240\001\n\036ListPrivateConnect" - + "ionsResponse\022P\n\023private_connections\030\001 \003(" - + "\01323.google.cloud.datastream.v1alpha1.Pri" - + "vateConnection\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateCo" - + "nnectionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+d" - + "atastream.googleapis.com/PrivateConnecti" - + "on\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\022\n\005force\030\003 \001" - + "(\010B\003\340A\001\"`\n\033GetPrivateConnectionRequest\022A" - + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.googlea" - + "pis.com/PrivateConnection\"\272\001\n\022CreateRout" - + "eRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datast" - + "ream.googleapis.com/Route\022\025\n\010route_id\030\002 " - + "\001(\tB\003\340A\002\022;\n\005route\030\003 \001(\0132\'.google.cloud.d" - + "atastream.v1alpha1.RouteB\003\340A\002\022\027\n\nrequest" - + "_id\030\004 \001(\tB\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006" - + "parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastream.googlea" - + "pis.com/Route\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by" - + "\030\005 \001(\t\"{\n\022ListRoutesResponse\0227\n\006routes\030\001" - + " \003(\0132\'.google.cloud.datastream.v1alpha1." - + "Route\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreac" - + "hable\030\003 \003(\t\"d\n\022DeleteRouteRequest\0225\n\004nam" - + "e\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleapis.c" - + "om/Route\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"H\n\017Get" - + "RouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037data" - + "stream.googleapis.com/Route2\212\'\n\nDatastre" - + "am\022\352\001\n\026ListConnectionProfiles\022?.google.c" - + "loud.datastream.v1alpha1.ListConnectionP" - + "rofilesRequest\032@.google.cloud.datastream" - + ".v1alpha1.ListConnectionProfilesResponse" - + "\"M\202\323\344\223\002>\022\022*\022" - + "\022* - * Required. The name of the connection profile resource to get. - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the connection profile resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 deleted file mode 100644 index 65bfd555..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetPrivateConnectionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the  private connectivity configuration to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 deleted file mode 100644 index 6d0de9d4..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetRouteRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetRouteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the Route resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 deleted file mode 100644 index af6e5e3a..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface GetStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.GetStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the stream resource to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 deleted file mode 100644 index cceee8ac..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface NoConnectivitySettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.NoConnectivitySettings) - com.google.protobuf.MessageOrBuilder {} diff --git a/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 deleted file mode 100644 index b5cbb65e..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface PrivateConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.PrivateConnectivity) - com.google.protobuf.MessageOrBuilder { - - /** - * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The privateConnectionName. - */ - java.lang.String getPrivateConnectionName(); - /** - * string private_connection_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for privateConnectionName. - */ - com.google.protobuf.ByteString getPrivateConnectionNameBytes(); -} diff --git a/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 deleted file mode 100644 index c157c67a..00000000 --- a/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datastream/v1alpha1/datastream_resources.proto - -package com.google.cloud.datastream.v1alpha1; - -public interface StaticServiceIpConnectivityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1alpha1.StaticServiceIpConnectivity) - com.google.protobuf.MessageOrBuilder {} From 8e03d4739ef0b6ba359b43151ef52af4dfd1d8cb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 1 Feb 2022 09:52:27 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= 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 --- google-cloud-datastream-bom/pom.xml | 10 + google-cloud-datastream/pom.xml | 9 + .../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 - .../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 - .../datastream/v1/DatastreamClientTest.java | 0 .../cloud/datastream/v1/MockDatastream.java | 0 .../datastream/v1/MockDatastreamImpl.java | 0 .../v1alpha1/DatastreamClientTest.java | 0 .../datastream/v1alpha1/MockDatastream.java | 0 .../v1alpha1/MockDatastreamImpl.java | 0 .../google/cloud/location/MockLocations.java | 0 .../cloud/location/MockLocationsImpl.java | 0 grpc-google-cloud-datastream-v1/pom.xml | 69 + .../cloud/datastream/v1/DatastreamGrpc.java | 3220 +++++++++++++++++ .../datastream/v1alpha1/DatastreamGrpc.java | 2768 ++++++++++++++ .../cloud/datastream/v1/DatastreamGrpc.java | 2399 ------------ .../v1/AvroFileFormatOrBuilder.java | 9 - .../cloud/datastream/v1/DatastreamProto.java | 735 ---- .../v1/DatastreamResourcesProto.java | 790 ---- .../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 | 65 - .../v1/StartBackfillJobRequestOrBuilder.java | 29 - .../StaticServiceIpConnectivityOrBuilder.java | 9 - .../v1/StopBackfillJobRequestOrBuilder.java | 29 - .../datastream/v1alpha1/DatastreamGrpc.java | 2059 ----------- .../v1alpha1/AvroFileFormatOrBuilder.java | 9 - .../CloudDatastreamResourcesProto.java | 715 ---- .../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 - pom.xml | 12 + .../clirr-ignored-differences.xml | 19 + proto-google-cloud-datastream-v1/pom.xml | 46 + .../cloud/datastream/v1/AvroFileFormat.java | 225 +- .../v1/AvroFileFormatOrBuilder.java | 24 + .../cloud/datastream/v1/BackfillJob.java | 1049 ++++-- .../datastream/v1/BackfillJobOrBuilder.java | 109 +- .../datastream/v1/ConnectionProfile.java | 1833 ++++++---- .../datastream/v1/ConnectionProfileName.java | 0 .../v1/ConnectionProfileOrBuilder.java | 177 +- .../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 | 805 +++++ .../v1/DatastreamResourcesProto.java | 924 +++++ .../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 | 513 ++- .../v1/DestinationConfigOrBuilder.java | 46 +- .../v1/DiscoverConnectionProfileRequest.java | 1000 +++-- ...overConnectionProfileRequestOrBuilder.java | 89 +- .../v1/DiscoverConnectionProfileResponse.java | 516 ++- ...verConnectionProfileResponseOrBuilder.java | 37 +- .../com/google/cloud/datastream/v1/Error.java | 805 +++-- .../cloud/datastream/v1/ErrorOrBuilder.java | 85 +- .../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 | 432 ++- .../v1/MysqlSourceConfigOrBuilder.java | 34 +- .../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 | 435 ++- .../v1/OracleSourceConfigOrBuilder.java | 34 +- .../cloud/datastream/v1/OracleTable.java | 443 ++- .../datastream/v1/OracleTableOrBuilder.java | 45 +- .../datastream/v1/PrivateConnection.java | 1348 ++++--- .../datastream/v1/PrivateConnectionName.java | 0 .../v1/PrivateConnectionOrBuilder.java | 141 +- .../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 | 114 +- .../cloud/datastream/v1/SourceConfig.java | 617 ++-- .../datastream/v1/SourceConfigOrBuilder.java | 54 +- .../datastream/v1/SourceObjectIdentifier.java | 1722 +++++---- .../v1/SourceObjectIdentifierOrBuilder.java | 113 + .../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 | 2767 +++++++++----- .../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 | 227 +- .../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 | 74 +- .../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 | 835 +++++ .../v1alpha1/CloudDatastreamServiceProto.java | 699 ++++ .../v1alpha1/ConnectionProfile.java | 2051 +++++++---- .../v1alpha1/ConnectionProfileName.java | 0 .../v1alpha1/ConnectionProfileOrBuilder.java | 194 +- .../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 | 85 +- .../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 | 828 +++-- .../GcsDestinationConfigOrBuilder.java | 75 +- .../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 | 144 +- .../v1alpha1/PrivateConnectivity.java | 300 +- .../PrivateConnectivityOrBuilder.java | 38 + .../cloud/datastream/v1alpha1/Route.java | 1037 +++--- .../cloud/datastream/v1alpha1/RouteName.java | 0 .../datastream/v1alpha1/RouteOrBuilder.java | 114 +- .../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 | 2826 +++++++++------ .../cloud/datastream/v1alpha1/StreamName.java | 0 .../datastream/v1alpha1/StreamOrBuilder.java | 208 +- .../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 | 74 +- .../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 versions.txt | 2 + 340 files changed, 66279 insertions(+), 41007 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/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/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/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%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/location/MockLocations.java (100%) rename {owl-bot-staging/v1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/location/MockLocationsImpl.java (100%) create mode 100644 grpc-google-cloud-datastream-v1/pom.xml 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/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 create mode 100644 proto-google-cloud-datastream-v1/clirr-ignored-differences.xml create mode 100644 proto-google-cloud-datastream-v1/pom.xml 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 (68%) 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/ConnectionProfile.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/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 (75%) 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 (71%) 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 (68%) 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 (60%) 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 (78%) 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 (68%) 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 (69%) 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 (68%) 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 (70%) 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 (69%) 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 (73%) 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 (61%) 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 (70%) 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 (71%) 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 (68%) 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 (70%) 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 (71%) 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/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 (69%) 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 (68%) 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 (67%) 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 (61%) 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 (67%) 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 (63%) 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 (68%) 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 (70%) 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 (76%) 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 (65%) 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 (70%) 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 (66%) 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 (72%) 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 (68%) 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 (68%) 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 (63%) 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 (64%) 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 (70%) 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%) diff --git a/google-cloud-datastream-bom/pom.xml b/google-cloud-datastream-bom/pom.xml index 85d28139..5ef36a74 100644 --- a/google-cloud-datastream-bom/pom.xml +++ b/google-cloud-datastream-bom/pom.xml @@ -63,11 +63,21 @@ grpc-google-cloud-datastream-v1alpha1 0.3.2-SNAPSHOT + + com.google.api.grpc + grpc-google-cloud-datastream-v1 + 0.3.2-SNAPSHOT + com.google.api.grpc proto-google-cloud-datastream-v1alpha1 0.3.2-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-datastream-v1 + 0.3.2-SNAPSHOT + diff --git a/google-cloud-datastream/pom.xml b/google-cloud-datastream/pom.xml index ca006158..80eb337a 100644 --- a/google-cloud-datastream/pom.xml +++ b/google-cloud-datastream/pom.xml @@ -42,6 +42,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-cloud-datastream-v1 + com.google.api.grpc proto-google-cloud-datastream-v1alpha1 @@ -76,6 +80,11 @@ grpc-google-cloud-datastream-v1alpha1 test + + com.google.api.grpc + grpc-google-cloud-datastream-v1 + test + com.google.api 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 06e33102..13dfc386 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 @@ -65,13 +65,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. *
* @@ -3303,8 +3303,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< @@ -3326,7 +3329,9 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -3362,8 +3367,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) { @@ -3383,7 +3391,10 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3430,7 +3441,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) { @@ -3450,7 +3464,10 @@ protected ListStreamsFixedSizeCollection createCollection( public static class ListStreamObjectsPagedResponse extends AbstractPagedListResponse< - ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, ListStreamObjectsPage, + ListStreamObjectsRequest, + ListStreamObjectsResponse, + StreamObject, + ListStreamObjectsPage, ListStreamObjectsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3471,7 +3488,9 @@ private ListStreamObjectsPagedResponse(ListStreamObjectsPage page) { public static class ListStreamObjectsPage extends AbstractPage< - ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, + ListStreamObjectsRequest, + ListStreamObjectsResponse, + StreamObject, ListStreamObjectsPage> { private ListStreamObjectsPage( @@ -3501,7 +3520,10 @@ public ApiFuture createPageAsync( public static class ListStreamObjectsFixedSizeCollection extends AbstractFixedSizeCollection< - ListStreamObjectsRequest, ListStreamObjectsResponse, StreamObject, ListStreamObjectsPage, + ListStreamObjectsRequest, + ListStreamObjectsResponse, + StreamObject, + ListStreamObjectsPage, ListStreamObjectsFixedSizeCollection> { private ListStreamObjectsFixedSizeCollection( @@ -3522,7 +3544,10 @@ protected ListStreamObjectsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3572,7 +3597,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) { @@ -3592,8 +3620,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< @@ -3615,7 +3646,9 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3651,8 +3684,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) { @@ -3672,7 +3708,10 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3719,7 +3758,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) { @@ -3739,7 +3781,10 @@ protected ListRoutesFixedSizeCollection createCollection( public static class ListLocationsPagedResponse extends AbstractPagedListResponse< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage, + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, ListLocationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -3789,7 +3834,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 8ecbbb12..67c71b7a 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 @@ -34,7 +34,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; @@ -55,9 +54,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 @@ -84,7 +83,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(); @@ -238,7 +238,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(); @@ -398,7 +399,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(); @@ -559,7 +561,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 4897a3a9..13093e1f 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 @@ -112,9 +112,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 @@ -143,7 +143,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 @@ -198,7 +199,8 @@ public class DatastreamStubSettings extends StubSettings private final UnaryCallSettings getPrivateConnectionSettings; private final PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings @@ -491,11 +493,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( @@ -505,7 +509,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -535,7 +540,8 @@ public ApiFuture getFuturePagedResponse( ListStreamObjectsRequest, ListStreamObjectsResponse, ListStreamObjectsPagedResponse> LIST_STREAM_OBJECTS_PAGE_STR_FACT = new PagedListResponseFactory< - ListStreamObjectsRequest, ListStreamObjectsResponse, + ListStreamObjectsRequest, + ListStreamObjectsResponse, ListStreamObjectsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -569,11 +575,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( @@ -583,7 +591,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, PrivateConnection> pageContext = PageContext.create( @@ -628,7 +637,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; @@ -782,7 +792,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; @@ -968,7 +979,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 @@ -1026,7 +1038,8 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1652,7 +1665,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; @@ -1827,7 +1841,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 a664cabc..222fa5c3 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/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 464d8ef4..e5f09a0f 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 @@ -61,13 +61,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. *
* @@ -2754,8 +2754,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< @@ -2777,7 +2780,9 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -2813,8 +2818,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) { @@ -2834,7 +2842,10 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2881,7 +2892,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) { @@ -2901,7 +2915,10 @@ protected ListStreamsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2951,7 +2968,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) { @@ -2971,8 +2991,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< @@ -2994,7 +3017,9 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3030,8 +3055,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) { @@ -3051,7 +3079,10 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3098,7 +3129,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 b52612ca..17b71807 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 @@ -32,7 +32,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; @@ -49,9 +48,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 @@ -79,7 +78,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(); @@ -215,7 +215,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(); @@ -364,7 +365,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(); @@ -505,7 +507,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 c9d5f6b3..8c09735a 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 @@ -99,9 +99,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 @@ -131,7 +131,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 @@ -179,7 +180,8 @@ public class DatastreamStubSettings extends StubSettings private final UnaryCallSettings getPrivateConnectionSettings; private final PagedCallSettings< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings @@ -392,11 +394,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( @@ -406,7 +410,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, ConnectionProfile> pageContext = PageContext.create( @@ -450,11 +455,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( @@ -464,7 +471,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, PrivateConnection> pageContext = PageContext.create( @@ -492,7 +500,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; @@ -628,7 +637,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; @@ -798,7 +808,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 @@ -849,7 +860,8 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1442,7 +1454,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; @@ -1599,7 +1612,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 70fe2ed4..4e95111f 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/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/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/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java b/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java rename to google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocations.java diff --git a/owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java rename to google-cloud-datastream/src/test/java/com/google/cloud/location/MockLocationsImpl.java diff --git a/grpc-google-cloud-datastream-v1/pom.xml b/grpc-google-cloud-datastream-v1/pom.xml new file mode 100644 index 00000000..c4c6cbb0 --- /dev/null +++ b/grpc-google-cloud-datastream-v1/pom.xml @@ -0,0 +1,69 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-datastream-v1 + 0.3.2-SNAPSHOT + grpc-google-cloud-datastream-v1 + GRPC library for google-cloud-datastream + + com.google.cloud + google-cloud-datastream-parent + 0.3.2-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-datastream-v1 + + + com.google.guava + guava + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + \ No newline at end of file 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/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 6eb225b6..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java +++ /dev/null @@ -1,735 +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\"\264\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\002B\010\n\006targetB\013" + - "\n\thierarchyB\r\n\013data_object\"\262\001\n!DiscoverC" + - "onnectionProfileResponse\022?\n\014oracle_rdbms" + - "\030d \001(\0132\'.google.cloud.datastream.v1.Orac" + - "leRdbmsH\000\022=\n\013mysql_rdbms\030e \001(\0132&.google." + - "cloud.datastream.v1.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_tok" + - "en\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nst" + - "atic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"" + - "\255\001\n\035ListConnectionProfilesRequest\022C\n\006par" + - "ent\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" + - "\010order_by\030\005 \001(\t\"\232\001\n\036ListConnectionProfil" + - "esResponse\022J\n\023connection_profiles\030\001 \003(\0132" + - "-.google.cloud.datastream.v1.ConnectionP" + - "rofile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"`\n\033GetConnectionProfileRequ" + - "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.go" + - "ogleapis.com/ConnectionProfile\"\242\002\n\036Creat" + - "eConnectionProfileRequest\022C\n\006parent\030\001 \001(" + - "\tB3\340A\002\372A-\022+datastream.googleapis.com/Con" + - "nectionProfile\022\"\n\025connection_profile_id\030" + - "\002 \001(\tB\003\340A\002\022N\n\022connection_profile\030\003 \001(\0132-" + - ".google.cloud.datastream.v1.ConnectionPr" + - "ofileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" + - "alidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003" + - "\340A\001\"\357\001\n\036UpdateConnectionProfileRequest\0224" + - "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\003\340A\001\022N\n\022connection_profile\030\002 \001(\013" + - "2-.google.cloud.datastream.v1.Connection" + - "ProfileB\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(\010" + - "B\003\340A\001\"|\n\036DeleteConnectionProfileRequest\022" + - "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.google" + - "apis.com/ConnectionProfile\022\027\n\nrequest_id" + - "\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pa" + - "rent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapi" + - "s.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\023ListStreamsResponse\0223\n\007streams\030" + - "\001 \003(\0132\".google.cloud.datastream.v1.Strea" + - "m\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + - "e\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030\001 \001(" + - "\tB(\340A\002\372A\"\n datastream.googleapis.com/Str" + - "eam\"\351\001\n\023CreateStreamRequest\0228\n\006parent\030\001 " + - "\001(\tB(\340A\002\372A\"\022 datastream.googleapis.com/S" + - "tream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030" + - "\003 \001(\0132\".google.cloud.datastream.v1.Strea" + - "mB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalid" + - "ate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" + - "\315\001\n\023UpdateStreamRequest\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_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001" + - "(\010B\003\340A\001\"f\n\023DeleteStreamRequest\0226\n\004name\030\001" + - " \001(\tB(\340A\002\372A\"\n datastream.googleapis.com/" + - "Stream\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"V\n\026GetSt" + - "reamObjectRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" + - "&datastream.googleapis.com/StreamObject\"" + - "\260\001\n\031LookupStreamObjectRequest\0228\n\006parent\030" + - "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + - "/Stream\022Y\n\030source_object_identifier\030\002 \001(" + - "\01322.google.cloud.datastream.v1.SourceObj" + - "ectIdentifierB\003\340A\002\"Y\n\027StartBackfillJobRe" + - "quest\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastrea" + - "m.googleapis.com/StreamObject\"T\n\030StartBa" + - "ckfillJobResponse\0228\n\006object\030\001 \001(\0132(.goog" + - "le.cloud.datastream.v1.StreamObject\"X\n\026S" + - "topBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340" + - "A\002\372A(\n&datastream.googleapis.com/StreamO" + - "bject\"S\n\027StopBackfillJobResponse\0228\n\006obje" + - "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" + - "reamObject\"\201\001\n\030ListStreamObjectsRequest\022" + - ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datastream.goog" + - "leapis.com/StreamObject\022\021\n\tpage_size\030\002 \001" + - "(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\031ListStreamObje" + - "ctsResponse\022@\n\016stream_objects\030\001 \003(\0132(.go" + - "ogle.cloud.datastream.v1.StreamObject\022\027\n" + - "\017next_page_token\030\002 \001(\t\"\316\002\n\021OperationMeta" + - "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + - "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" + - "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + - "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + - "\003\022L\n\021validation_result\030\010 \001(\0132,.google.cl" + - "oud.datastream.v1.ValidationResultB\003\340A\003\"" + - "\362\001\n\036CreatePrivateConnectionRequest\022C\n\006pa" + - "rent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapi" + - "s.com/PrivateConnection\022\"\n\025private_conne" + - "ction_id\030\002 \001(\tB\003\340A\002\022N\n\022private_connectio" + - "n\030\003 \001(\0132-.google.cloud.datastream.v1.Pri" + - "vateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" + - "\003\340A\001\"\255\001\n\035ListPrivateConnectionsRequest\022C" + - "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googl" + - "eapis.com/PrivateConnection\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + - "(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConn" + - "ectionsResponse\022J\n\023private_connections\030\001" + - " \003(\0132-.google.cloud.datastream.v1.Privat" + - "eConnection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + - "unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateConne" + - "ctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+data" + - "stream.googleapis.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\033GetPrivateConnectionRequest\022A\n\004n" + - "ame\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" + - ".com/PrivateConnection\"\264\001\n\022CreateRouteRe" + - "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastrea" + - "m.googleapis.com/Route\022\025\n\010route_id\030\002 \001(\t" + - "B\003\340A\002\0225\n\005route\030\003 \001(\0132!.google.cloud.data" + - "stream.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" + - "B\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 " + - "\001(\tB\'\340A\002\372A!\022\037datastream.googleapis.com/R" + - "oute\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n" + - "\022ListRoutesResponse\0221\n\006routes\030\001 \003(\0132!.go" + - "ogle.cloud.datastream.v1.Route\022\027\n\017next_p" + - "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022" + - "DeleteRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + - "\n\037datastream.googleapis.com/Route\022\027\n\nreq" + - "uest_id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n" + - "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleap" + - "is.com/Route2\375*\n\nDatastream\022\330\001\n\026ListConn" + - "ectionProfiles\0229.google.cloud.datastream" + - ".v1.ListConnectionProfilesRequest\032:.goog" + - "le.cloud.datastream.v1.ListConnectionPro" + - "filesResponse\"G\202\323\344\223\0028\0226/v1/{parent=proje" + - "cts/*/locations/*}/connectionProfiles\332A\006" + - "parent\022\305\001\n\024GetConnectionProfile\0227.google" + - ".cloud.datastream.v1.GetConnectionProfil" + - "eRequest\032-.google.cloud.datastream.v1.Co" + - "nnectionProfile\"E\202\323\344\223\0028\0226/v1/{name=proje" + - "cts/*/locations/*/connectionProfiles/*}\332" + - "A\004name\022\244\002\n\027CreateConnectionProfile\022:.goo" + - "gle.cloud.datastream.v1.CreateConnection" + - "ProfileRequest\032\035.google.longrunning.Oper" + - "ation\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/l" + - "ocations/*}/connectionProfiles:\022connecti" + - "on_profile\332A/parent,connection_profile,c" + - "onnection_profile_id\312A&\n\021ConnectionProfi" + - "le\022\021OperationMetadata\022\246\002\n\027UpdateConnecti" + - "onProfile\022:.google.cloud.datastream.v1.U" + - "pdateConnectionProfileRequest\032\035.google.l" + - "ongrunning.Operation\"\257\001\202\323\344\223\002_2I/v1/{conn" + - "ection_profile.name=projects/*/locations" + - "/*/connectionProfiles/*}:\022connection_pro" + - "file\332A\036connection_profile,update_mask\312A&" + - "\n\021ConnectionProfile\022\021OperationMetadata\022\350" + - "\001\n\027DeleteConnectionProfile\022:.google.clou" + - "d.datastream.v1.DeleteConnectionProfileR" + - "equest\032\035.google.longrunning.Operation\"r\202" + - "\323\344\223\0028*6/v1/{name=projects/*/locations/*/" + - "connectionProfiles/*}\332A\004name\312A*\n\025google." + - "protobuf.Empty\022\021OperationMetadata\022\344\001\n\031Di" + - "scoverConnectionProfile\022<.google.cloud.d" + - "atastream.v1.DiscoverConnectionProfileRe" + - "quest\032=.google.cloud.datastream.v1.Disco" + - "verConnectionProfileResponse\"J\202\323\344\223\002D\"?/v" + - "1/{parent=projects/*/locations/*}/connec" + - "tionProfiles:discover:\001*\022\254\001\n\013ListStreams" + - "\022..google.cloud.datastream.v1.ListStream" + - "sRequest\032/.google.cloud.datastream.v1.Li" + - "stStreamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=p" + - "rojects/*/locations/*}/streams\332A\006parent\022" + - "\231\001\n\tGetStream\022,.google.cloud.datastream." + - "v1.GetStreamRequest\032\".google.cloud.datas" + - "tream.v1.Stream\":\202\323\344\223\002-\022+/v1/{name=proje" + - "cts/*/locations/*/streams/*}\332A\004name\022\323\001\n\014" + - "CreateStream\022/.google.cloud.datastream.v" + - "1.CreateStreamRequest\032\035.google.longrunni" + - "ng.Operation\"s\202\323\344\223\0025\"+/v1/{parent=projec" + - "ts/*/locations/*}/streams:\006stream\332A\027pare" + - "nt,stream,stream_id\312A\033\n\006Stream\022\021Operatio" + - "nMetadata\022\325\001\n\014UpdateStream\022/.google.clou" + - "d.datastream.v1.UpdateStreamRequest\032\035.go" + - "ogle.longrunning.Operation\"u\202\323\344\223\002<22/v1/" + - "{stream.name=projects/*/locations/*/stre" + - "ams/*}:\006stream\332A\022stream,update_mask\312A\033\n\006" + - "Stream\022\021OperationMetadata\022\307\001\n\014DeleteStre" + - "am\022/.google.cloud.datastream.v1.DeleteSt" + - "reamRequest\032\035.google.longrunning.Operati" + - "on\"g\202\323\344\223\002-*+/v1/{name=projects/*/locatio" + - "ns/*/streams/*}\332A\004name\312A*\n\025google.protob" + - "uf.Empty\022\021OperationMetadata\022\265\001\n\017GetStrea" + - "mObject\0222.google.cloud.datastream.v1.Get" + - "StreamObjectRequest\032(.google.cloud.datas" + - "tream.v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name" + - "=projects/*/locations/*/streams/*/object" + - "s/*}\332A\004name\022\276\001\n\022LookupStreamObject\0225.goo" + - "gle.cloud.datastream.v1.LookupStreamObje" + - "ctRequest\032(.google.cloud.datastream.v1.S" + - "treamObject\"G\202\323\344\223\002A\"\n\nss" + - "l_config\030\005 \001(\0132*.google.cloud.datastream" + - ".v1.MysqlSslConfig\"4\n\nGcsProfile\022\023\n\006buck" + - "et\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\035\n\033Stat" + - "icServiceIpConnectivity\"\250\001\n\034ForwardSshTu" + - "nnelConnectivity\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\010" + - "password\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001" + - "(\tB\003\340A\004H\000B\027\n\025authentication_method\"]\n\020Vp" + - "cPeeringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037com" + - "pute.googleapis.com/Networks\022\023\n\006subnet\030\002" + - " \001(\tB\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" + - ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I" + - "\n\006labels\030\004 \003(\01329.google.cloud.datastream" + - ".v1.PrivateConnection.LabelsEntry\022\031\n\014dis" + - "play_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.go" + - "ogle.cloud.datastream.v1.PrivateConnecti" + - "on.StateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cl" + - "oud.datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peer" + - "ing_config\030d \001(\0132,.google.cloud.datastre" + - "am.v1.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\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007C" + - "REATED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FA" + - "ILED_TO_DELETE\020\005:\201\001\352A~\n+datastream.googl" + - "eapis.com/PrivateConnection\022Oprojects/{p" + - "roject}/locations/{location}/privateConn" + - "ections/{private_connection}\"f\n\023PrivateC" + - "onnectivity\022O\n\022private_connection\030\001 \001(\tB" + - "3\340A\002\372A-\n+datastream.googleapis.com/Priva" + - "teConnection\"\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" + - ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022=\n\006labels\030" + - "\004 \003(\0132-.google.cloud.datastream.v1.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\020des" + - "tination_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datas" + - "tream.googleapis.com/Route\022^projects/{pr" + - "oject}/locations/{location}/privateConne" + - "ctions/{private_connection}/routes/{rout" + - "e}\"\312\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(" + - "\tB\003\340A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022c" + - "lient_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_c" + - "ertificate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certific" + - "ate\030\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001" + - "(\010B\003\340A\003\"\242\007\n\021ConnectionProfile\022\021\n\004name\030\001 " + - "\001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " + - "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006" + - "labels\030\004 \003(\01329.google.cloud.datastream.v" + - "1.ConnectionProfile.LabelsEntry\022\031\n\014displ" + - "ay_name\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001" + - "(\0132).google.cloud.datastream.v1.OraclePr" + - "ofileH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cl" + - "oud.datastream.v1.GcsProfileH\000\022A\n\rmysql_" + - "profile\030f \001(\0132(.google.cloud.datastream." + - "v1.MysqlProfileH\000\022b\n\036static_service_ip_c" + - "onnectivity\030\310\001 \001(\01327.google.cloud.datast" + - "ream.v1.StaticServiceIpConnectivityH\001\022]\n" + - "\030forward_ssh_connectivity\030\311\001 \001(\01328.googl" + - "e.cloud.datastream.v1.ForwardSshTunnelCo" + - "nnectivityH\001\022P\n\024private_connectivity\030\312\001 " + - "\001(\0132/.google.cloud.datastream.v1.Private" + - "ConnectivityH\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\022Oprojec" + - "ts/{project}/locations/{location}/connec" + - "tionProfiles/{connection_profile}B\t\n\007pro" + - "fileB\016\n\014connectivity\"\266\001\n\014OracleColumn\022\016\n" + - "\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006leng" + - "th\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\"^\n\013OracleTable\022\r\n\005table\030\001 \001(\t\022@\n\016o" + - "racle_columns\030\002 \003(\0132(.google.cloud.datas" + - "tream.v1.OracleColumn\"^\n\014OracleSchema\022\016\n" + - "\006schema\030\001 \001(\t\022>\n\roracle_tables\030\002 \003(\0132\'.g" + - "oogle.cloud.datastream.v1.OracleTable\"O\n" + - "\013OracleRdbms\022@\n\016oracle_schemas\030\001 \003(\0132(.g" + - "oogle.cloud.datastream.v1.OracleSchema\"\230" + - "\001\n\022OracleSourceConfig\022@\n\017include_objects" + - "\030\001 \001(\0132\'.google.cloud.datastream.v1.Orac" + - "leRdbms\022@\n\017exclude_objects\030\002 \001(\0132\'.googl" + - "e.cloud.datastream.v1.OracleRdbms\"\224\001\n\013My" + - "sqlColumn\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\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_position\030\007 \001(\005\"[\n\nMysqlTable\022\r" + - "\n\005table\030\001 \001(\t\022>\n\rmysql_columns\030\002 \003(\0132\'.g" + - "oogle.cloud.datastream.v1.MysqlColumn\"_\n" + - "\rMysqlDatabase\022\020\n\010database\030\001 \001(\t\022<\n\014mysq" + - "l_tables\030\002 \003(\0132&.google.cloud.datastream" + - ".v1.MysqlTable\"P\n\nMysqlRdbms\022B\n\017mysql_da" + - "tabases\030\001 \003(\0132).google.cloud.datastream." + - "v1.MysqlDatabase\"\225\001\n\021MysqlSourceConfig\022?" + - "\n\017include_objects\030\001 \001(\0132&.google.cloud.d" + - "atastream.v1.MysqlRdbms\022?\n\017exclude_objec" + - "ts\030\002 \001(\0132&.google.cloud.datastream.v1.My" + - "sqlRdbms\"\234\002\n\014SourceConfig\022V\n\031source_conn" + - "ection_profile\030\001 \001(\tB3\340A\002\372A-\n+datastream" + - ".googleapis.com/ConnectionProfile\022N\n\024ora" + - "cle_source_config\030d \001(\0132..google.cloud.d" + - "atastream.v1.OracleSourceConfigH\000\022L\n\023mys" + - "ql_source_config\030e \001(\0132-.google.cloud.da" + - "tastream.v1.MysqlSourceConfigH\000B\026\n\024sourc" + - "e_stream_config\"\020\n\016AvroFileFormat\"\357\002\n\016Js" + - "onFileFormat\022W\n\022schema_file_format\030\001 \001(\016" + - "2;.google.cloud.datastream.v1.JsonFileFo" + - "rmat.SchemaFileFormat\022O\n\013compression\030\002 \001" + - "(\0162:.google.cloud.datastream.v1.JsonFile" + - "Format.JsonCompression\"`\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" + - "\"Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_" + - "UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZI" + - "P\020\002\"\230\002\n\024GcsDestinationConfig\022\014\n\004path\030\001 \001" + - "(\t\022\030\n\020file_rotation_mb\030\002 \001(\005\0229\n\026file_rot" + - "ation_interval\030\003 \001(\0132\031.google.protobuf.D" + - "uration\022F\n\020avro_file_format\030d \001(\0132*.goog" + - "le.cloud.datastream.v1.AvroFileFormatH\000\022" + - "F\n\020json_file_format\030e \001(\0132*.google.cloud" + - ".datastream.v1.JsonFileFormatH\000B\r\n\013file_" + - "format\"\341\001\n\021DestinationConfig\022[\n\036destinat" + - "ion_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+da" + - "tastream.googleapis.com/ConnectionProfil" + - "e\022R\n\026gcs_destination_config\030d \001(\01320.goog" + - "le.cloud.datastream.v1.GcsDestinationCon" + - "figH\000B\033\n\031destination_stream_config\"\375\t\n\006S" + - "tream\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\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132..google.cl" + - "oud.datastream.v1.Stream.LabelsEntry\022\031\n\014" + - "display_name\030\005 \001(\tB\003\340A\002\022D\n\rsource_config" + - "\030\006 \001(\0132(.google.cloud.datastream.v1.Sour" + - "ceConfigB\003\340A\002\022N\n\022destination_config\030\007 \001(" + - "\0132-.google.cloud.datastream.v1.Destinati" + - "onConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(.google.cl" + - "oud.datastream.v1.Stream.State\022N\n\014backfi" + - "ll_all\030e \001(\01326.google.cloud.datastream.v" + - "1.Stream.BackfillAllStrategyH\000\022P\n\rbackfi" + - "ll_none\030f \001(\01327.google.cloud.datastream." + - "v1.Stream.BackfillNoneStrategyH\000\0226\n\006erro" + - "rs\030\t \003(\0132!.google.cloud.datastream.v1.Er" + - "rorB\003\340A\003\0221\n\037customer_managed_encryption_" + - "key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\277\001\n\023BackfillAllStrat" + - "egy\022J\n\027oracle_excluded_objects\030\001 \001(\0132\'.g" + - "oogle.cloud.datastream.v1.OracleRdbmsH\000\022" + - "H\n\026mysql_excluded_objects\030\002 \001(\0132&.google" + - ".cloud.datastream.v1.MysqlRdbmsH\000B\022\n\020exc" + - "luded_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\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\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\006FAILED\020\005\022\026\n\022FAILED_P" + - "ERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DRAINING\020\010" + - ":_\352A\\\n datastream.googleapis.com/Stream\022" + - "8projects/{project}/locations/{location}" + - "/streams/{stream}B\023\n\021backfill_strategyB\"" + - "\n _customer_managed_encryption_key\"\342\003\n\014S" + - "treamObject\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\013update_time\030\003 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003\022\031\n\014display_name\030\005 \001(\t" + - "B\003\340A\002\0226\n\006errors\030\006 \003(\0132!.google.cloud.dat" + - "astream.v1.ErrorB\003\340A\003\022=\n\014backfill_job\030\007 " + - "\001(\0132\'.google.cloud.datastream.v1.Backfil" + - "lJob\022I\n\rsource_object\030\010 \001(\01322.google.clo" + - "ud.datastream.v1.SourceObjectIdentifier:" + - "v\352As\n&datastream.googleapis.com/StreamOb" + - "ject\022Iprojects/{project}/locations/{loca" + - "tion}/streams/{stream}/objects/{object}\"" + - "\202\003\n\026SourceObjectIdentifier\022f\n\021oracle_ide" + - "ntifier\030\001 \001(\0132I.google.cloud.datastream." + - "v1.SourceObjectIdentifier.OracleObjectId" + - "entifierH\000\022d\n\020mysql_identifier\030\002 \001(\0132H.g" + - "oogle.cloud.datastream.v1.SourceObjectId" + - "entifier.MysqlObjectIdentifierH\000\032A\n\026Orac" + - "leObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022" + - "\022\n\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdenti" + - "fier\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001" + - "(\tB\003\340A\002B\023\n\021source_identifier\"\372\003\n\013Backfil" + - "lJob\022<\n\005state\030\001 \001(\0162-.google.cloud.datas" + - "tream.v1.BackfillJob.State\022@\n\007trigger\030\002 " + - "\001(\0162/.google.cloud.datastream.v1.Backfil" + - "lJob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\003\0226\n\rlast_e" + - "nd_time\030\004 \001(\0132\032.google.protobuf.Timestam" + - "pB\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.da" + - "tastream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STAT" + - "E_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PEND" + - "ING\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\007Tr" + - "igger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMA" + - "TIC\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.T" + - "imestamp\022?\n\007details\030\005 \003(\0132..google.cloud" + - ".datastream.v1.Error.DetailsEntry\032.\n\014Det" + - "ailsEntry\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" + - "(\0132&.google.cloud.datastream.v1.Validati" + - "on\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;" + - "\n\005state\030\002 \001(\0162,.google.cloud.datastream." + - "v1.Validation.State\022>\n\007message\030\003 \003(\0132-.g" + - "oogle.cloud.datastream.v1.ValidationMess" + - "age\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSP" + - "ECIFIED\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\007mes" + - "sage\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud" + - ".datastream.v1.ValidationMessage.Level\022M" + - "\n\010metadata\030\003 \003(\0132;.google.cloud.datastre" + - "am.v1.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_U" + - "NSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\256\002\n" + - "\036com.google.cloud.datastream.v1B\030Datastr" + - "eamResourcesProtoP\001ZDgoogle.golang.org/g" + - "enproto/googleapis/cloud/datastream/v1;d" + - "atastream\252\002\032Google.Cloud.Datastream.V1\312\002" + - "\032Google\\Cloud\\Datastream\\V1\352\002\035Google::Cl" + - "oud::Datastream::V1\352AO\n\037compute.googleap" + - "is.com/Networks\022,projects/{project}/glob" + - "al/networks/{network}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - 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_GcsProfile_descriptor = - getDescriptor().getMessageTypes().get(2); - 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_StaticServiceIpConnectivity_descriptor = - getDescriptor().getMessageTypes().get(3); - 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(4); - 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(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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", "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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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", }); - internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = - getDescriptor().getMessageTypes().get(16); - 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(17); - 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(18); - 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(19); - 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(20); - 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", }); - internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = - getDescriptor().getMessageTypes().get(21); - 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", "SourceStreamConfig", }); - internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = - getDescriptor().getMessageTypes().get(22); - 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(23); - 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(24); - 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_DestinationConfig_descriptor = - getDescriptor().getMessageTypes().get(25); - 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", "DestinationStreamConfig", }); - internal_static_google_cloud_datastream_v1_Stream_descriptor = - getDescriptor().getMessageTypes().get(26); - 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", "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(27); - 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(28); - 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", "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_MysqlObjectIdentifier_descriptor = - internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor.getNestedTypes().get(1); - 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(29); - 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(30); - 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(31); - 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(32); - 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(33); - 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.AnnotationsProto.getDescriptor(); - 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 b89e2dd1..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java +++ /dev/null @@ -1,65 +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(); - - 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 5ddad119..00000000 --- a/owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java +++ /dev/null @@ -1,715 +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\032\034google/api/annotat" + - "ions.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\010username\030\003 " + - "\001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020datab" + - "ase_service\030\005 \001(\tB\003\340A\002\022h\n\025connection_att" + - "ributes\030\006 \003(\0132I.google.cloud.datastream." + - "v1alpha1.OracleProfile.ConnectionAttribu" + - "tesEntry\032;\n\031ConnectionAttributesEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\014MysqlP" + - "rofile\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\010password\030\004" + - " \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001(\01320.googl" + - "e.cloud.datastream.v1alpha1.MysqlSslConf" + - "ig\"9\n\nGcsProfile\022\030\n\013bucket_name\030\001 \001(\tB\003\340" + - "A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoConnectivityS" + - "ettings\"\035\n\033StaticServiceIpConnectivity\"\250" + - "\001\n\034ForwardSshTunnelConnectivity\022\025\n\010hostn" + - "ame\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\013" + - "private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authenticati" + - "on_method\">\n\020VpcPeeringConfig\022\025\n\010vpc_nam" + - "e\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\324\005\n\021Pr" + - "ivateConnection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" + - "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" + - "rotobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?" + - ".google.cloud.datastream.v1alpha1.Privat" + - "eConnection.LabelsEntry\022\031\n\014display_name\030" + - "\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.google.cloud" + - ".datastream.v1alpha1.PrivateConnection.S" + - "tateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.google.cloud." + - "datastream.v1alpha1.ErrorB\003\340A\003\022N\n\022vpc_pe" + - "ering_config\030d \001(\01322.google.cloud.datast" + - "ream.v1alpha1.VpcPeeringConfig\032-\n\013Labels" + - "Entry\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\010CREATIN" + - "G\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201\001\352A~\n+data" + - "stream.googleapis.com/PrivateConnection\022" + - "Oprojects/{project}/locations/{location}" + - "/privateConnections/{private_connection}" + - "\";\n\023PrivateConnectivity\022$\n\027private_conne" + - "ction_name\030\001 \001(\tB\003\340A\002\"\331\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.TimestampB\003\340A\003\0224\n\013update_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C" + - "\n\006labels\030\004 \003(\01323.google.cloud.datastream" + - ".v1alpha1.Route.LabelsEntry\022\031\n\014display_n" + - "ame\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\013La" + - "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001:\205\001\352A\201\001\n\037datastream.googleapis.com/Rout" + - "e\022^projects/{project}/locations/{locatio" + - "n}/privateConnections/{private_connectio" + - "n}/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\n" + - "client_key\030\013 \001(\tB\003\340A\004\022\033\n\016client_key_set\030" + - "\014 \001(\010B\003\340A\003\022\037\n\022client_certificate\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_cert" + - "ificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021ConnectionPro" + - "file\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" + - "\013update_time\030\003 \001(\0132\032.google.protobuf.Tim" + - "estampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.clo" + - "ud.datastream.v1alpha1.ConnectionProfile" + - ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" + - "I\n\016oracle_profile\030d \001(\0132/.google.cloud.d" + - "atastream.v1alpha1.OracleProfileH\000\022C\n\013gc" + - "s_profile\030e \001(\0132,.google.cloud.datastrea" + - "m.v1alpha1.GcsProfileH\000\022G\n\rmysql_profile" + - "\030f \001(\0132..google.cloud.datastream.v1alpha" + - "1.MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001" + - "(\01328.google.cloud.datastream.v1alpha1.No" + - "ConnectivitySettingsH\001\022h\n\036static_service" + - "_ip_connectivity\030\311\001 \001(\0132=.google.cloud.d" + - "atastream.v1alpha1.StaticServiceIpConnec" + - "tivityH\001\022c\n\030forward_ssh_connectivity\030\312\001 " + - "\001(\0132>.google.cloud.datastream.v1alpha1.F" + - "orwardSshTunnelConnectivityH\001\022V\n\024private" + - "_connectivity\030\313\001 \001(\01325.google.cloud.data" + - "stream.v1alpha1.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/Co" + - "nnectionProfile\022Oprojects/{project}/loca" + - "tions/{location}/connectionProfiles/{con" + - "nection_profile}B\t\n\007profileB\016\n\014connectiv" + - "ity\"\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\t" + - "precision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encodi" + - "ng\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullabl" + - "e\030\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Ora" + - "cleTable\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_c" + - "olumns\030\002 \003(\0132..google.cloud.datastream.v" + - "1alpha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013" + - "schema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\013" + - "2-.google.cloud.datastream.v1alpha1.Orac" + - "leTable\"U\n\013OracleRdbms\022F\n\016oracle_schemas" + - "\030\001 \003(\0132..google.cloud.datastream.v1alpha" + - "1.OracleSchema\"\231\001\n\022OracleSourceConfig\022@\n" + - "\tallowlist\030\001 \001(\0132-.google.cloud.datastre" + - "am.v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 " + - "\001(\0132-.google.cloud.datastream.v1alpha1.O" + - "racleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013column_nam" + - "e\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_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-.google.cloud.d" + - "atastream.v1alpha1.MysqlColumn\"j\n\rMysqlD" + - "atabase\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_" + - "tables\030\002 \003(\0132,.google.cloud.datastream.v" + - "1alpha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysq" + - "l_databases\030\001 \003(\0132/.google.cloud.datastr" + - "eam.v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSour" + - "ceConfig\022?\n\tallowlist\030\001 \001(\0132,.google.clo" + - "ud.datastream.v1alpha1.MysqlRdbms\022@\n\nrej" + - "ectlist\030\002 \001(\0132,.google.cloud.datastream." + - "v1alpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036" + - "source_connection_profile_name\030\001 \001(\tB\003\340A" + - "\002\022T\n\024oracle_source_config\030d \001(\01324.google" + - ".cloud.datastream.v1alpha1.OracleSourceC" + - "onfigH\000\022R\n\023mysql_source_config\030e \001(\01323.g" + - "oogle.cloud.datastream.v1alpha1.MysqlSou" + - "rceConfigH\000B\026\n\024source_stream_config\"\020\n\016A" + - "vroFileFormat\"\212\002\n\016JsonFileFormat\022N\n\022sche" + - "ma_file_format\030\001 \001(\01622.google.cloud.data" + - "stream.v1alpha1.SchemaFileFormat\022U\n\013comp" + - "ression\030\002 \001(\0162@.google.cloud.datastream." + - "v1alpha1.JsonFileFormat.JsonCompression\"" + - "Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_U" + - "NSPECIFIED\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/.google.clou" + - "d.datastream.v1alpha1.GcsFileFormatB\002\030\001\022" + - "\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026file_rotati" + - "on_interval\030\004 \001(\0132\031.google.protobuf.Dura" + - "tion\022L\n\020avro_file_format\030d \001(\01320.google." + - "cloud.datastream.v1alpha1.AvroFileFormat" + - "H\000\022L\n\020json_file_format\030e \001(\01320.google.cl" + - "oud.datastream.v1alpha1.JsonFileFormatH\000" + - "B\r\n\013file_format\"\274\001\n\021DestinationConfig\0220\n" + - "#destination_connection_profile_name\030\001 \001" + - "(\tB\003\340A\002\022X\n\026gcs_destination_config\030d \001(\0132" + - "6.google.cloud.datastream.v1alpha1.GcsDe" + - "stinationConfigH\000B\033\n\031destination_stream_" + - "config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" + - "create_time\030\002 \001(\0132\032.google.protobuf.Time" + - "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\013" + - "24.google.cloud.datastream.v1alpha1.Stre" + - "am.LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A" + - "\002\022J\n\rsource_config\030\006 \001(\0132..google.cloud." + - "datastream.v1alpha1.SourceConfigB\003\340A\002\022T\n" + - "\022destination_config\030\007 \001(\01323.google.cloud" + - ".datastream.v1alpha1.DestinationConfigB\003" + - "\340A\002\022=\n\005state\030\010 \001(\0162..google.cloud.datast" + - "ream.v1alpha1.Stream.State\022T\n\014backfill_a" + - "ll\030e \001(\0132<.google.cloud.datastream.v1alp" + - "ha1.Stream.BackfillAllStrategyH\000\022V\n\rback" + - "fill_none\030f \001(\0132=.google.cloud.datastrea" + - "m.v1alpha1.Stream.BackfillNoneStrategyH\000" + - "\022<\n\006errors\030\t \003(\0132\'.google.cloud.datastre" + - "am.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllSt" + - "rategy\022P\n\027oracle_excluded_objects\030\001 \001(\0132" + - "-.google.cloud.datastream.v1alpha1.Oracl" + - "eRdbmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\013" + - "2,.google.cloud.datastream.v1alpha1.Mysq" + - "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\"\225\001\n\005State\022\025\n\021STATE_U" + - "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\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\010STARTING\020\007\022\014\n" + - "\010DRAINING\020\010:_\352A\\\n datastream.googleapis." + - "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\ne" + - "rror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerro" + - "r_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + - "\022E\n\007details\030\005 \003(\01324.google.cloud.datastr" + - "eam.v1alpha1.Error.DetailsEntry\032.\n\014Detai" + - "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + - "U\n\020ValidationResult\022A\n\013validations\030\001 \003(\013" + - "2,.google.cloud.datastream.v1alpha1.Vali" + - "dation\"\206\002\n\nValidation\022\023\n\013description\030\001 \001" + - "(\t\022C\n\006status\030\002 \001(\01623.google.cloud.datast" + - "ream.v1alpha1.Validation.Status\022D\n\007messa" + - "ge\030\003 \003(\01323.google.cloud.datastream.v1alp" + - "ha1.ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006S" + - "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXE" + - "CUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Vali" + - "dationMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030" + - "\002 \001(\01629.google.cloud.datastream.v1alpha1" + - ".ValidationMessage.Level\022S\n\010metadata\030\003 \003" + - "(\0132A.google.cloud.datastream.v1alpha1.Va" + - "lidationMessage.MetadataEntry\022\014\n\004code\030\004 " + - "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFI" + - "ED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileF" + - "ormat\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010" + - "\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHE" + - "MA_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEM" + - "A_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.g" + - "oogle.cloud.datastream.v1alpha1B\035CloudDa" + - "tastreamResourcesProtoP\001ZJgoogle.golang." + - "org/genproto/googleapis/cloud/datastream" + - "/v1alpha1;datastream\252\002 Google.Cloud.Data" + - "stream.V1Alpha1\312\002 Google\\Cloud\\Datastrea" + - "m\\V1alpha1\352\002#Google::Cloud::Datastream::" + - "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(), - com.google.api.AnnotationsProto.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(); - com.google.api.AnnotationsProto.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/pom.xml b/pom.xml index 004b1b98..995b6ac4 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,16 @@ google-cloud-datastream 0.3.2-SNAPSHOT + + com.google.api.grpc + proto-google-cloud-datastream-v1 + 0.3.2-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-datastream-v1 + 0.3.2-SNAPSHOT + com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 @@ -112,7 +122,9 @@ google-cloud-datastream grpc-google-cloud-datastream-v1alpha1 + grpc-google-cloud-datastream-v1 proto-google-cloud-datastream-v1alpha1 + proto-google-cloud-datastream-v1 google-cloud-datastream-bom diff --git a/proto-google-cloud-datastream-v1/clirr-ignored-differences.xml b/proto-google-cloud-datastream-v1/clirr-ignored-differences.xml new file mode 100644 index 00000000..01209077 --- /dev/null +++ b/proto-google-cloud-datastream-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/cloud/datastream/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/datastream/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/datastream/v1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-datastream-v1/pom.xml b/proto-google-cloud-datastream-v1/pom.xml new file mode 100644 index 00000000..0ef6d188 --- /dev/null +++ b/proto-google-cloud-datastream-v1/pom.xml @@ -0,0 +1,46 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-datastream-v1 + 0.3.2-SNAPSHOT + proto-google-cloud-datastream-v1 + Proto library for google-cloud-datastream + + com.google.cloud + google-cloud-datastream-parent + 0.3.2-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + 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 68% 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 699b4568..98879a86 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,39 +68,42 @@ 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) { throw e.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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -115,12 +133,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; @@ -138,118 +157,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() @@ -257,16 +285,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(); @@ -274,9 +301,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 @@ -295,7 +322,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; } @@ -304,38 +332,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; @@ -372,9 +401,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); } @@ -384,12 +413,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(); } @@ -398,16 +427,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; @@ -422,6 +451,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 9c320037..54bf2e93 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,67 +73,74 @@ 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) { throw e.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_); @@ -125,29 +149,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.
      * 
@@ -156,6 +186,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
@@ -166,6 +198,8 @@ public enum State
      */
     NOT_STARTED(1),
     /**
+     *
+     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -174,6 +208,8 @@ public enum State */ PENDING(2), /** + * + * *
      * Backfill job is running.
      * 
@@ -182,6 +218,8 @@ public enum State */ ACTIVE(3), /** + * + * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -190,6 +228,8 @@ public enum State */ STOPPED(4), /** + * + * *
      * Backfill job failed (due to an error).
      * 
@@ -198,6 +238,8 @@ public enum State */ FAILED(5), /** + * + * *
      * Backfill completed successfully.
      * 
@@ -206,6 +248,8 @@ public enum State */ COMPLETED(6), /** + * + * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -218,6 +262,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Default value.
      * 
@@ -226,6 +272,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
@@ -236,6 +284,8 @@ public enum State
      */
     public static final int NOT_STARTED_VALUE = 1;
     /**
+     *
+     *
      * 
      * Backfill job will start pending available resources.
      * 
@@ -244,6 +294,8 @@ public enum State */ public static final int PENDING_VALUE = 2; /** + * + * *
      * Backfill job is running.
      * 
@@ -252,6 +304,8 @@ public enum State */ public static final int ACTIVE_VALUE = 3; /** + * + * *
      * Backfill job stopped (next job run will start from beginning).
      * 
@@ -260,6 +314,8 @@ public enum State */ public static final int STOPPED_VALUE = 4; /** + * + * *
      * Backfill job failed (due to an error).
      * 
@@ -268,6 +324,8 @@ public enum State */ public static final int FAILED_VALUE = 5; /** + * + * *
      * Backfill completed successfully.
      * 
@@ -276,6 +334,8 @@ public enum State */ public static final int COMPLETED_VALUE = 6; /** + * + * *
      * Backfill job failed since the table structure is currently unsupported
      * for backfill.
@@ -285,7 +345,6 @@ public enum State
      */
     public static final int UNSUPPORTED_VALUE = 7;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -310,54 +369,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;
@@ -375,15 +439,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.
      * 
@@ -392,6 +459,8 @@ public enum Trigger */ TRIGGER_UNSPECIFIED(0), /** + * + * *
      * Object backfill job was triggered automatically according to the stream's
      * backfill strategy.
@@ -401,6 +470,8 @@ public enum Trigger
      */
     AUTOMATIC(1),
     /**
+     *
+     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -412,6 +483,8 @@ public enum Trigger ; /** + * + * *
      * Default value.
      * 
@@ -420,6 +493,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.
@@ -429,6 +504,8 @@ public enum Trigger
      */
     public static final int AUTOMATIC_VALUE = 1;
     /**
+     *
+     *
      * 
      * Object backfill job was triggered manually using the dedicated API.
      * 
@@ -437,7 +514,6 @@ public enum Trigger */ public static final int MANUAL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -462,49 +538,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; @@ -524,65 +600,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 @@ -590,23 +691,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() { @@ -616,11 +728,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 @@ -628,11 +745,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 @@ -640,11 +762,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() { @@ -654,64 +780,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; @@ -723,12 +869,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) { @@ -750,24 +896,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; @@ -777,27 +919,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; } @@ -830,118 +970,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() @@ -949,17 +1098,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(); @@ -989,9 +1138,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 @@ -1010,7 +1159,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_; @@ -1041,38 +1191,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; @@ -1111,9 +1262,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_); } @@ -1147,55 +1299,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. */ @@ -1203,21 +1372,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; @@ -1225,51 +1397,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. */ @@ -1277,21 +1465,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; @@ -1299,39 +1490,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) { @@ -1347,14 +1557,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(); @@ -1365,17 +1578,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; } @@ -1387,11 +1606,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) { @@ -1405,48 +1628,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_; @@ -1454,39 +1693,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) { @@ -1502,14 +1760,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(); @@ -1520,17 +1781,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; } @@ -1542,11 +1809,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) { @@ -1560,71 +1831,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) { @@ -1634,11 +1929,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) { @@ -1648,11 +1947,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) { @@ -1662,14 +1965,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(); @@ -1683,11 +1989,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) { @@ -1701,11 +2011,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) { @@ -1721,14 +2035,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(); @@ -1742,14 +2059,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()); @@ -1760,11 +2080,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) { @@ -1778,18 +2102,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); @@ -1797,11 +2124,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) { @@ -1814,11 +2145,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) { @@ -1831,39 +2166,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 { @@ -1871,56 +2217,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); } @@ -1930,12 +2289,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(); } @@ -1944,16 +2303,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; @@ -1968,6 +2327,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/ConnectionProfile.java b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/ConnectionProfile.java similarity index 65% 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 e176a9f2..36b4c292 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,195 +73,229 @@ 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();
+              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 802: {
-            com.google.cloud.datastream.v1.OracleProfile.Builder subBuilder = null;
-            if (profileCase_ == 100) {
-              subBuilder = ((com.google.cloud.datastream.v1.OracleProfile) 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.OracleProfile.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datastream.v1.OracleProfile) 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_ = 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();
+          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;
             }
-            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();
+          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;
             }
-            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();
+          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;
             }
-            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 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;
-          }
-          case 1610: {
-            com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity.Builder subBuilder = null;
-            if (connectivityCase_ == 201) {
-              subBuilder = ((com.google.cloud.datastream.v1.ForwardSshTunnelConnectivity) connectivity_).toBuilder();
+          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;
             }
-            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();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              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();
-            }
-            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;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.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),
     MYSQL_PROFILE(102),
     PROFILE_NOT_SET(0);
     private final int value;
+
     private ProfileCase(int value) {
       this.value = value;
     }
@@ -260,34 +311,41 @@ 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 {
     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;
     }
@@ -303,32 +361,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 @@ -337,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 { @@ -370,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 @@ -382,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 @@ -394,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() { @@ -408,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 @@ -420,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 @@ -432,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() { @@ -444,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.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_; } @@ -470,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -499,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.
    * 
@@ -511,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -528,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -543,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 @@ -556,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 { @@ -588,11 +679,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 @@ -600,21 +694,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.
    * 
@@ -624,18 +723,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 @@ -643,21 +745,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.
    * 
@@ -667,18 +774,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 @@ -686,21 +796,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.
    * 
@@ -710,18 +825,23 @@ 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 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 @@ -729,42 +849,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 @@ -772,42 +907,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 @@ -815,21 +961,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.
    * 
@@ -837,14 +988,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; @@ -856,8 +1009,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -867,12 +1019,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_); } @@ -886,10 +1034,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(102, (com.google.cloud.datastream.v1.MysqlProfile) 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_); @@ -907,49 +1057,53 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, labels__); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (profileCase_ == 100) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(100, (com.google.cloud.datastream.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 (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; @@ -959,42 +1113,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.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 0: default: @@ -1002,16 +1149,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: @@ -1080,97 +1225,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.
@@ -1178,43 +1330,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()
@@ -1222,16 +1374,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();
@@ -1260,9 +1411,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
@@ -1281,7 +1432,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) {
@@ -1349,38 +1501,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;
@@ -1388,7 +1541,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();
@@ -1399,45 +1553,52 @@ 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 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 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();
@@ -1467,12 +1628,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() {
@@ -1484,10 +1645,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() {
@@ -1501,18 +1661,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; @@ -1521,20 +1683,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 { @@ -1542,54 +1705,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; @@ -1597,39 +1767,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) { @@ -1645,14 +1834,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(); @@ -1663,17 +1855,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; } @@ -1685,11 +1881,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) { @@ -1703,48 +1903,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_; @@ -1752,39 +1968,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) { @@ -1800,14 +2035,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(); @@ -1818,17 +2056,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; } @@ -1840,11 +2082,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) { @@ -1858,69 +2104,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(); @@ -1932,28 +2193,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1961,11 +2224,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1973,16 +2237,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1990,12 +2255,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2003,78 +2267,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -2083,20 +2348,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 { @@ -2104,67 +2370,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 @@ -2172,11 +2451,14 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override @@ -2194,6 +2476,8 @@ public com.google.cloud.datastream.v1.OracleProfile getOracleProfile() { } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2214,6 +2498,8 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1.OracleProfile val return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2232,6 +2518,8 @@ public Builder setOracleProfile( return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2240,10 +2528,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; } @@ -2258,6 +2549,8 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1.OracleProfile v return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2281,6 +2574,8 @@ public Builder clearOracleProfile() { return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2291,6 +2586,8 @@ public com.google.cloud.datastream.v1.OracleProfile.Builder getOracleProfileBuil return getOracleProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2309,6 +2606,8 @@ public com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrB } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2316,32 +2615,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 @@ -2349,11 +2660,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 @@ -2371,6 +2685,8 @@ public com.google.cloud.datastream.v1.GcsProfile getGcsProfile() { } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2391,6 +2707,8 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2409,6 +2727,8 @@ public Builder setGcsProfile( return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2417,10 +2737,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; } @@ -2435,6 +2758,8 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1.GcsProfile value) return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2458,6 +2783,8 @@ public Builder clearGcsProfile() { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2468,6 +2795,8 @@ public com.google.cloud.datastream.v1.GcsProfile.Builder getGcsProfileBuilder() return getGcsProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2486,6 +2815,8 @@ public com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2493,32 +2824,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 @@ -2526,11 +2869,14 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override @@ -2548,6 +2894,8 @@ public com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile() { } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2568,6 +2916,8 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile value return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2586,6 +2936,8 @@ public Builder setMysqlProfile( return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2594,10 +2946,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; } @@ -2612,6 +2967,8 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1.MysqlProfile val return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2635,6 +2992,8 @@ public Builder clearMysqlProfile() { return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2645,6 +3004,8 @@ public com.google.cloud.datastream.v1.MysqlProfile.Builder getMysqlProfileBuilde return getMysqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2663,6 +3024,8 @@ public com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBui } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2670,32 +3033,46 @@ 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.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 @@ -2703,15 +3080,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_; @@ -2725,13 +3108,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(); @@ -2745,11 +3133,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) { @@ -2763,18 +3155,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; } @@ -2789,11 +3191,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) { @@ -2812,24 +3218,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 { @@ -2840,39 +3256,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(); - } - 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>( + 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>( (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 @@ -2880,11 +3315,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 @@ -2902,13 +3342,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(); @@ -2922,11 +3367,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) { @@ -2940,18 +3389,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; } @@ -2966,11 +3425,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) { @@ -2989,24 +3452,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 { @@ -3017,39 +3490,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(); - } - 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>( + 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>( (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 @@ -3057,11 +3547,14 @@ public boolean hasPrivateConnectivity() { return connectivityCase_ == 202; } /** + * + * *
      * Private connectivity.
      * 
* * .google.cloud.datastream.v1.PrivateConnectivity private_connectivity = 202; + * * @return The privateConnectivity. */ @java.lang.Override @@ -3079,13 +3572,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(); @@ -3099,6 +3595,8 @@ public Builder setPrivateConnectivity(com.google.cloud.datastream.v1.PrivateConn return this; } /** + * + * *
      * Private connectivity.
      * 
@@ -3117,18 +3615,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; } @@ -3143,6 +3648,8 @@ public Builder mergePrivateConnectivity(com.google.cloud.datastream.v1.PrivateCo return this; } /** + * + * *
      * Private connectivity.
      * 
@@ -3166,16 +3673,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.
      * 
@@ -3183,7 +3695,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 { @@ -3194,6 +3707,8 @@ public com.google.cloud.datastream.v1.PrivateConnectivityOrBuilder getPrivateCon } } /** + * + * *
      * Private connectivity.
      * 
@@ -3201,26 +3716,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); } @@ -3230,12 +3751,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(); } @@ -3244,16 +3765,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; @@ -3268,6 +3789,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 75% 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 e16ba19a..4d593dd3 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,90 +135,101 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ boolean hasOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ com.google.cloud.datastream.v1.OracleProfile getOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -183,24 +239,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.OracleProfileOrBuilder getOracleProfileOrBuilder(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ boolean hasGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ com.google.cloud.datastream.v1.GcsProfile getGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -210,24 +274,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.GcsProfileOrBuilder getGcsProfileOrBuilder(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ boolean hasMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ com.google.cloud.datastream.v1.MysqlProfile getMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -237,78 +309,113 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); /** + * + * *
    * 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 1a2fabc5..519e41d2 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,87 +73,100 @@ 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) { throw e.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 @@ -144,29 +175,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 { @@ -177,11 +210,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 @@ -190,29 +226,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 { @@ -223,11 +259,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 @@ -235,23 +276,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() { @@ -261,6 +313,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
@@ -276,6 +330,7 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -284,14 +339,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
@@ -307,16 +363,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 { @@ -327,12 +382,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 @@ -343,11 +401,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 @@ -356,6 +417,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +429,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -403,19 +464,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; @@ -425,28 +483,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; } @@ -469,128 +522,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() @@ -598,16 +659,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(); @@ -631,13 +691,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(); } @@ -652,7 +713,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) { @@ -671,38 +733,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; @@ -710,7 +773,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(); @@ -751,7 +816,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) { @@ -763,18 +830,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; @@ -783,20 +854,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 { @@ -804,54 +878,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; @@ -859,18 +946,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; @@ -879,20 +968,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 { @@ -900,54 +990,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; @@ -955,39 +1052,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) { @@ -1003,11 +1119,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) { @@ -1021,17 +1141,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; } @@ -1043,11 +1169,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) { @@ -1061,48 +1191,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_; @@ -1110,6 +1257,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
@@ -1125,13 +1274,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; @@ -1140,6 +1289,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
@@ -1155,15 +1306,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 { @@ -1171,6 +1321,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
@@ -1186,20 +1338,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
@@ -1215,15 +1369,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
@@ -1239,29 +1396,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 @@ -1269,44 +1429,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 @@ -1314,37 +1483,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); } @@ -1354,12 +1529,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(); } @@ -1368,16 +1544,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; @@ -1392,6 +1568,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 fa33618e..4fc10a27 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,77 +73,90 @@ 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) { throw e.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 @@ -134,29 +165,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 { @@ -167,11 +200,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 @@ -180,29 +216,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 { @@ -213,11 +249,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 @@ -225,23 +266,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() { @@ -251,6 +303,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
@@ -266,6 +320,7 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -274,14 +329,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
@@ -297,16 +353,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 { @@ -315,6 +370,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -356,8 +411,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_); @@ -370,24 +424,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; } @@ -415,117 +466,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() @@ -533,16 +594,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(); @@ -562,13 +622,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(); } @@ -583,7 +644,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) { @@ -600,38 +662,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; @@ -639,7 +702,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(); @@ -674,7 +739,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) { @@ -686,18 +753,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; @@ -706,20 +777,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 { @@ -727,54 +801,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; @@ -782,18 +869,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; @@ -802,20 +891,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 { @@ -823,54 +913,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; @@ -878,39 +975,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) { @@ -926,11 +1042,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) { @@ -944,17 +1064,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; } @@ -966,11 +1092,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) { @@ -984,48 +1114,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_; @@ -1033,6 +1180,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
@@ -1048,13 +1197,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; @@ -1063,6 +1212,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,15 +1229,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 { @@ -1094,6 +1244,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,20 +1261,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
@@ -1138,15 +1292,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
@@ -1162,23 +1319,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); } @@ -1188,12 +1345,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(); } @@ -1202,16 +1360,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; @@ -1226,6 +1384,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 71% 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 b1e2501d..10840955 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,77 +72,90 @@ 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) { throw e.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 @@ -134,29 +164,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 { @@ -167,11 +199,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 @@ -180,29 +215,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 { @@ -213,11 +248,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 @@ -225,11 +264,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 @@ -237,11 +280,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() { @@ -251,6 +297,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
@@ -266,6 +314,7 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -274,14 +323,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
@@ -297,16 +347,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 { @@ -315,6 +364,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,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_); } @@ -356,8 +405,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_); @@ -370,24 +418,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; } @@ -415,117 +460,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() @@ -533,16 +587,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(); @@ -562,9 +615,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 @@ -583,7 +636,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) { @@ -600,38 +654,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; @@ -639,7 +694,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(); @@ -674,7 +730,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) { @@ -686,18 +743,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; @@ -706,20 +767,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 { @@ -727,54 +791,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; @@ -782,18 +859,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; @@ -802,20 +881,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 { @@ -823,54 +903,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; @@ -878,24 +965,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() { @@ -906,11 +1004,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) { @@ -926,14 +1027,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(); @@ -944,17 +1047,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; } @@ -966,11 +1074,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) { @@ -984,48 +1095,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_; @@ -1033,6 +1155,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
@@ -1048,13 +1172,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; @@ -1063,6 +1187,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,15 +1204,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 { @@ -1094,6 +1219,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,20 +1236,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
@@ -1138,15 +1267,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
@@ -1162,23 +1294,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); } @@ -1188,12 +1320,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(); } @@ -1202,16 +1334,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; @@ -1226,6 +1358,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 a4ecb337..47d03e74 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,87 +72,100 @@ 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) { throw e.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 @@ -144,29 +174,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 { @@ -177,11 +209,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 @@ -190,29 +225,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 { @@ -223,11 +258,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 @@ -235,11 +274,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 @@ -247,11 +290,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() { @@ -261,6 +307,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
@@ -276,6 +324,7 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -284,14 +333,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
@@ -307,16 +357,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 { @@ -327,12 +376,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 @@ -343,11 +395,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 @@ -356,6 +411,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +423,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -403,19 +458,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; @@ -425,28 +477,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; } @@ -469,128 +516,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() @@ -598,16 +652,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(); @@ -631,9 +684,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 @@ -652,7 +705,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) { @@ -671,38 +725,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; @@ -710,7 +765,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(); @@ -751,7 +807,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) { @@ -763,18 +820,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; @@ -783,20 +844,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 { @@ -804,54 +868,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; @@ -859,18 +936,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; @@ -879,20 +958,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 { @@ -900,54 +980,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; @@ -955,39 +1042,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) { @@ -1003,14 +1109,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(); @@ -1021,17 +1130,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; } @@ -1043,11 +1158,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) { @@ -1061,48 +1180,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_; @@ -1110,6 +1245,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
@@ -1125,13 +1262,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; @@ -1140,6 +1277,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
@@ -1155,15 +1294,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 { @@ -1171,6 +1309,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
@@ -1186,20 +1326,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
@@ -1215,15 +1357,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
@@ -1239,29 +1384,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 @@ -1269,44 +1417,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 @@ -1314,37 +1471,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); } @@ -1354,12 +1517,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(); } @@ -1368,16 +1531,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; @@ -1392,6 +1555,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..a4669b7e --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/DatastreamProto.java @@ -0,0 +1,805 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the 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\"\264\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\002B\010\n\006targetB\013" + + "\n\thierarchyB\r\n\013data_object\"\262\001\n!DiscoverC" + + "onnectionProfileResponse\022?\n\014oracle_rdbms" + + "\030d \001(\0132\'.google.cloud.datastream.v1.Orac" + + "leRdbmsH\000\022=\n\013mysql_rdbms\030e \001(\0132&.google." + + "cloud.datastream.v1.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_tok" + + "en\030\003 \001(\t\"E\n\026FetchStaticIpsResponse\022\022\n\nst" + + "atic_ips\030\001 \003(\t\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\255\001\n\035ListConnectionProfilesRequest\022C\n\006par" + + "ent\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" + + "\010order_by\030\005 \001(\t\"\232\001\n\036ListConnectionProfil" + + "esResponse\022J\n\023connection_profiles\030\001 \003(\0132" + + "-.google.cloud.datastream.v1.ConnectionP" + + "rofile\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"`\n\033GetConnectionProfileRequ" + + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.go" + + "ogleapis.com/ConnectionProfile\"\242\002\n\036Creat" + + "eConnectionProfileRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+datastream.googleapis.com/Con" + + "nectionProfile\022\"\n\025connection_profile_id\030" + + "\002 \001(\tB\003\340A\002\022N\n\022connection_profile\030\003 \001(\0132-" + + ".google.cloud.datastream.v1.ConnectionPr" + + "ofileB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rv" + + "alidate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003" + + "\340A\001\"\357\001\n\036UpdateConnectionProfileRequest\0224" + + "\n\013update_mask\030\001 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\003\340A\001\022N\n\022connection_profile\030\002 \001(\013" + + "2-.google.cloud.datastream.v1.Connection" + + "ProfileB\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(\010" + + "B\003\340A\001\"|\n\036DeleteConnectionProfileRequest\022" + + "A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+datastream.google" + + "apis.com/ConnectionProfile\022\027\n\nrequest_id" + + "\030\002 \001(\tB\003\340A\001\"\227\001\n\022ListStreamsRequest\0228\n\006pa" + + "rent\030\001 \001(\tB(\340A\002\372A\"\022 datastream.googleapi" + + "s.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\023ListStreamsResponse\0223\n\007streams\030" + + "\001 \003(\0132\".google.cloud.datastream.v1.Strea" + + "m\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachabl" + + "e\030\003 \003(\t\"J\n\020GetStreamRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n datastream.googleapis.com/Str" + + "eam\"\351\001\n\023CreateStreamRequest\0228\n\006parent\030\001 " + + "\001(\tB(\340A\002\372A\"\022 datastream.googleapis.com/S" + + "tream\022\026\n\tstream_id\030\002 \001(\tB\003\340A\002\0227\n\006stream\030" + + "\003 \001(\0132\".google.cloud.datastream.v1.Strea" + + "mB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalid" + + "ate_only\030\005 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\"" + + "\315\001\n\023UpdateStreamRequest\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_only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\005 \001" + + "(\010B\003\340A\001\"f\n\023DeleteStreamRequest\0226\n\004name\030\001" + + " \001(\tB(\340A\002\372A\"\n datastream.googleapis.com/" + + "Stream\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\"V\n\026GetSt" + + "reamObjectRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&datastream.googleapis.com/StreamObject\"" + + "\260\001\n\031LookupStreamObjectRequest\0228\n\006parent\030" + + "\001 \001(\tB(\340A\002\372A\"\n datastream.googleapis.com" + + "/Stream\022Y\n\030source_object_identifier\030\002 \001(" + + "\01322.google.cloud.datastream.v1.SourceObj" + + "ectIdentifierB\003\340A\002\"Y\n\027StartBackfillJobRe" + + "quest\022>\n\006object\030\001 \001(\tB.\340A\002\372A(\n&datastrea" + + "m.googleapis.com/StreamObject\"T\n\030StartBa" + + "ckfillJobResponse\0228\n\006object\030\001 \001(\0132(.goog" + + "le.cloud.datastream.v1.StreamObject\"X\n\026S" + + "topBackfillJobRequest\022>\n\006object\030\001 \001(\tB.\340" + + "A\002\372A(\n&datastream.googleapis.com/StreamO" + + "bject\"S\n\027StopBackfillJobResponse\0228\n\006obje" + + "ct\030\001 \001(\0132(.google.cloud.datastream.v1.St" + + "reamObject\"\201\001\n\030ListStreamObjectsRequest\022" + + ">\n\006parent\030\001 \001(\tB.\340A\002\372A(\022&datastream.goog" + + "leapis.com/StreamObject\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"v\n\031ListStreamObje" + + "ctsResponse\022@\n\016stream_objects\030\001 \003(\0132(.go" + + "ogle.cloud.datastream.v1.StreamObject\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\316\002\n\021OperationMeta" + + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030" + + "\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016status_" + + "message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cancella" + + "tion\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB\003\340A" + + "\003\022L\n\021validation_result\030\010 \001(\0132,.google.cl" + + "oud.datastream.v1.ValidationResultB\003\340A\003\"" + + "\362\001\n\036CreatePrivateConnectionRequest\022C\n\006pa" + + "rent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googleapi" + + "s.com/PrivateConnection\022\"\n\025private_conne" + + "ction_id\030\002 \001(\tB\003\340A\002\022N\n\022private_connectio" + + "n\030\003 \001(\0132-.google.cloud.datastream.v1.Pri" + + "vateConnectionB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB" + + "\003\340A\001\"\255\001\n\035ListPrivateConnectionsRequest\022C" + + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+datastream.googl" + + "eapis.com/PrivateConnection\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001" + + "(\t\022\020\n\010order_by\030\005 \001(\t\"\232\001\n\036ListPrivateConn" + + "ectionsResponse\022J\n\023private_connections\030\001" + + " \003(\0132-.google.cloud.datastream.v1.Privat" + + "eConnection\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013" + + "unreachable\030\003 \003(\t\"\220\001\n\036DeletePrivateConne" + + "ctionRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+data" + + "stream.googleapis.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\033GetPrivateConnectionRequest\022A\n\004n" + + "ame\030\001 \001(\tB3\340A\002\372A-\n+datastream.googleapis" + + ".com/PrivateConnection\"\264\001\n\022CreateRouteRe" + + "quest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037datastrea" + + "m.googleapis.com/Route\022\025\n\010route_id\030\002 \001(\t" + + "B\003\340A\002\0225\n\005route\030\003 \001(\0132!.google.cloud.data" + + "stream.v1.RouteB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\t" + + "B\003\340A\001\"\225\001\n\021ListRoutesRequest\0227\n\006parent\030\001 " + + "\001(\tB\'\340A\002\372A!\022\037datastream.googleapis.com/R" + + "oute\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"u\n" + + "\022ListRoutesResponse\0221\n\006routes\030\001 \003(\0132!.go" + + "ogle.cloud.datastream.v1.Route\022\027\n\017next_p" + + "age_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"d\n\022" + + "DeleteRouteRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!" + + "\n\037datastream.googleapis.com/Route\022\027\n\nreq" + + "uest_id\030\002 \001(\tB\003\340A\001\"H\n\017GetRouteRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n\037datastream.googleap" + + "is.com/Route2\375*\n\nDatastream\022\330\001\n\026ListConn" + + "ectionProfiles\0229.google.cloud.datastream" + + ".v1.ListConnectionProfilesRequest\032:.goog" + + "le.cloud.datastream.v1.ListConnectionPro" + + "filesResponse\"G\202\323\344\223\0028\0226/v1/{parent=proje" + + "cts/*/locations/*}/connectionProfiles\332A\006" + + "parent\022\305\001\n\024GetConnectionProfile\0227.google" + + ".cloud.datastream.v1.GetConnectionProfil" + + "eRequest\032-.google.cloud.datastream.v1.Co" + + "nnectionProfile\"E\202\323\344\223\0028\0226/v1/{name=proje" + + "cts/*/locations/*/connectionProfiles/*}\332" + + "A\004name\022\244\002\n\027CreateConnectionProfile\022:.goo" + + "gle.cloud.datastream.v1.CreateConnection" + + "ProfileRequest\032\035.google.longrunning.Oper" + + "ation\"\255\001\202\323\344\223\002L\"6/v1/{parent=projects/*/l" + + "ocations/*}/connectionProfiles:\022connecti" + + "on_profile\332A/parent,connection_profile,c" + + "onnection_profile_id\312A&\n\021ConnectionProfi" + + "le\022\021OperationMetadata\022\246\002\n\027UpdateConnecti" + + "onProfile\022:.google.cloud.datastream.v1.U" + + "pdateConnectionProfileRequest\032\035.google.l" + + "ongrunning.Operation\"\257\001\202\323\344\223\002_2I/v1/{conn" + + "ection_profile.name=projects/*/locations" + + "/*/connectionProfiles/*}:\022connection_pro" + + "file\332A\036connection_profile,update_mask\312A&" + + "\n\021ConnectionProfile\022\021OperationMetadata\022\350" + + "\001\n\027DeleteConnectionProfile\022:.google.clou" + + "d.datastream.v1.DeleteConnectionProfileR" + + "equest\032\035.google.longrunning.Operation\"r\202" + + "\323\344\223\0028*6/v1/{name=projects/*/locations/*/" + + "connectionProfiles/*}\332A\004name\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\022\344\001\n\031Di" + + "scoverConnectionProfile\022<.google.cloud.d" + + "atastream.v1.DiscoverConnectionProfileRe" + + "quest\032=.google.cloud.datastream.v1.Disco" + + "verConnectionProfileResponse\"J\202\323\344\223\002D\"?/v" + + "1/{parent=projects/*/locations/*}/connec" + + "tionProfiles:discover:\001*\022\254\001\n\013ListStreams" + + "\022..google.cloud.datastream.v1.ListStream" + + "sRequest\032/.google.cloud.datastream.v1.Li" + + "stStreamsResponse\"<\202\323\344\223\002-\022+/v1/{parent=p" + + "rojects/*/locations/*}/streams\332A\006parent\022" + + "\231\001\n\tGetStream\022,.google.cloud.datastream." + + "v1.GetStreamRequest\032\".google.cloud.datas" + + "tream.v1.Stream\":\202\323\344\223\002-\022+/v1/{name=proje" + + "cts/*/locations/*/streams/*}\332A\004name\022\323\001\n\014" + + "CreateStream\022/.google.cloud.datastream.v" + + "1.CreateStreamRequest\032\035.google.longrunni" + + "ng.Operation\"s\202\323\344\223\0025\"+/v1/{parent=projec" + + "ts/*/locations/*}/streams:\006stream\332A\027pare" + + "nt,stream,stream_id\312A\033\n\006Stream\022\021Operatio" + + "nMetadata\022\325\001\n\014UpdateStream\022/.google.clou" + + "d.datastream.v1.UpdateStreamRequest\032\035.go" + + "ogle.longrunning.Operation\"u\202\323\344\223\002<22/v1/" + + "{stream.name=projects/*/locations/*/stre" + + "ams/*}:\006stream\332A\022stream,update_mask\312A\033\n\006" + + "Stream\022\021OperationMetadata\022\307\001\n\014DeleteStre" + + "am\022/.google.cloud.datastream.v1.DeleteSt" + + "reamRequest\032\035.google.longrunning.Operati" + + "on\"g\202\323\344\223\002-*+/v1/{name=projects/*/locatio" + + "ns/*/streams/*}\332A\004name\312A*\n\025google.protob" + + "uf.Empty\022\021OperationMetadata\022\265\001\n\017GetStrea" + + "mObject\0222.google.cloud.datastream.v1.Get" + + "StreamObjectRequest\032(.google.cloud.datas" + + "tream.v1.StreamObject\"D\202\323\344\223\0027\0225/v1/{name" + + "=projects/*/locations/*/streams/*/object" + + "s/*}\332A\004name\022\276\001\n\022LookupStreamObject\0225.goo" + + "gle.cloud.datastream.v1.LookupStreamObje" + + "ctRequest\032(.google.cloud.datastream.v1.S" + + "treamObject\"G\202\323\344\223\002A\"\n\nss" + + "l_config\030\005 \001(\0132*.google.cloud.datastream" + + ".v1.MysqlSslConfig\"4\n\nGcsProfile\022\023\n\006buck" + + "et\030\001 \001(\tB\003\340A\002\022\021\n\troot_path\030\002 \001(\t\"\035\n\033Stat" + + "icServiceIpConnectivity\"\250\001\n\034ForwardSshTu" + + "nnelConnectivity\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\010" + + "password\030d \001(\tB\003\340A\004H\000\022\032\n\013private_key\030e \001" + + "(\tB\003\340A\004H\000B\027\n\025authentication_method\"]\n\020Vp" + + "cPeeringConfig\0224\n\003vpc\030\001 \001(\tB\'\340A\002\372A!\n\037com" + + "pute.googleapis.com/Networks\022\023\n\006subnet\030\002" + + " \001(\tB\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" + + ".protobuf.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I" + + "\n\006labels\030\004 \003(\01329.google.cloud.datastream" + + ".v1.PrivateConnection.LabelsEntry\022\031\n\014dis" + + "play_name\030\005 \001(\tB\003\340A\002\022G\n\005state\030\006 \001(\01623.go" + + "ogle.cloud.datastream.v1.PrivateConnecti" + + "on.StateB\003\340A\003\0225\n\005error\030\007 \001(\0132!.google.cl" + + "oud.datastream.v1.ErrorB\003\340A\003\022H\n\022vpc_peer" + + "ing_config\030d \001(\0132,.google.cloud.datastre" + + "am.v1.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\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\013\n\007C" + + "REATED\020\002\022\n\n\006FAILED\020\003\022\014\n\010DELETING\020\004\022\024\n\020FA" + + "ILED_TO_DELETE\020\005:\201\001\352A~\n+datastream.googl" + + "eapis.com/PrivateConnection\022Oprojects/{p" + + "roject}/locations/{location}/privateConn" + + "ections/{private_connection}\"f\n\023PrivateC" + + "onnectivity\022O\n\022private_connection\030\001 \001(\tB" + + "3\340A\002\372A-\n+datastream.googleapis.com/Priva" + + "teConnection\"\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" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022=\n\006labels\030" + + "\004 \003(\0132-.google.cloud.datastream.v1.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\020des" + + "tination_port\030\007 \001(\005\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\205\001\352A\201\001\n\037datas" + + "tream.googleapis.com/Route\022^projects/{pr" + + "oject}/locations/{location}/privateConne" + + "ctions/{private_connection}/routes/{rout" + + "e}\"\312\001\n\016MysqlSslConfig\022\027\n\nclient_key\030\001 \001(" + + "\tB\003\340A\004\022\033\n\016client_key_set\030\002 \001(\010B\003\340A\003\022\037\n\022c" + + "lient_certificate\030\003 \001(\tB\003\340A\004\022#\n\026client_c" + + "ertificate_set\030\004 \001(\010B\003\340A\003\022\033\n\016ca_certific" + + "ate\030\005 \001(\tB\003\340A\004\022\037\n\022ca_certificate_set\030\006 \001" + + "(\010B\003\340A\003\"\242\007\n\021ConnectionProfile\022\021\n\004name\030\001 " + + "\001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\0224\n\013update_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n\006" + + "labels\030\004 \003(\01329.google.cloud.datastream.v" + + "1.ConnectionProfile.LabelsEntry\022\031\n\014displ" + + "ay_name\030\005 \001(\tB\003\340A\002\022C\n\016oracle_profile\030d \001" + + "(\0132).google.cloud.datastream.v1.OraclePr" + + "ofileH\000\022=\n\013gcs_profile\030e \001(\0132&.google.cl" + + "oud.datastream.v1.GcsProfileH\000\022A\n\rmysql_" + + "profile\030f \001(\0132(.google.cloud.datastream." + + "v1.MysqlProfileH\000\022b\n\036static_service_ip_c" + + "onnectivity\030\310\001 \001(\01327.google.cloud.datast" + + "ream.v1.StaticServiceIpConnectivityH\001\022]\n" + + "\030forward_ssh_connectivity\030\311\001 \001(\01328.googl" + + "e.cloud.datastream.v1.ForwardSshTunnelCo" + + "nnectivityH\001\022P\n\024private_connectivity\030\312\001 " + + "\001(\0132/.google.cloud.datastream.v1.Private" + + "ConnectivityH\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\022Oprojec" + + "ts/{project}/locations/{location}/connec" + + "tionProfiles/{connection_profile}B\t\n\007pro" + + "fileB\016\n\014connectivity\"\266\001\n\014OracleColumn\022\016\n" + + "\006column\030\001 \001(\t\022\021\n\tdata_type\030\002 \001(\t\022\016\n\006leng" + + "th\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\"^\n\013OracleTable\022\r\n\005table\030\001 \001(\t\022@\n\016o" + + "racle_columns\030\002 \003(\0132(.google.cloud.datas" + + "tream.v1.OracleColumn\"^\n\014OracleSchema\022\016\n" + + "\006schema\030\001 \001(\t\022>\n\roracle_tables\030\002 \003(\0132\'.g" + + "oogle.cloud.datastream.v1.OracleTable\"O\n" + + "\013OracleRdbms\022@\n\016oracle_schemas\030\001 \003(\0132(.g" + + "oogle.cloud.datastream.v1.OracleSchema\"\230" + + "\001\n\022OracleSourceConfig\022@\n\017include_objects" + + "\030\001 \001(\0132\'.google.cloud.datastream.v1.Orac" + + "leRdbms\022@\n\017exclude_objects\030\002 \001(\0132\'.googl" + + "e.cloud.datastream.v1.OracleRdbms\"\224\001\n\013My" + + "sqlColumn\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\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_position\030\007 \001(\005\"[\n\nMysqlTable\022\r" + + "\n\005table\030\001 \001(\t\022>\n\rmysql_columns\030\002 \003(\0132\'.g" + + "oogle.cloud.datastream.v1.MysqlColumn\"_\n" + + "\rMysqlDatabase\022\020\n\010database\030\001 \001(\t\022<\n\014mysq" + + "l_tables\030\002 \003(\0132&.google.cloud.datastream" + + ".v1.MysqlTable\"P\n\nMysqlRdbms\022B\n\017mysql_da" + + "tabases\030\001 \003(\0132).google.cloud.datastream." + + "v1.MysqlDatabase\"\225\001\n\021MysqlSourceConfig\022?" + + "\n\017include_objects\030\001 \001(\0132&.google.cloud.d" + + "atastream.v1.MysqlRdbms\022?\n\017exclude_objec" + + "ts\030\002 \001(\0132&.google.cloud.datastream.v1.My" + + "sqlRdbms\"\234\002\n\014SourceConfig\022V\n\031source_conn" + + "ection_profile\030\001 \001(\tB3\340A\002\372A-\n+datastream" + + ".googleapis.com/ConnectionProfile\022N\n\024ora" + + "cle_source_config\030d \001(\0132..google.cloud.d" + + "atastream.v1.OracleSourceConfigH\000\022L\n\023mys" + + "ql_source_config\030e \001(\0132-.google.cloud.da" + + "tastream.v1.MysqlSourceConfigH\000B\026\n\024sourc" + + "e_stream_config\"\020\n\016AvroFileFormat\"\357\002\n\016Js" + + "onFileFormat\022W\n\022schema_file_format\030\001 \001(\016" + + "2;.google.cloud.datastream.v1.JsonFileFo" + + "rmat.SchemaFileFormat\022O\n\013compression\030\002 \001" + + "(\0162:.google.cloud.datastream.v1.JsonFile" + + "Format.JsonCompression\"`\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" + + "\"Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_" + + "UNSPECIFIED\020\000\022\022\n\016NO_COMPRESSION\020\001\022\010\n\004GZI" + + "P\020\002\"\230\002\n\024GcsDestinationConfig\022\014\n\004path\030\001 \001" + + "(\t\022\030\n\020file_rotation_mb\030\002 \001(\005\0229\n\026file_rot" + + "ation_interval\030\003 \001(\0132\031.google.protobuf.D" + + "uration\022F\n\020avro_file_format\030d \001(\0132*.goog" + + "le.cloud.datastream.v1.AvroFileFormatH\000\022" + + "F\n\020json_file_format\030e \001(\0132*.google.cloud" + + ".datastream.v1.JsonFileFormatH\000B\r\n\013file_" + + "format\"\341\001\n\021DestinationConfig\022[\n\036destinat" + + "ion_connection_profile\030\001 \001(\tB3\340A\002\372A-\n+da" + + "tastream.googleapis.com/ConnectionProfil" + + "e\022R\n\026gcs_destination_config\030d \001(\01320.goog" + + "le.cloud.datastream.v1.GcsDestinationCon" + + "figH\000B\033\n\031destination_stream_config\"\375\t\n\006S" + + "tream\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\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022>\n\006labels\030\004 \003(\0132..google.cl" + + "oud.datastream.v1.Stream.LabelsEntry\022\031\n\014" + + "display_name\030\005 \001(\tB\003\340A\002\022D\n\rsource_config" + + "\030\006 \001(\0132(.google.cloud.datastream.v1.Sour" + + "ceConfigB\003\340A\002\022N\n\022destination_config\030\007 \001(" + + "\0132-.google.cloud.datastream.v1.Destinati" + + "onConfigB\003\340A\002\0227\n\005state\030\010 \001(\0162(.google.cl" + + "oud.datastream.v1.Stream.State\022N\n\014backfi" + + "ll_all\030e \001(\01326.google.cloud.datastream.v" + + "1.Stream.BackfillAllStrategyH\000\022P\n\rbackfi" + + "ll_none\030f \001(\01327.google.cloud.datastream." + + "v1.Stream.BackfillNoneStrategyH\000\0226\n\006erro" + + "rs\030\t \003(\0132!.google.cloud.datastream.v1.Er" + + "rorB\003\340A\003\0221\n\037customer_managed_encryption_" + + "key\030\n \001(\tB\003\340A\005H\001\210\001\001\032\277\001\n\023BackfillAllStrat" + + "egy\022J\n\027oracle_excluded_objects\030\001 \001(\0132\'.g" + + "oogle.cloud.datastream.v1.OracleRdbmsH\000\022" + + "H\n\026mysql_excluded_objects\030\002 \001(\0132&.google" + + ".cloud.datastream.v1.MysqlRdbmsH\000B\022\n\020exc" + + "luded_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\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\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\006FAILED\020\005\022\026\n\022FAILED_P" + + "ERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DRAINING\020\010" + + ":_\352A\\\n datastream.googleapis.com/Stream\022" + + "8projects/{project}/locations/{location}" + + "/streams/{stream}B\023\n\021backfill_strategyB\"" + + "\n _customer_managed_encryption_key\"\342\003\n\014S" + + "treamObject\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\013update_time\030\003 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\031\n\014display_name\030\005 \001(\t" + + "B\003\340A\002\0226\n\006errors\030\006 \003(\0132!.google.cloud.dat" + + "astream.v1.ErrorB\003\340A\003\022=\n\014backfill_job\030\007 " + + "\001(\0132\'.google.cloud.datastream.v1.Backfil" + + "lJob\022I\n\rsource_object\030\010 \001(\01322.google.clo" + + "ud.datastream.v1.SourceObjectIdentifier:" + + "v\352As\n&datastream.googleapis.com/StreamOb" + + "ject\022Iprojects/{project}/locations/{loca" + + "tion}/streams/{stream}/objects/{object}\"" + + "\202\003\n\026SourceObjectIdentifier\022f\n\021oracle_ide" + + "ntifier\030\001 \001(\0132I.google.cloud.datastream." + + "v1.SourceObjectIdentifier.OracleObjectId" + + "entifierH\000\022d\n\020mysql_identifier\030\002 \001(\0132H.g" + + "oogle.cloud.datastream.v1.SourceObjectId" + + "entifier.MysqlObjectIdentifierH\000\032A\n\026Orac" + + "leObjectIdentifier\022\023\n\006schema\030\001 \001(\tB\003\340A\002\022" + + "\022\n\005table\030\002 \001(\tB\003\340A\002\032B\n\025MysqlObjectIdenti" + + "fier\022\025\n\010database\030\001 \001(\tB\003\340A\002\022\022\n\005table\030\002 \001" + + "(\tB\003\340A\002B\023\n\021source_identifier\"\372\003\n\013Backfil" + + "lJob\022<\n\005state\030\001 \001(\0162-.google.cloud.datas" + + "tream.v1.BackfillJob.State\022@\n\007trigger\030\002 " + + "\001(\0162/.google.cloud.datastream.v1.Backfil" + + "lJob.Trigger\0228\n\017last_start_time\030\003 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\0226\n\rlast_e" + + "nd_time\030\004 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0226\n\006errors\030\005 \003(\0132!.google.cloud.da" + + "tastream.v1.ErrorB\003\340A\003\"\201\001\n\005State\022\025\n\021STAT" + + "E_UNSPECIFIED\020\000\022\017\n\013NOT_STARTED\020\001\022\013\n\007PEND" + + "ING\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\007Tr" + + "igger\022\027\n\023TRIGGER_UNSPECIFIED\020\000\022\r\n\tAUTOMA" + + "TIC\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.T" + + "imestamp\022?\n\007details\030\005 \003(\0132..google.cloud" + + ".datastream.v1.Error.DetailsEntry\032.\n\014Det" + + "ailsEntry\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" + + "(\0132&.google.cloud.datastream.v1.Validati" + + "on\"\366\001\n\nValidation\022\023\n\013description\030\001 \001(\t\022;" + + "\n\005state\030\002 \001(\0162,.google.cloud.datastream." + + "v1.Validation.State\022>\n\007message\030\003 \003(\0132-.g" + + "oogle.cloud.datastream.v1.ValidationMess" + + "age\022\014\n\004code\030\004 \001(\t\"H\n\005State\022\025\n\021STATE_UNSP" + + "ECIFIED\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\007mes" + + "sage\030\001 \001(\t\022B\n\005level\030\002 \001(\01623.google.cloud" + + ".datastream.v1.ValidationMessage.Level\022M" + + "\n\010metadata\030\003 \003(\0132;.google.cloud.datastre" + + "am.v1.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_U" + + "NSPECIFIED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002B\256\002\n" + + "\036com.google.cloud.datastream.v1B\030Datastr" + + "eamResourcesProtoP\001ZDgoogle.golang.org/g" + + "enproto/googleapis/cloud/datastream/v1;d" + + "atastream\252\002\032Google.Cloud.Datastream.V1\312\002" + + "\032Google\\Cloud\\Datastream\\V1\352\002\035Google::Cl" + + "oud::Datastream::V1\352AO\n\037compute.googleap" + + "is.com/Networks\022,projects/{project}/glob" + + "al/networks/{network}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + 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_GcsProfile_descriptor = + getDescriptor().getMessageTypes().get(2); + 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_StaticServiceIpConnectivity_descriptor = + getDescriptor().getMessageTypes().get(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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", + "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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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", + }); + internal_static_google_cloud_datastream_v1_MysqlColumn_descriptor = + getDescriptor().getMessageTypes().get(16); + 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(17); + 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(18); + 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(19); + 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(20); + 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", + }); + internal_static_google_cloud_datastream_v1_SourceConfig_descriptor = + getDescriptor().getMessageTypes().get(21); + 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", + "SourceStreamConfig", + }); + internal_static_google_cloud_datastream_v1_AvroFileFormat_descriptor = + getDescriptor().getMessageTypes().get(22); + 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(23); + 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(24); + 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_DestinationConfig_descriptor = + getDescriptor().getMessageTypes().get(25); + 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", "DestinationStreamConfig", + }); + internal_static_google_cloud_datastream_v1_Stream_descriptor = + getDescriptor().getMessageTypes().get(26); + 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", "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(27); + 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(28); + 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", "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_MysqlObjectIdentifier_descriptor = + internal_static_google_cloud_datastream_v1_SourceObjectIdentifier_descriptor + .getNestedTypes() + .get(1); + 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(29); + 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(30); + 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(31); + 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(32); + 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(33); + 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.AnnotationsProto.getDescriptor(); + 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 0ccd98a8..3e54d2f8 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,58 +72,67 @@ 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) { throw e.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 @@ -114,29 +141,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 { @@ -147,6 +176,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
@@ -162,6 +193,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -170,14 +202,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
@@ -193,16 +226,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 { @@ -211,6 +243,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +255,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -253,17 +285,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; } @@ -285,117 +316,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() @@ -403,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(); @@ -424,13 +464,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(); } @@ -445,7 +486,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(); @@ -456,38 +498,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; @@ -495,7 +538,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(); @@ -523,7 +568,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) { @@ -535,18 +582,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; @@ -555,20 +606,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 { @@ -576,54 +630,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; @@ -631,6 +698,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
@@ -646,13 +715,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; @@ -661,6 +730,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
@@ -676,15 +747,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 { @@ -692,6 +762,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
@@ -707,20 +779,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
@@ -736,15 +810,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
@@ -760,23 +837,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); } @@ -786,12 +863,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(); } @@ -800,16 +878,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; @@ -824,6 +902,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 3cfbf665..c2e8c02a 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,63 +72,72 @@ 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) { throw e.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 @@ -119,29 +146,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 { @@ -152,6 +181,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
@@ -167,6 +198,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -175,14 +207,15 @@ public java.lang.String getRequestId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** + * + * *
    * Optional. A request ID to identify requests. Specify a unique request ID
    * so that if you must retry your request, the server will know to ignore
@@ -198,16 +231,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 { @@ -218,12 +250,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 @@ -232,6 +267,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -270,8 +305,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; @@ -281,19 +315,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; } @@ -310,125 +342,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() @@ -436,16 +477,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(); @@ -459,13 +499,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(); } @@ -480,7 +521,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_; @@ -492,38 +534,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; @@ -531,7 +574,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(); @@ -562,7 +607,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) { @@ -574,18 +621,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; @@ -594,20 +645,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 { @@ -615,54 +669,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; @@ -670,6 +737,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
@@ -685,13 +754,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; @@ -700,6 +769,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
@@ -715,15 +786,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 { @@ -731,6 +801,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
@@ -746,20 +818,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
@@ -775,15 +849,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
@@ -799,29 +876,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 @@ -829,39 +909,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); } @@ -871,12 +957,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(); } @@ -885,16 +972,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; @@ -909,6 +996,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 bfd63d09..b22d31fc 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,58 +71,67 @@ 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) { throw e.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 @@ -114,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 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 { @@ -147,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
@@ -162,6 +192,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -170,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
@@ -193,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 { @@ -211,6 +242,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -253,17 +284,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; } @@ -285,117 +315,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() @@ -403,16 +442,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(); @@ -424,9 +462,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 @@ -445,7 +483,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(); @@ -456,38 +495,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; @@ -495,7 +535,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(); @@ -523,7 +564,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) { @@ -535,18 +577,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; @@ -555,20 +601,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 { @@ -576,54 +625,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; @@ -631,6 +693,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
@@ -646,13 +710,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; @@ -661,6 +725,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
@@ -676,15 +742,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 { @@ -692,6 +757,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
@@ -707,20 +774,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
@@ -736,15 +805,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
@@ -760,23 +832,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); } @@ -786,12 +858,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(); } @@ -800,16 +872,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; @@ -824,6 +896,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 4012724d..55dcc34f 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,58 +71,67 @@ 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) { throw e.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 @@ -114,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 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 { @@ -147,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
@@ -162,6 +192,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -170,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
@@ -193,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 { @@ -211,6 +242,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -253,17 +284,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; } @@ -285,117 +315,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() @@ -403,16 +442,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(); @@ -424,9 +462,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 @@ -445,7 +483,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(); @@ -456,38 +495,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; @@ -495,7 +535,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(); @@ -523,7 +564,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) { @@ -535,18 +577,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; @@ -555,20 +601,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 { @@ -576,54 +625,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; @@ -631,6 +693,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
@@ -646,13 +710,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; @@ -661,6 +725,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
@@ -676,15 +742,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 { @@ -692,6 +757,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
@@ -707,20 +774,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
@@ -736,15 +805,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
@@ -760,23 +832,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); } @@ -786,12 +858,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(); } @@ -800,16 +872,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; @@ -824,6 +896,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 68% 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 3b865997..ac9a33f2 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,66 +70,78 @@ 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(); + destinationConnectionProfile_ = s; + break; } - 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(); + 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; } - 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) { throw e.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), DESTINATIONSTREAMCONFIG_NOT_SET(0); private final int value; + private DestinationStreamConfigCase(int value) { this.value = value; } @@ -128,31 +157,38 @@ public static DestinationStreamConfigCase valueOf(int value) { public static DestinationStreamConfigCase forNumber(int value) { switch (value) { - case 100: return GCS_DESTINATION_CONFIG; - case 0: return DESTINATIONSTREAMCONFIG_NOT_SET; - default: return null; + case 100: + return GCS_DESTINATION_CONFIG; + case 0: + return DESTINATIONSTREAMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DestinationStreamConfigCase - getDestinationStreamConfigCase() { - return DestinationStreamConfigCase.forNumber( - destinationStreamConfigCase_); + public DestinationStreamConfigCase getDestinationStreamConfigCase() { + return DestinationStreamConfigCase.forNumber(destinationStreamConfigCase_); } public static final int DESTINATION_CONNECTION_PROFILE_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 @@ -161,30 +197,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 { @@ -194,11 +232,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 @@ -206,21 +247,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.
    * 
@@ -228,14 +274,16 @@ 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(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -247,13 +295,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(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_); } unknownFields.writeTo(output); } @@ -265,11 +313,14 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -279,20 +330,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.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 0: default: @@ -323,118 +375,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() @@ -442,16 +503,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(); @@ -463,9 +523,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 @@ -484,7 +544,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) { @@ -502,38 +563,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; @@ -541,19 +603,22 @@ 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 DESTINATIONSTREAMCONFIG_NOT_SET: { - break; - } + case GCS_DESTINATION_CONFIG: + { + mergeGcsDestinationConfig(other.getGcsDestinationConfig()); + break; + } + case DESTINATIONSTREAMCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -583,12 +648,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() { @@ -598,22 +663,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; @@ -622,21 +690,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 { @@ -644,70 +715,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 @@ -715,11 +805,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 @@ -737,13 +830,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(); @@ -757,6 +853,8 @@ public Builder setGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDestina return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -775,18 +873,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; } @@ -801,6 +907,8 @@ public Builder mergeGcsDestinationConfig(com.google.cloud.datastream.v1.GcsDesti return this; } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -824,16 +932,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.
      * 
@@ -841,7 +954,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 { @@ -852,6 +966,8 @@ public com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestin } } /** + * + * *
      * A configuration for how data should be loaded to Cloud Storage.
      * 
@@ -859,26 +975,33 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -888,12 +1011,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(); } @@ -902,16 +1025,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; @@ -926,6 +1049,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 60% 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 b2be2fdd..d398d79f 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.
    * 
@@ -56,5 +89,6 @@ public interface DestinationConfigOrBuilder extends */ com.google.cloud.datastream.v1.GcsDestinationConfigOrBuilder getGcsDestinationConfigOrBuilder(); - 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 969245fd..3c987522 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,111 +71,127 @@ 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: { - hierarchyCase_ = 3; - hierarchy_ = input.readBool(); - break; - } - case 32: { - hierarchyCase_ = 4; - hierarchy_ = input.readInt32(); - 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: + { + hierarchyCase_ = 3; + hierarchy_ = input.readBool(); + 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: + { + hierarchyCase_ = 4; + hierarchy_ = input.readInt32(); + 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 1602: { - com.google.cloud.datastream.v1.ConnectionProfile.Builder subBuilder = null; - if (targetCase_ == 200) { - subBuilder = ((com.google.cloud.datastream.v1.ConnectionProfile) target_).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; } - 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 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; } - 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) { throw e.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; } @@ -173,32 +207,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; } @@ -214,32 +254,38 @@ 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), DATAOBJECT_NOT_SET(0); private final int value; + private DataObjectCase(int value) { this.value = value; } @@ -255,32 +301,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 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 @@ -289,30 +343,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 { @@ -322,11 +378,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 @@ -334,21 +393,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.
    * 
@@ -358,29 +422,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() { @@ -391,8 +461,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; @@ -401,23 +470,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; } @@ -429,12 +499,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 @@ -442,12 +515,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 @@ -460,11 +536,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 @@ -472,11 +551,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 @@ -489,11 +571,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 @@ -501,21 +586,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.
    * 
@@ -525,18 +615,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 @@ -544,21 +637,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.
    * 
@@ -568,12 +666,13 @@ 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(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -585,18 +684,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_); @@ -623,26 +719,29 @@ 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 (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_); @@ -655,24 +754,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: @@ -680,12 +777,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: @@ -693,12 +788,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: @@ -731,8 +824,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; @@ -759,117 +851,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() @@ -877,16 +979,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(); @@ -902,13 +1003,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(); } @@ -923,7 +1025,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) { @@ -966,90 +1069,103 @@ 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 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(); @@ -1070,7 +1186,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) { @@ -1079,12 +1197,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() { @@ -1096,10 +1214,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() { @@ -1111,10 +1228,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() { @@ -1124,22 +1240,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; @@ -1148,21 +1267,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 { @@ -1170,70 +1292,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 @@ -1241,11 +1382,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 @@ -1263,6 +1407,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfile() { } } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1283,6 +1429,8 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1.ConnectionPro return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1301,6 +1449,8 @@ public Builder setConnectionProfile( return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1309,10 +1459,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; } @@ -1327,6 +1480,8 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1.ConnectionP return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1350,6 +1505,8 @@ public Builder clearConnectionProfile() { return this; } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1360,6 +1517,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfileFieldBuilder().getBuilder(); } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1367,7 +1526,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 { @@ -1378,6 +1538,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** + * + * *
      * An ad-hoc connection profile configuration.
      * 
@@ -1385,30 +1547,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 @@ -1416,11 +1587,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 @@ -1430,8 +1604,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; @@ -1442,24 +1615,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; } @@ -1469,30 +1643,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() { @@ -1504,20 +1683,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(); @@ -1525,24 +1706,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() { @@ -1552,12 +1739,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. */ @@ -1568,12 +1758,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() { @@ -1586,22 +1779,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() { @@ -1611,11 +1810,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. */ @@ -1626,11 +1828,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() { @@ -1643,13 +1848,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 @@ -1657,11 +1868,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 @@ -1679,6 +1893,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1699,6 +1915,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1717,6 +1935,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1725,10 +1945,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; } @@ -1743,6 +1966,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1766,6 +1991,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1776,6 +2003,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1794,6 +2023,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1801,32 +2032,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 @@ -1834,11 +2077,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 @@ -1856,6 +2102,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1876,6 +2124,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1894,6 +2144,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1902,10 +2154,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; } @@ -1920,6 +2175,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1943,6 +2200,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1953,6 +2212,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1971,6 +2232,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1978,26 +2241,32 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2007,30 +2276,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; @@ -2042,9 +2313,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 78% 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 ae824138..441dc035 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.
    * 
@@ -181,7 +250,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 68% 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 ea892b5e..065d9951 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,75 +69,84 @@ 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(); - } - 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; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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), DATAOBJECT_NOT_SET(0); private final int value; + private DataObjectCase(int value) { this.value = value; } @@ -136,30 +162,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.v1.OracleRdbms oracle_rdbms = 100; + * * @return Whether the oracleRdbms field is set. */ @java.lang.Override @@ -167,21 +199,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.
    * 
@@ -191,18 +228,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 @@ -210,21 +250,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.
    * 
@@ -234,12 +279,13 @@ 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(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (dataObjectCase_ == 100) { output.writeMessage(100, (com.google.cloud.datastream.v1.OracleRdbms) dataObject_); } @@ -269,12 +314,14 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -284,22 +331,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.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 0: default: @@ -333,117 +379,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() @@ -451,16 +507,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(); @@ -470,13 +525,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datastream.v1.DatastreamProto + .internal_static_google_cloud_datastream_v1_DiscoverConnectionProfileResponse_descriptor; } @java.lang.Override - public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse getDefaultInstanceForType() { + public com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse + getDefaultInstanceForType() { return com.google.cloud.datastream.v1.DiscoverConnectionProfileResponse.getDefaultInstance(); } @@ -491,7 +547,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_; @@ -515,58 +572,65 @@ 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 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(); @@ -587,7 +651,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) { @@ -596,12 +662,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() { @@ -611,15 +677,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 @@ -627,11 +698,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 @@ -649,6 +723,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -669,6 +745,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value) return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -687,6 +765,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -695,10 +775,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; } @@ -713,6 +796,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1.OracleRdbms value return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -736,6 +821,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -746,6 +833,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleRdbmsBuilder( return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -764,6 +853,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleRdbmsOrBuild } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -771,32 +862,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 @@ -804,11 +907,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 @@ -826,6 +932,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -846,6 +954,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -864,6 +974,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -872,10 +984,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; } @@ -890,6 +1005,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1.MysqlRdbms value) return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -913,6 +1030,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -923,6 +1042,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlRdbmsBuilder() return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -941,6 +1062,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -948,26 +1071,32 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -977,30 +1106,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; @@ -1012,9 +1143,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 69% 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 3c55fe63..fae946e6 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.
    * 
@@ -61,5 +93,6 @@ public interface DiscoverConnectionProfileResponseOrBuilder extends */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlRdbmsOrBuilder(); - 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 12baab14..71ef3157 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,102 +73,112 @@ 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) { throw e.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 @@ -160,29 +187,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 { @@ -193,12 +220,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 @@ -207,30 +237,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 { @@ -241,11 +271,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 @@ -254,29 +287,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 { @@ -287,11 +320,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 @@ -299,11 +335,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 @@ -311,6 +350,8 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** + * + * *
    * The time when the error occurred.
    * 
@@ -323,24 +364,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_; } @@ -349,28 +389,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 java.lang.NullPointerException(); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -378,11 +420,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.
    * 
@@ -390,16 +433,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional information about the error.
    * 
@@ -407,12 +450,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -420,6 +462,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,8 +474,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -445,12 +487,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); } @@ -470,18 +508,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; @@ -491,26 +528,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; } @@ -541,140 +573,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() @@ -682,16 +720,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(); @@ -712,9 +749,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 @@ -753,38 +790,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; @@ -808,8 +846,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; @@ -838,22 +875,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; @@ -862,20 +902,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 { @@ -883,54 +924,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; @@ -938,19 +986,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; @@ -959,21 +1009,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 { @@ -981,57 +1032,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; @@ -1039,18 +1097,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; @@ -1059,20 +1119,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 { @@ -1080,54 +1141,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; @@ -1135,24 +1203,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() { @@ -1163,6 +1240,8 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1183,14 +1262,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(); @@ -1201,6 +1281,8 @@ public Builder setErrorTime( return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1211,7 +1293,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; } @@ -1223,6 +1305,8 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1241,6 +1325,8 @@ public Builder clearErrorTime() { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1248,11 +1334,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.
      * 
@@ -1263,11 +1351,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.
      * 
@@ -1275,35 +1364,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(); @@ -1315,28 +1406,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 java.lang.NullPointerException(); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1344,11 +1437,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.
      * 
@@ -1356,16 +1450,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional information about the error.
      * 
@@ -1373,12 +1468,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1386,66 +1480,65 @@ 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 java.lang.NullPointerException(); } - internalGetMutableDetails().getMutableMap() - .remove(key); + public Builder removeDetails(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDetails().getMutableMap() - .put(key, value); + public Builder putDetails(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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); } @@ -1455,12 +1548,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(); } @@ -1469,16 +1562,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; @@ -1493,6 +1586,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 68% 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 918b224f..fff4bf06 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,48 +146,46 @@ 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.
    * 
* * map<string, string> details = 5; */ - - java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getDetailsOrDefault(java.lang.String key, 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 b1640be5..8d571631 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,64 +71,73 @@ 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) { throw e.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 @@ -120,30 +146,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 { @@ -154,11 +182,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 @@ -169,12 +200,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 @@ -183,30 +217,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 { @@ -215,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -250,8 +284,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_); @@ -264,19 +297,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; } @@ -300,117 +331,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() @@ -418,16 +458,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(); @@ -441,9 +480,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 @@ -462,7 +501,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_; @@ -474,38 +514,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; @@ -513,7 +554,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(); @@ -544,7 +586,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) { @@ -556,19 +599,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; @@ -577,21 +624,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 { @@ -599,69 +649,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 @@ -669,30 +735,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; @@ -700,19 +772,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; @@ -721,21 +795,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 { @@ -743,64 +818,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); } @@ -810,12 +892,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(); } @@ -824,16 +906,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; @@ -848,6 +930,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 70% 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 1024de99..4ef75aa5 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,35 +72,36 @@ 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) { throw e.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(); @@ -92,50 +110,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. */ @@ -143,28 +172,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 @@ -173,30 +207,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 { @@ -205,6 +239,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -252,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.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; } @@ -286,117 +319,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() @@ -404,16 +447,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(); @@ -425,9 +467,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 @@ -446,7 +488,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(); @@ -462,38 +505,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; @@ -501,7 +545,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_; @@ -535,7 +580,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) { @@ -544,44 +590,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. */ @@ -589,80 +646,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() { @@ -672,20 +739,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(); @@ -694,19 +763,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; @@ -715,21 +786,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 { @@ -737,64 +809,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); } @@ -804,12 +883,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(); } @@ -818,16 +897,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; @@ -842,6 +921,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 1d54ff0e..d847b64d 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,76 +71,85 @@ 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) { throw e.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; } @@ -139,31 +165,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 @@ -172,29 +204,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 { @@ -205,11 +237,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 @@ -218,29 +253,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 { @@ -251,11 +286,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 @@ -265,22 +303,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() { @@ -291,8 +335,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; @@ -301,23 +344,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; } @@ -329,22 +373,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() { @@ -355,8 +405,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; @@ -365,23 +414,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; } @@ -392,6 +442,7 @@ public java.lang.String getPrivateKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -436,8 +486,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_); @@ -453,28 +502,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: @@ -514,117 +559,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() @@ -632,16 +687,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(); @@ -657,9 +711,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 @@ -678,7 +732,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_; @@ -697,38 +752,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; @@ -736,7 +792,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(); @@ -749,21 +806,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(); @@ -784,7 +844,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) { @@ -793,12 +854,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() { @@ -808,21 +869,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; @@ -831,20 +893,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 { @@ -852,54 +915,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; @@ -907,18 +977,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; @@ -927,20 +999,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 { @@ -948,66 +1021,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 @@ -1015,41 +1098,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 @@ -1057,11 +1149,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 @@ -1071,8 +1166,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; @@ -1083,24 +1177,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; } @@ -1110,30 +1205,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() { @@ -1145,20 +1245,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(); @@ -1166,11 +1268,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 @@ -1178,11 +1283,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 @@ -1192,8 +1300,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; @@ -1204,24 +1311,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; } @@ -1231,30 +1339,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() { @@ -1266,28 +1379,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); } @@ -1297,12 +1412,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(); } @@ -1311,16 +1426,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; @@ -1335,6 +1450,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 d5fd5fb2..058d2a5b 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,99 +70,113 @@ 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) { throw e.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; } @@ -161,31 +192,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 @@ -194,29 +231,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 { @@ -227,11 +264,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 @@ -242,12 +282,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 @@ -255,19 +298,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.
@@ -282,11 +332,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 @@ -294,21 +347,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.
    * 
@@ -318,18 +376,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 @@ -337,21 +398,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.
    * 
@@ -361,12 +427,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; @@ -378,8 +445,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -408,20 +474,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; @@ -431,31 +498,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: @@ -497,117 +560,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() @@ -615,16 +687,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(); @@ -644,9 +715,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 @@ -665,7 +736,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) { @@ -696,38 +768,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; @@ -735,7 +808,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(); @@ -747,17 +821,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(); @@ -778,7 +855,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) { @@ -787,12 +865,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() { @@ -802,21 +880,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; @@ -825,20 +904,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 { @@ -846,66 +926,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 @@ -913,30 +1003,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; @@ -944,36 +1040,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.
@@ -995,6 +1104,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.
@@ -1002,8 +1113,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();
@@ -1014,6 +1124,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.
@@ -1025,7 +1137,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;
         }
@@ -1037,6 +1151,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.
@@ -1056,6 +1172,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.
@@ -1064,11 +1182,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.
@@ -1080,11 +1200,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.
@@ -1093,27 +1216,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 @@ -1121,11 +1253,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 @@ -1143,6 +1278,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat() { } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1163,6 +1300,8 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat v return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1181,6 +1320,8 @@ public Builder setAvroFileFormat( return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1189,10 +1330,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; } @@ -1207,6 +1351,8 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1.AvroFileFormat return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1230,6 +1376,8 @@ public Builder clearAvroFileFormat() { return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1240,6 +1388,8 @@ public com.google.cloud.datastream.v1.AvroFileFormat.Builder getAvroFileFormatBu return getAvroFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1258,6 +1408,8 @@ public com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatO } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1265,32 +1417,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 @@ -1298,11 +1462,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 @@ -1320,6 +1487,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat() { } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1340,6 +1509,8 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat v return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1358,6 +1529,8 @@ public Builder setJsonFileFormat( return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1366,10 +1539,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; } @@ -1384,6 +1560,8 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1.JsonFileFormat return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1407,6 +1585,8 @@ public Builder clearJsonFileFormat() { return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1417,6 +1597,8 @@ public com.google.cloud.datastream.v1.JsonFileFormat.Builder getJsonFileFormatBu return getJsonFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1435,6 +1617,8 @@ public com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatO } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1442,26 +1626,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); } @@ -1471,12 +1661,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(); } @@ -1485,16 +1675,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; @@ -1509,6 +1699,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 dfaeb240..5036b4f6 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,58 +71,65 @@ 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) { throw e.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 @@ -114,29 +138,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 { @@ -147,11 +171,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 @@ -160,29 +187,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 { @@ -191,6 +218,7 @@ public java.lang.String getRootPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,8 +230,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -233,17 +260,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; } @@ -264,118 +290,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() @@ -383,16 +418,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(); @@ -404,9 +438,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 @@ -425,7 +459,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(); @@ -436,38 +471,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; @@ -515,18 +551,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; @@ -535,20 +573,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 { @@ -556,54 +595,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; @@ -611,18 +657,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; @@ -631,20 +679,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 { @@ -652,61 +701,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); } @@ -716,12 +772,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(); } @@ -730,16 +786,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; @@ -754,6 +810,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 fee04e87..37241656 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -202,117 +229,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() @@ -320,16 +357,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(); @@ -339,9 +375,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 @@ -360,7 +396,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; @@ -370,38 +407,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; @@ -409,7 +447,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(); @@ -433,7 +472,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) { @@ -445,18 +485,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; @@ -465,20 +509,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 { @@ -486,61 +533,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); } @@ -550,12 +610,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(); } @@ -564,16 +624,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; @@ -588,6 +648,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 15af4999..ff46db7c 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -202,117 +229,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() @@ -320,16 +357,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(); @@ -339,9 +375,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 @@ -360,7 +396,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; @@ -370,38 +407,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; @@ -409,7 +447,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(); @@ -433,7 +472,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) { @@ -445,18 +485,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; @@ -465,20 +509,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 { @@ -486,61 +533,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); } @@ -550,12 +610,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(); } @@ -564,16 +624,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; @@ -588,6 +648,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 19556bc6..bcc11065 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -201,118 +228,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() @@ -320,16 +356,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(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_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 @@ -360,7 +395,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; @@ -370,38 +406,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; @@ -445,18 +482,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; @@ -465,20 +506,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 { @@ -486,61 +530,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); } @@ -550,12 +607,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(); } @@ -564,16 +621,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; @@ -588,6 +645,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 6e768baf..4e25768e 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -202,117 +229,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() @@ -320,16 +357,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(); @@ -339,9 +375,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 @@ -360,7 +396,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; @@ -370,38 +407,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; @@ -409,7 +447,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(); @@ -433,7 +472,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) { @@ -445,18 +485,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; @@ -465,20 +509,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 { @@ -486,61 +533,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); } @@ -550,12 +610,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(); } @@ -564,16 +624,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; @@ -588,6 +648,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 099b3ed1..3ea5fcbf 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -201,118 +228,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() @@ -320,16 +356,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(); @@ -339,9 +374,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamProto.internal_static_google_cloud_datastream_v1_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 @@ -360,7 +395,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; @@ -370,38 +406,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; @@ -409,7 +446,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(); @@ -445,18 +483,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; @@ -465,20 +507,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 { @@ -486,61 +531,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); } @@ -550,12 +608,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(); } @@ -564,16 +622,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; @@ -588,6 +646,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 69% 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 c8d8f186..0919f9a1 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,60 +71,67 @@ 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) { throw e.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.
      * 
@@ -116,6 +140,8 @@ public enum SchemaFileFormat */ SCHEMA_FILE_FORMAT_UNSPECIFIED(0), /** + * + * *
      * Do not attach schema file.
      * 
@@ -124,6 +150,8 @@ public enum SchemaFileFormat */ NO_SCHEMA_FILE(1), /** + * + * *
      * Avro schema format.
      * 
@@ -135,6 +163,8 @@ public enum SchemaFileFormat ; /** + * + * *
      * Unspecified schema file format.
      * 
@@ -143,6 +173,8 @@ public enum SchemaFileFormat */ public static final int SCHEMA_FILE_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not attach schema file.
      * 
@@ -151,6 +183,8 @@ public enum SchemaFileFormat */ public static final int NO_SCHEMA_FILE_VALUE = 1; /** + * + * *
      * Avro schema format.
      * 
@@ -159,7 +193,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( @@ -184,39 +217,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); } @@ -225,8 +261,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; @@ -244,15 +279,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.
      * 
@@ -261,6 +299,8 @@ public enum JsonCompression */ JSON_COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * Do not compress JSON file.
      * 
@@ -269,6 +309,8 @@ public enum JsonCompression */ NO_COMPRESSION(1), /** + * + * *
      * Gzip compression.
      * 
@@ -280,6 +322,8 @@ public enum JsonCompression ; /** + * + * *
      * Unspecified json file compression.
      * 
@@ -288,6 +332,8 @@ public enum JsonCompression */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not compress JSON file.
      * 
@@ -296,6 +342,8 @@ public enum JsonCompression */ public static final int NO_COMPRESSION_VALUE = 1; /** + * + * *
      * Gzip compression.
      * 
@@ -304,7 +352,6 @@ public enum JsonCompression */ public static final int GZIP_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -329,39 +376,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); } @@ -370,8 +420,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; @@ -391,58 +440,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; @@ -454,12 +528,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); @@ -471,13 +550,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; @@ -487,12 +570,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; @@ -516,118 +600,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() @@ -635,16 +728,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(); @@ -656,9 +748,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 @@ -677,7 +769,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(); @@ -688,38 +781,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; @@ -765,73 +859,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; @@ -839,80 +958,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); } @@ -922,12 +1061,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(); } @@ -936,16 +1075,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; @@ -960,6 +1099,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 42b8c6ea..3da2bda6 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,75 +73,86 @@ 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) { throw e.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 @@ -133,29 +161,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 { @@ -166,6 +196,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.
@@ -173,6 +205,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -183,6 +216,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.
@@ -191,6 +226,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -199,14 +235,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.
@@ -215,16 +252,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 { @@ -235,11 +271,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 @@ -248,29 +287,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 { @@ -281,11 +320,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 @@ -294,29 +336,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 { @@ -325,6 +367,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +379,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -366,8 +408,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_); @@ -386,23 +427,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; } @@ -430,117 +467,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() @@ -548,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(); @@ -575,13 +621,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(); } @@ -596,7 +643,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_; @@ -610,38 +658,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; @@ -649,7 +698,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(); @@ -688,7 +739,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) { @@ -700,18 +752,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; @@ -720,20 +776,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 { @@ -741,61 +800,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.
@@ -803,6 +877,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -810,6 +885,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -817,16 +894,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.
@@ -834,10 +914,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 +926,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -853,13 +936,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; @@ -868,6 +951,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -876,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 { @@ -892,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -900,20 +986,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + 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.
@@ -922,15 +1010,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.
@@ -939,16 +1030,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; @@ -956,18 +1047,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; @@ -976,20 +1069,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 { @@ -997,54 +1091,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; @@ -1052,18 +1153,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; @@ -1072,20 +1175,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 { @@ -1093,61 +1197,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); } @@ -1157,12 +1268,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(); } @@ -1171,16 +1283,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; @@ -1195,6 +1307,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 0234487a..fb5a5a5b 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,44 +74,49 @@ 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) { throw e.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_); @@ -105,22 +128,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.
    * 
@@ -128,10 +156,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.
    * 
@@ -139,11 +170,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.
    * 
@@ -155,6 +188,8 @@ public int getConnectionProfilesCount() { return connectionProfiles_.size(); } /** + * + * *
    * List of connection profiles.
    * 
@@ -166,6 +201,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in return connectionProfiles_.get(index); } /** + * + * *
    * List of connection profiles.
    * 
@@ -181,12 +218,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 @@ -195,30 +235,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 { @@ -229,34 +269,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. */ @@ -264,20 +312,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; @@ -289,8 +340,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -310,8 +360,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_); @@ -332,19 +382,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; } @@ -372,117 +420,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() @@ -490,17 +548,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(); @@ -518,13 +576,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(); } @@ -539,7 +598,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)) { @@ -564,38 +624,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; @@ -603,7 +664,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()) { @@ -622,9 +685,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_); } @@ -663,7 +727,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) { @@ -672,28 +738,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 { @@ -701,6 +777,8 @@ public java.util.List getConne } } /** + * + * *
      * List of connection profiles.
      * 
@@ -715,6 +793,8 @@ public int getConnectionProfilesCount() { } } /** + * + * *
      * List of connection profiles.
      * 
@@ -729,6 +809,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile getConnectionProfiles(in } } /** + * + * *
      * List of connection profiles.
      * 
@@ -750,6 +832,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -768,6 +852,8 @@ public Builder setConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -788,6 +874,8 @@ public Builder addConnectionProfiles(com.google.cloud.datastream.v1.ConnectionPr return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -809,6 +897,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -827,6 +917,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -845,6 +937,8 @@ public Builder addConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -855,8 +949,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); @@ -864,6 +957,8 @@ public Builder addAllConnectionProfiles( return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -881,6 +976,8 @@ public Builder clearConnectionProfiles() { return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -898,6 +995,8 @@ public Builder removeConnectionProfiles(int index) { return this; } /** + * + * *
      * List of connection profiles.
      * 
@@ -909,6 +1008,8 @@ public com.google.cloud.datastream.v1.ConnectionProfile.Builder getConnectionPro return getConnectionProfilesFieldBuilder().getBuilder(index); } /** + * + * *
      * List of connection profiles.
      * 
@@ -918,19 +1019,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 { @@ -938,6 +1042,8 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr } } /** + * + * *
      * List of connection profiles.
      * 
@@ -945,10 +1051,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.
      * 
@@ -957,26 +1065,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(), @@ -988,19 +1104,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; @@ -1009,21 +1127,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 { @@ -1031,98 +1150,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. */ @@ -1130,80 +1266,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() { @@ -1213,28 +1359,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); } @@ -1244,12 +1392,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(); } @@ -1258,16 +1407,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; @@ -1282,6 +1431,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 6926978b..02292f38 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,75 +73,86 @@ 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) { throw e.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 @@ -133,29 +161,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 { @@ -166,6 +196,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
@@ -174,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +217,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.
@@ -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 `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -218,16 +255,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 { @@ -238,11 +274,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 @@ -251,29 +290,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 { @@ -284,11 +323,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 @@ -297,29 +339,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 { @@ -328,6 +370,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -369,8 +411,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_); @@ -389,23 +430,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; } @@ -433,117 +470,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() @@ -551,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(); @@ -578,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_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(); } @@ -599,7 +646,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_; @@ -613,38 +661,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; @@ -652,7 +701,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(); @@ -691,7 +742,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) { @@ -703,18 +755,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; @@ -723,20 +779,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 { @@ -744,61 +803,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
@@ -807,6 +881,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -814,6 +889,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
@@ -822,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 private connectivity configurations to return.
      * If unspecified, at most 50 private connectivity configurations that will be
@@ -840,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; @@ -851,6 +932,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -860,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; @@ -875,6 +958,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -884,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 { @@ -900,6 +984,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -909,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 `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -932,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 `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -950,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; @@ -967,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; @@ -987,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 { @@ -1008,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; @@ -1063,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; @@ -1083,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 { @@ -1104,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); } @@ -1168,12 +1279,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(); } @@ -1182,16 +1294,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; @@ -1206,6 +1318,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 b100774c..ba604e84 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,44 +74,49 @@ 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) { throw e.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_); @@ -105,22 +128,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.
    * 
@@ -128,10 +156,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.
    * 
@@ -139,11 +170,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.
    * 
@@ -155,6 +188,8 @@ public int getPrivateConnectionsCount() { return privateConnections_.size(); } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -166,6 +201,8 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in return privateConnections_.get(index); } /** + * + * *
    * List of private connectivity configurations.
    * 
@@ -181,12 +218,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 @@ -195,30 +235,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 { @@ -229,34 +269,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. */ @@ -264,20 +312,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; @@ -289,8 +340,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -310,8 +360,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_); @@ -332,19 +382,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; } @@ -372,117 +420,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() @@ -490,17 +548,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(); @@ -518,13 +576,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(); } @@ -539,7 +598,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)) { @@ -564,38 +624,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; @@ -603,7 +664,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()) { @@ -622,9 +685,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_); } @@ -663,7 +727,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) { @@ -672,28 +738,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 { @@ -701,6 +777,8 @@ public java.util.List getPriva } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -715,6 +793,8 @@ public int getPrivateConnectionsCount() { } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -729,6 +809,8 @@ public com.google.cloud.datastream.v1.PrivateConnection getPrivateConnections(in } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -750,6 +832,8 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -768,6 +852,8 @@ public Builder setPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -788,6 +874,8 @@ public Builder addPrivateConnections(com.google.cloud.datastream.v1.PrivateConne return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -809,6 +897,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -827,6 +917,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -845,6 +937,8 @@ public Builder addPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -855,8 +949,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); @@ -864,6 +957,8 @@ public Builder addAllPrivateConnections( return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -881,6 +976,8 @@ public Builder clearPrivateConnections() { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -898,6 +995,8 @@ public Builder removePrivateConnections(int index) { return this; } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -909,6 +1008,8 @@ public com.google.cloud.datastream.v1.PrivateConnection.Builder getPrivateConnec return getPrivateConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -918,19 +1019,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 { @@ -938,6 +1042,8 @@ public com.google.cloud.datastream.v1.PrivateConnectionOrBuilder getPrivateConne } } /** + * + * *
      * List of private connectivity configurations.
      * 
@@ -945,10 +1051,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.
      * 
@@ -957,26 +1065,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(), @@ -988,19 +1104,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; @@ -1009,21 +1127,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 { @@ -1031,98 +1150,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. */ @@ -1130,80 +1266,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() { @@ -1213,28 +1359,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); } @@ -1244,12 +1392,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(); } @@ -1258,16 +1407,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; @@ -1282,6 +1431,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 e1d5d3da..a082ba6a 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,75 +73,86 @@ 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) { throw e.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 @@ -133,29 +161,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 { @@ -166,6 +196,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
@@ -174,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +217,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.
@@ -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 `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -218,16 +255,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 { @@ -238,11 +274,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 @@ -251,29 +290,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 { @@ -284,11 +323,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 @@ -297,29 +339,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 { @@ -328,6 +370,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -369,8 +411,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_); @@ -389,23 +430,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; } @@ -432,118 +469,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() @@ -551,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(); @@ -578,9 +623,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 @@ -599,7 +644,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_; @@ -613,38 +659,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; @@ -652,7 +699,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(); @@ -703,18 +751,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; @@ -723,20 +775,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 { @@ -744,61 +799,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
@@ -807,6 +877,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -814,6 +885,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
@@ -822,16 +895,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
@@ -840,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; @@ -851,6 +928,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -860,13 +939,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; @@ -875,6 +954,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -884,15 +965,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 { @@ -900,6 +980,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -909,20 +991,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.
@@ -932,15 +1016,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.
@@ -950,16 +1037,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; @@ -967,18 +1054,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; @@ -987,20 +1076,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 { @@ -1008,54 +1098,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; @@ -1063,18 +1160,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; @@ -1083,20 +1182,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 { @@ -1104,61 +1204,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); } @@ -1168,12 +1275,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(); } @@ -1182,16 +1289,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; @@ -1206,6 +1313,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 7f76baf3..86ac4005 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,44 +73,47 @@ 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) { throw e.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_); @@ -105,22 +125,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.
    * 
@@ -132,6 +157,8 @@ public java.util.List getRoutesList() { return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -139,11 +166,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.
    * 
@@ -155,6 +184,8 @@ public int getRoutesCount() { return routes_.size(); } /** + * + * *
    * List of Routes.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.datastream.v1.Route getRoutes(int index) { return routes_.get(index); } /** + * + * *
    * List of Routes.
    * 
@@ -173,20 +206,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 @@ -195,30 +230,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 { @@ -229,34 +264,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. */ @@ -264,20 +307,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; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -310,8 +355,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_); @@ -332,19 +376,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; } @@ -372,117 +414,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() @@ -490,17 +541,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(); @@ -518,9 +569,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 @@ -539,7 +590,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)) { @@ -564,38 +616,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; @@ -603,7 +656,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()) { @@ -622,9 +676,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_); } @@ -663,7 +718,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) { @@ -672,21 +728,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.
      * 
@@ -701,6 +764,8 @@ public java.util.List getRoutesList() { } } /** + * + * *
      * List of Routes.
      * 
@@ -715,6 +780,8 @@ public int getRoutesCount() { } } /** + * + * *
      * List of Routes.
      * 
@@ -729,14 +796,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(); @@ -750,6 +818,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -768,6 +838,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -788,14 +860,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(); @@ -809,14 +882,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()); @@ -827,6 +901,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -845,6 +921,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -855,8 +933,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); @@ -864,6 +941,8 @@ public Builder addAllRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -881,6 +960,8 @@ public Builder clearRoutes() { return this; } /** + * + * *
      * List of Routes.
      * 
@@ -898,39 +979,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 { @@ -938,6 +1024,8 @@ public com.google.cloud.datastream.v1.RouteOrBuilder getRoutesOrBuilder( } } /** + * + * *
      * List of Routes.
      * 
@@ -945,42 +1033,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_; @@ -988,19 +1081,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; @@ -1009,21 +1104,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 { @@ -1031,98 +1127,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. */ @@ -1130,80 +1243,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() { @@ -1213,28 +1336,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); } @@ -1244,12 +1369,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(); } @@ -1258,16 +1383,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; @@ -1282,6 +1407,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 a8b24068..66c33c7b 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,63 +71,72 @@ 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) { throw e.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 @@ -119,29 +145,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 { @@ -152,12 +180,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 @@ -168,6 +199,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.
@@ -177,6 +210,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -185,14 +219,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.
@@ -202,16 +237,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 { @@ -220,6 +254,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -255,8 +289,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_); @@ -269,19 +302,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datastream.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; } @@ -305,117 +336,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() @@ -423,16 +464,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(); @@ -446,9 +486,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 @@ -467,7 +507,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_; @@ -479,38 +520,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; @@ -518,7 +560,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(); @@ -549,7 +592,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) { @@ -561,18 +605,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; @@ -581,20 +629,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 { @@ -602,67 +653,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 @@ -670,32 +737,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; @@ -703,6 +776,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -712,13 +787,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; @@ -727,6 +802,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -736,15 +813,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 { @@ -752,6 +828,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreamObjectsRequest` call.
      * Provide this to retrieve the subsequent page.
@@ -761,20 +839,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.
@@ -784,15 +864,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.
@@ -802,23 +885,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); } @@ -828,12 +911,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(); } @@ -842,16 +925,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; @@ -866,6 +949,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 f7e26a6c..b9d6c2e8 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,22 +112,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.
    * 
@@ -119,6 +144,8 @@ public java.util.List getStreamObje return streamObjects_; } /** + * + * *
    * List of stream objects.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getStreamObjectsCount() { return streamObjects_.size(); } /** + * + * *
    * List of stream objects.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.datastream.v1.StreamObject getStreamObjects(int index) { return streamObjects_.get(index); } /** + * + * *
    * List of stream objects.
    * 
@@ -160,19 +193,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 @@ -181,29 +216,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 { @@ -212,6 +247,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -241,8 +276,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_); @@ -255,17 +289,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; } @@ -289,117 +322,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() @@ -407,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) { getStreamObjectsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -433,9 +476,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 @@ -454,7 +497,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)) { @@ -474,38 +518,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; @@ -513,7 +558,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()) { @@ -532,9 +578,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_); } @@ -563,7 +610,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) { @@ -572,21 +620,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.
      * 
@@ -601,6 +657,8 @@ public java.util.List getStreamObje } } /** + * + * *
      * List of stream objects.
      * 
@@ -615,6 +673,8 @@ public int getStreamObjectsCount() { } } /** + * + * *
      * List of stream objects.
      * 
@@ -629,14 +689,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(); @@ -650,6 +711,8 @@ public Builder setStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -668,6 +731,8 @@ public Builder setStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -688,14 +753,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(); @@ -709,6 +775,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -727,6 +795,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -745,6 +815,8 @@ public Builder addStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -755,8 +827,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); @@ -764,6 +835,8 @@ public Builder addAllStreamObjects( return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -781,6 +854,8 @@ public Builder clearStreamObjects() { return this; } /** + * + * *
      * List of stream objects.
      * 
@@ -798,17 +873,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.
      * 
@@ -818,19 +896,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 { @@ -838,6 +919,8 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getStreamObjectsOrBu } } /** + * + * *
      * List of stream objects.
      * 
@@ -845,38 +928,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(), @@ -888,18 +980,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; @@ -908,20 +1002,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 { @@ -929,61 +1024,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); } @@ -993,12 +1095,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(); } @@ -1007,16 +1109,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; @@ -1031,6 +1133,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 f8a9efd4..31db35fd 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,75 +73,86 @@ 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) { throw e.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 @@ -133,29 +161,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 { @@ -166,6 +196,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
@@ -173,6 +205,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -183,6 +216,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.
@@ -191,6 +226,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -199,14 +235,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.
@@ -215,16 +252,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 { @@ -235,11 +271,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 @@ -248,29 +287,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 { @@ -281,11 +320,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 @@ -294,29 +336,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 { @@ -325,6 +367,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -336,8 +379,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -366,8 +408,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_); @@ -386,23 +427,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; } @@ -430,117 +467,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() @@ -548,16 +594,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(); @@ -575,9 +620,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 @@ -596,7 +641,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_; @@ -610,38 +656,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; @@ -649,7 +696,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(); @@ -688,7 +736,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) { @@ -700,18 +749,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; @@ -720,20 +773,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 { @@ -741,61 +797,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
@@ -803,6 +874,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -810,6 +882,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -817,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 streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -834,10 +911,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 +923,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -853,13 +933,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; @@ -868,6 +948,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -876,15 +958,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 { @@ -892,6 +973,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -900,20 +983,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.
@@ -922,15 +1007,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.
@@ -939,16 +1027,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; @@ -956,18 +1044,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; @@ -976,20 +1066,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 { @@ -997,54 +1088,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; @@ -1052,18 +1150,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; @@ -1072,20 +1172,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 { @@ -1093,61 +1194,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); } @@ -1157,12 +1265,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(); } @@ -1171,16 +1279,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; @@ -1195,6 +1303,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 73% 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 fcebd20d..3fb24545 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,44 +73,47 @@ 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) { throw e.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_); @@ -105,22 +125,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
    * 
@@ -132,6 +157,8 @@ public java.util.List getStreamsList() { return streams_; } /** + * + * *
    * List of streams
    * 
@@ -139,11 +166,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
    * 
@@ -155,6 +184,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * List of streams
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.datastream.v1.Stream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * List of streams
    * 
@@ -173,20 +206,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 @@ -195,30 +230,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 { @@ -229,34 +264,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. */ @@ -264,20 +307,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; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -310,8 +355,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_); @@ -332,19 +376,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; } @@ -372,117 +414,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() @@ -490,17 +541,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(); @@ -518,9 +569,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 @@ -539,7 +590,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)) { @@ -564,38 +616,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; @@ -603,7 +656,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()) { @@ -622,9 +676,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_); } @@ -663,7 +718,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) { @@ -672,21 +728,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
      * 
@@ -701,6 +764,8 @@ public java.util.List getStreamsList() { } } /** + * + * *
      * List of streams
      * 
@@ -715,6 +780,8 @@ public int getStreamsCount() { } } /** + * + * *
      * List of streams
      * 
@@ -729,14 +796,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(); @@ -750,6 +818,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -768,6 +838,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -788,14 +860,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(); @@ -809,14 +882,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()); @@ -827,6 +901,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -845,6 +921,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -855,8 +933,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); @@ -864,6 +941,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -881,6 +960,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * List of streams
      * 
@@ -898,39 +979,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 { @@ -938,6 +1024,8 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamsOrBuilder( } } /** + * + * *
      * List of streams
      * 
@@ -945,42 +1033,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_; @@ -988,19 +1081,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; @@ -1009,21 +1104,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 { @@ -1031,98 +1127,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. */ @@ -1130,80 +1243,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() { @@ -1213,28 +1336,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); } @@ -1244,12 +1369,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(); } @@ -1258,16 +1383,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; @@ -1282,6 +1407,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 61% 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 b30fd79b..833a4787 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,65 +71,77 @@ 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) {
       throw e.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 @@ -121,29 +150,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,11 +185,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 @@ -166,30 +202,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; @@ -201,8 +250,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -222,8 +270,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; @@ -233,19 +281,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; @@ -270,96 +317,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.
@@ -367,21 +422,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()
@@ -389,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();
@@ -414,9 +470,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
@@ -435,7 +491,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_;
@@ -450,38 +507,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;
@@ -489,7 +547,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();
@@ -516,7 +575,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) {
@@ -528,18 +588,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; @@ -548,20 +612,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 { @@ -569,54 +636,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; @@ -624,41 +704,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(); @@ -672,11 +772,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) { @@ -690,17 +794,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; } @@ -712,11 +824,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) { @@ -730,55 +846,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); } @@ -788,12 +922,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(); } @@ -802,16 +936,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; @@ -826,6 +960,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 3311451a..eadcac05 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,84 +72,92 @@ 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) { throw e.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 @@ -141,29 +166,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 { @@ -174,12 +199,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 @@ -188,30 +216,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 { @@ -222,11 +250,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 @@ -237,11 +268,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 @@ -250,29 +284,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 { @@ -283,11 +317,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 @@ -298,11 +335,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 @@ -313,11 +353,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 @@ -326,6 +369,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,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(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -376,23 +419,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; @@ -402,27 +441,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; } @@ -443,11 +476,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(); @@ -455,118 +486,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() @@ -574,16 +614,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(); @@ -605,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_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 @@ -626,7 +665,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_; @@ -642,38 +682,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; @@ -737,18 +778,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; @@ -757,20 +800,21 @@ public java.lang.String getColumn() { } } /** + * + * *
      * Column name.
      * 
* * string column = 1; + * * @return The bytes for column. */ - public com.google.protobuf.ByteString - getColumnBytes() { + public com.google.protobuf.ByteString getColumnBytes() { java.lang.Object ref = column_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); column_ = b; return b; } else { @@ -778,54 +822,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; @@ -833,19 +884,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; @@ -854,21 +907,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 { @@ -876,69 +930,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 @@ -946,30 +1010,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; @@ -977,18 +1047,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; @@ -997,20 +1069,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 { @@ -1018,66 +1091,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 @@ -1085,42 +1168,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 @@ -1128,42 +1220,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 @@ -1171,37 +1272,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); } @@ -1211,12 +1318,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(); } @@ -1225,16 +1332,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; @@ -1249,6 +1356,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 21f469f8..6e810ae3 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,35 +72,37 @@ 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) { throw e.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_); @@ -92,27 +111,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 @@ -121,29 +146,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 { @@ -154,6 +179,8 @@ public java.lang.String getDatabase() { public static final int MYSQL_TABLES_FIELD_NUMBER = 2; private java.util.List mysqlTables_; /** + * + * *
    * Tables in the database.
    * 
@@ -165,6 +192,8 @@ public java.util.List getMysqlTablesL return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -172,11 +201,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.
    * 
@@ -188,6 +219,8 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** + * + * *
    * Tables in the database.
    * 
@@ -199,6 +232,8 @@ public com.google.cloud.datastream.v1.MysqlTable getMysqlTables(int index) { return mysqlTables_.get(index); } /** + * + * *
    * Tables in the database.
    * 
@@ -206,12 +241,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; @@ -223,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -244,8 +278,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; @@ -255,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.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; } @@ -288,118 +320,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() @@ -407,17 +448,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(); @@ -433,9 +474,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 @@ -454,7 +495,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) { @@ -474,38 +516,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; @@ -536,9 +579,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_); } @@ -572,22 +616,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; @@ -596,20 +643,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 { @@ -617,72 +665,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.
      * 
@@ -697,6 +759,8 @@ public java.util.List getMysqlTablesL } } /** + * + * *
      * Tables in the database.
      * 
@@ -711,6 +775,8 @@ public int getMysqlTablesCount() { } } /** + * + * *
      * Tables in the database.
      * 
@@ -725,14 +791,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(); @@ -746,6 +813,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -764,6 +833,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -784,14 +855,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(); @@ -805,6 +877,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -823,6 +897,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -841,6 +917,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -851,8 +929,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); @@ -860,6 +937,8 @@ public Builder addAllMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -877,6 +956,8 @@ public Builder clearMysqlTables() { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -894,39 +975,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 { @@ -934,6 +1020,8 @@ public com.google.cloud.datastream.v1.MysqlTableOrBuilder getMysqlTablesOrBuilde } } /** + * + * *
      * Tables in the database.
      * 
@@ -941,49 +1029,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); } @@ -993,12 +1087,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(); } @@ -1007,16 +1101,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; @@ -1031,6 +1125,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 a3369397..08ea37e9 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,82 +72,93 @@ 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) { throw e.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 @@ -139,29 +167,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 { @@ -172,11 +200,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 @@ -187,11 +218,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 @@ -200,29 +234,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 { @@ -233,11 +267,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 @@ -246,29 +285,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 { @@ -279,11 +320,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 @@ -291,18 +335,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.
    * 
@@ -315,6 +366,7 @@ public com.google.cloud.datastream.v1.MysqlSslConfigOrBuilder getSslConfigOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,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(hostname_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -356,8 +407,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_); @@ -366,8 +416,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; @@ -377,25 +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.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; @@ -425,118 +470,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() @@ -544,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(); @@ -575,9 +628,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 @@ -596,7 +649,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_; @@ -614,38 +668,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; @@ -703,18 +758,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; @@ -723,20 +780,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 { @@ -744,66 +802,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 @@ -811,30 +879,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; @@ -842,18 +916,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; @@ -862,20 +938,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 { @@ -883,54 +960,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; @@ -938,18 +1022,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; @@ -958,20 +1046,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 { @@ -979,54 +1070,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; @@ -1034,34 +1138,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.
      * 
@@ -1082,6 +1199,8 @@ public Builder setSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig value) return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1100,6 +1219,8 @@ public Builder setSslConfig( return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1110,7 +1231,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; } @@ -1122,6 +1245,8 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1.MysqlSslConfig valu return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1140,6 +1265,8 @@ public Builder clearSslConfig() { return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1147,11 +1274,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.
      * 
@@ -1162,11 +1291,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.
      * 
@@ -1174,21 +1306,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); } @@ -1198,12 +1333,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(); } @@ -1212,16 +1347,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; @@ -1236,6 +1371,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 a6944bec..40103113 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,29 +71,31 @@ 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) { throw e.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_); @@ -85,22 +104,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
    * 
@@ -112,6 +136,8 @@ public java.util.List getMysqlData return mysqlDatabases_; } /** + * + * *
    * Mysql databases on the server
    * 
@@ -119,11 +145,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
    * 
@@ -135,6 +163,8 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -146,6 +176,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) return mysqlDatabases_.get(index); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -159,6 +191,7 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,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 < mysqlDatabases_.size(); i++) { output.writeMessage(1, mysqlDatabases_.get(i)); } @@ -185,8 +217,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; @@ -196,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.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; } @@ -225,118 +256,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() @@ -344,17 +384,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(); @@ -368,9 +408,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 @@ -389,7 +429,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)) { @@ -408,38 +449,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; @@ -466,9 +508,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_); } @@ -502,21 +545,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
      * 
@@ -531,6 +582,8 @@ public java.util.List getMysqlData } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -545,6 +598,8 @@ public int getMysqlDatabasesCount() { } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -559,6 +614,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase getMysqlDatabases(int index) } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -580,6 +637,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -598,6 +657,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -618,6 +679,8 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1.MysqlDatabase va return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -639,6 +702,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -657,6 +722,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -675,6 +742,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -685,8 +754,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); @@ -694,6 +762,8 @@ public Builder addAllMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -711,6 +781,8 @@ public Builder clearMysqlDatabases() { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -728,6 +800,8 @@ public Builder removeMysqlDatabases(int index) { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -739,6 +813,8 @@ public com.google.cloud.datastream.v1.MysqlDatabase.Builder getMysqlDatabasesBui return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -748,19 +824,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 { @@ -768,6 +847,8 @@ public com.google.cloud.datastream.v1.MysqlDatabaseOrBuilder getMysqlDatabasesOr } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -775,10 +856,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
      * 
@@ -787,26 +870,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(), @@ -815,9 +906,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); } @@ -827,12 +918,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(); } @@ -841,16 +932,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; @@ -865,6 +956,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 70% 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 9022d71a..02c06ca2 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,72 +68,83 @@ 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(); - } - - break; - } - case 18: { - com.google.cloud.datastream.v1.MysqlRdbms.Builder subBuilder = null; - if (excludeObjects_ != null) { - subBuilder = excludeObjects_.toBuilder(); + 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; } - excludeObjects_ = input.readMessage(com.google.cloud.datastream.v1.MysqlRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(excludeObjects_); - excludeObjects_ = subBuilder.buildPartial(); + 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; } - - 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) { throw e.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 @@ -125,18 +152,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.
    * 
@@ -151,11 +185,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 @@ -163,18 +200,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.
    * 
@@ -187,6 +231,7 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getExcludeObjectsOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -216,12 +260,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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +273,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -272,118 +313,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() @@ -391,16 +441,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(); @@ -420,9 +469,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 @@ -441,7 +490,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 { @@ -460,38 +510,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; @@ -499,7 +550,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.MysqlSourceConfig other) { - if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.MysqlSourceConfig.getDefaultInstance()) + return this; if (other.hasIncludeObjects()) { mergeIncludeObjects(other.getIncludeObjects()); } @@ -537,34 +589,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.
      * 
@@ -585,6 +650,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -603,6 +670,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -613,7 +682,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; } @@ -625,6 +696,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -643,6 +716,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -650,11 +725,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.
      * 
@@ -665,11 +742,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.
      * 
@@ -677,14 +757,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_; @@ -692,34 +775,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.
      * 
@@ -740,6 +836,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms value return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -758,6 +856,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -768,7 +868,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; } @@ -780,6 +882,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -798,6 +902,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -805,11 +911,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.
      * 
@@ -820,11 +928,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.
      * 
@@ -832,21 +943,24 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +970,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(); } @@ -870,16 +984,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; @@ -894,6 +1008,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 71% 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 1ee8e438..6e48479b 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.
    * 
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 ecb6a012..84682d6a 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,74 +72,81 @@ 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) { throw e.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
@@ -130,6 +154,7 @@ private MysqlSslConfig(
    * 
* * string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -138,14 +163,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
@@ -153,16 +179,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 { @@ -173,11 +198,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 @@ -188,6 +216,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
@@ -195,6 +225,7 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -203,14 +234,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
@@ -218,16 +250,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 { @@ -238,11 +269,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 @@ -253,12 +287,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 @@ -267,30 +304,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 { @@ -301,11 +338,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 @@ -314,6 +354,7 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,8 +366,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -358,22 +398,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; @@ -383,25 +420,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; } @@ -416,135 +448,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() @@ -552,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(); @@ -581,9 +618,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 @@ -602,7 +639,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_; @@ -617,38 +655,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; @@ -709,6 +748,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
@@ -716,13 +757,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; @@ -731,6 +772,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
@@ -738,15 +781,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 { @@ -754,6 +796,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
@@ -761,20 +805,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
@@ -782,15 +828,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
@@ -798,28 +847,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 @@ -827,30 +879,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; @@ -858,6 +916,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
@@ -865,13 +925,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; @@ -880,6 +940,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
@@ -887,15 +949,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 { @@ -903,6 +964,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
@@ -910,20 +973,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
@@ -931,15 +996,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
@@ -947,28 +1015,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 @@ -976,30 +1047,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; @@ -1007,19 +1084,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; @@ -1028,21 +1107,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 { @@ -1050,69 +1130,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 @@ -1120,37 +1210,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); } @@ -1160,12 +1256,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(); } @@ -1174,16 +1270,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; @@ -1198,6 +1294,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 907d4085..07af8fd6 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 8219020d..85e98e17 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,27 +112,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 @@ -121,29 +147,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 { @@ -154,6 +180,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 lists, includes/excludes
@@ -167,6 +195,8 @@ public java.util.List getMysqlColumn
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -176,11 +206,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 lists, includes/excludes
@@ -194,6 +226,8 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -207,6 +241,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 lists, includes/excludes
@@ -216,12 +252,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;
@@ -233,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -254,8 +289,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;
@@ -265,17 +299,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;
   }
@@ -298,118 +331,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() @@ -417,17 +459,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(); @@ -443,9 +485,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 @@ -464,7 +506,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) { @@ -484,38 +527,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; @@ -546,9 +590,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_); } @@ -582,22 +627,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; @@ -606,20 +654,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 { @@ -627,72 +676,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 lists, includes/excludes
@@ -709,6 +772,8 @@ public java.util.List getMysqlColumn
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -725,6 +790,8 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -741,6 +808,8 @@ public com.google.cloud.datastream.v1.MysqlColumn getMysqlColumns(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -749,8 +818,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();
@@ -764,6 +832,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -784,6 +854,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -806,6 +878,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 lists, includes/excludes
@@ -814,8 +888,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();
@@ -829,6 +902,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -849,6 +924,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -869,6 +946,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -881,8 +960,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);
@@ -890,6 +968,8 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -909,6 +989,8 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -928,6 +1010,8 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -936,11 +1020,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 lists, includes/excludes
@@ -949,14 +1034,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 lists, includes/excludes
@@ -965,8 +1052,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 {
@@ -974,6 +1061,8 @@ public com.google.cloud.datastream.v1.MysqlColumnOrBuilder getMysqlColumnsOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -983,10 +1072,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 lists, includes/excludes
@@ -995,12 +1086,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 lists, includes/excludes
@@ -1009,27 +1101,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);
     }
 
@@ -1039,12 +1134,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();
   }
@@ -1053,16 +1148,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;
@@ -1077,6 +1172,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 6b54f68e..494e62d3 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 lists, 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 lists, 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 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.v1.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.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 c25434df..53777dd8 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,114 +73,131 @@ 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) { throw e.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 @@ -171,11 +205,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 @@ -183,11 +221,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() { @@ -197,11 +238,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 @@ -209,11 +254,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 @@ -221,11 +270,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() { @@ -235,11 +287,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 @@ -248,29 +303,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 { @@ -281,11 +336,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 @@ -294,29 +352,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 { @@ -327,11 +385,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 @@ -340,29 +401,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 { @@ -373,6 +434,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
@@ -381,6 +444,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -391,11 +455,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 @@ -404,29 +471,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 { @@ -437,11 +504,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 @@ -449,23 +521,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() { @@ -473,6 +556,7 @@ public com.google.cloud.datastream.v1.ValidationResultOrBuilder getValidationRes } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -484,8 +568,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -520,12 +603,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_); @@ -537,15 +618,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; @@ -555,37 +634,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; @@ -613,8 +685,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()) { @@ -626,118 +697,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() @@ -745,16 +825,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(); @@ -790,9 +869,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 @@ -811,7 +890,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 { @@ -840,38 +920,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; @@ -879,7 +960,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()); } @@ -939,39 +1021,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) { @@ -987,14 +1088,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(); @@ -1005,17 +1109,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; } @@ -1027,11 +1135,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) { @@ -1045,48 +1157,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_; @@ -1094,24 +1222,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() { @@ -1122,11 +1261,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) { @@ -1142,14 +1284,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(); @@ -1160,17 +1304,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; } @@ -1182,11 +1329,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) { @@ -1200,48 +1350,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_; @@ -1249,18 +1410,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; @@ -1269,20 +1432,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 { @@ -1290,54 +1454,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; @@ -1345,18 +1516,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; @@ -1365,20 +1538,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 { @@ -1386,54 +1560,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; @@ -1441,18 +1622,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; @@ -1461,20 +1644,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 { @@ -1482,61 +1666,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
@@ -1545,6 +1738,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1552,6 +1746,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1560,16 +1756,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
@@ -1578,10 +1777,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; @@ -1589,18 +1789,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; @@ -1609,20 +1811,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 { @@ -1630,54 +1833,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; @@ -1685,39 +1895,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) { @@ -1733,11 +1962,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) { @@ -1751,17 +1984,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; } @@ -1773,11 +2012,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) { @@ -1791,55 +2034,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); } @@ -1849,12 +2108,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(); } @@ -1863,16 +2122,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; @@ -1887,6 +2146,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 9601cd0d..1ffae4b1 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,94 +72,102 @@ 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) { throw e.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 @@ -151,29 +176,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 { @@ -184,11 +209,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 @@ -197,29 +225,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 { @@ -230,11 +258,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 @@ -245,11 +276,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 @@ -260,11 +294,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 @@ -275,11 +312,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 @@ -288,29 +328,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 { @@ -321,11 +361,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 @@ -336,11 +379,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 @@ -351,11 +397,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 @@ -364,6 +413,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,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(column_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, column_); } @@ -420,31 +469,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; @@ -454,31 +497,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; } @@ -503,11 +538,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(); @@ -515,118 +548,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() @@ -634,16 +676,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(); @@ -669,9 +710,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 @@ -690,7 +731,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_; @@ -708,38 +750,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; @@ -809,18 +852,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; @@ -829,20 +874,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 { @@ -850,54 +896,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; @@ -905,18 +958,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; @@ -925,20 +980,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 { @@ -946,66 +1002,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 @@ -1013,42 +1079,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 @@ -1056,42 +1131,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 @@ -1099,30 +1183,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; @@ -1130,18 +1220,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; @@ -1150,20 +1242,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 { @@ -1171,66 +1264,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 @@ -1238,42 +1341,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 @@ -1281,42 +1393,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 @@ -1324,37 +1445,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); } @@ -1364,12 +1491,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(); } @@ -1378,16 +1505,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; @@ -1402,6 +1529,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 8d61b16c..539c3dc6 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,100 +74,113 @@ 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) { throw e.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 @@ -159,29 +189,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 { @@ -192,11 +222,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 @@ -207,11 +240,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 @@ -220,29 +256,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 { @@ -253,11 +289,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 @@ -266,29 +305,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 { @@ -299,11 +338,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 @@ -312,29 +354,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 { @@ -343,21 +385,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); @@ -369,28 +412,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 java.lang.NullPointerException(); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
    * 
@@ -398,11 +443,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
    * 
@@ -410,16 +456,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 java.lang.NullPointerException(); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Connection string attributes
    * 
@@ -427,10 +475,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 java.lang.NullPointerException(); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -440,6 +488,7 @@ public java.lang.String getConnectionAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -468,8 +516,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, @@ -487,8 +534,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_); @@ -499,15 +545,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; @@ -517,25 +563,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; } @@ -566,140 +608,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() @@ -707,16 +756,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(); @@ -735,9 +783,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 @@ -756,7 +804,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_; @@ -773,38 +822,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; @@ -832,8 +882,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; @@ -862,22 +911,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; @@ -886,20 +938,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 { @@ -907,66 +960,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 @@ -974,30 +1037,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; @@ -1005,18 +1074,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; @@ -1025,20 +1096,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 { @@ -1046,54 +1118,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; @@ -1101,18 +1180,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; @@ -1121,20 +1202,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 { @@ -1142,54 +1224,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; @@ -1197,18 +1286,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; @@ -1217,20 +1308,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 { @@ -1238,75 +1330,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(); @@ -1318,28 +1420,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 java.lang.NullPointerException(); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
      * 
@@ -1347,11 +1451,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
      * 
@@ -1359,16 +1464,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 java.lang.NullPointerException(); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Connection string attributes
      * 
@@ -1376,10 +1483,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 java.lang.NullPointerException(); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1389,66 +1496,66 @@ 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 java.lang.NullPointerException(); } - internalGetMutableConnectionAttributes().getMutableMap() - .remove(key); + public Builder removeConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConnectionAttributes().getMutableMap() - .put(key, value); + public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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); } @@ -1458,12 +1565,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(); } @@ -1472,16 +1579,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; @@ -1496,6 +1603,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 68% 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 870b97b2..de85f32d 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,48 +147,47 @@ 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
    * 
* * map<string, string> connection_attributes = 6; */ - java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String key, 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 e9681b4c..747e3548 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,29 +71,31 @@ 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) { throw e.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_); @@ -85,22 +104,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.
    * 
@@ -112,6 +136,8 @@ public java.util.List getOracleSche return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -119,11 +145,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.
    * 
@@ -135,6 +163,8 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -146,6 +176,8 @@ public com.google.cloud.datastream.v1.OracleSchema getOracleSchemas(int index) { return oracleSchemas_.get(index); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -153,12 +185,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; @@ -170,8 +202,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -185,8 +216,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; @@ -196,15 +226,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; } @@ -225,118 +255,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() @@ -344,17 +383,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(); @@ -368,9 +407,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 @@ -389,7 +428,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)) { @@ -408,38 +448,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; @@ -466,9 +507,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_); } @@ -502,21 +544,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.
      * 
@@ -531,6 +581,8 @@ public java.util.List getOracleSche } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -545,6 +597,8 @@ public int getOracleSchemasCount() { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -559,14 +613,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(); @@ -580,6 +635,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -598,6 +655,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -618,14 +677,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(); @@ -639,6 +699,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -657,6 +719,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -675,6 +739,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -685,8 +751,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); @@ -694,6 +759,8 @@ public Builder addAllOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -711,6 +778,8 @@ public Builder clearOracleSchemas() { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -728,17 +797,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.
      * 
@@ -748,19 +820,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 { @@ -768,6 +843,8 @@ public com.google.cloud.datastream.v1.OracleSchemaOrBuilder getOracleSchemasOrBu } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -775,38 +852,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(), @@ -815,9 +901,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); } @@ -827,12 +913,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(); } @@ -841,16 +927,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; @@ -865,6 +951,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 968322c0..cdda7d46 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,27 +112,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 @@ -121,29 +147,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 { @@ -154,6 +180,8 @@ public java.lang.String getSchema() { public static final int ORACLE_TABLES_FIELD_NUMBER = 2; private java.util.List oracleTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -165,6 +193,8 @@ public java.util.List getOracleTable return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -172,11 +202,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.
    * 
@@ -188,6 +220,8 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -199,6 +233,8 @@ public com.google.cloud.datastream.v1.OracleTable getOracleTables(int index) { return oracleTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -206,12 +242,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; @@ -223,8 +259,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -244,8 +279,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; @@ -255,17 +289,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; } @@ -288,118 +321,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() @@ -407,17 +449,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(); @@ -433,9 +475,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 @@ -454,7 +496,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) { @@ -474,38 +517,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; @@ -536,9 +580,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_); } @@ -572,22 +617,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; @@ -596,20 +644,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 { @@ -617,72 +666,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.
      * 
@@ -697,6 +760,8 @@ public java.util.List getOracleTable } } /** + * + * *
      * Tables in the schema.
      * 
@@ -711,6 +776,8 @@ public int getOracleTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -725,14 +792,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(); @@ -746,6 +814,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -764,6 +834,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -784,14 +856,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(); @@ -805,6 +878,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -823,6 +898,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -841,6 +918,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -851,8 +930,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); @@ -860,6 +938,8 @@ public Builder addAllOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -877,6 +957,8 @@ public Builder clearOracleTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -894,39 +976,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 { @@ -934,6 +1021,8 @@ public com.google.cloud.datastream.v1.OracleTableOrBuilder getOracleTablesOrBuil } } /** + * + * *
      * Tables in the schema.
      * 
@@ -941,49 +1030,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); } @@ -993,12 +1088,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(); } @@ -1007,16 +1102,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; @@ -1031,6 +1126,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 70% 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 c0a7af1d..2ce4a95f 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,83 @@ 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(); - } - - break; - } - case 18: { - com.google.cloud.datastream.v1.OracleRdbms.Builder subBuilder = null; - if (excludeObjects_ != null) { - subBuilder = excludeObjects_.toBuilder(); + 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; } - excludeObjects_ = input.readMessage(com.google.cloud.datastream.v1.OracleRdbms.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(excludeObjects_); - excludeObjects_ = subBuilder.buildPartial(); + 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; } - - 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) { throw e.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 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 @@ -125,18 +152,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.
    * 
@@ -151,11 +185,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 @@ -163,18 +200,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.
    * 
@@ -187,6 +231,7 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getExcludeObjectsOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -216,12 +260,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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -231,22 +273,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +314,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() @@ -391,16 +441,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(); @@ -420,9 +469,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 @@ -441,7 +490,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 { @@ -460,38 +510,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; @@ -499,7 +550,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()); } @@ -525,7 +577,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) { @@ -537,34 +590,47 @@ public Builder mergeFrom( 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.
      * 
@@ -585,6 +651,8 @@ public Builder setIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -603,6 +671,8 @@ public Builder setIncludeObjects( return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -613,7 +683,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; } @@ -625,6 +697,8 @@ public Builder mergeIncludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -643,6 +717,8 @@ public Builder clearIncludeObjects() { return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -650,11 +726,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.
      * 
@@ -665,11 +743,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.
      * 
@@ -677,14 +758,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_; @@ -692,34 +776,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.
      * 
@@ -740,6 +837,8 @@ public Builder setExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms valu return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -758,6 +857,8 @@ public Builder setExcludeObjects( return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -768,7 +869,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; } @@ -780,6 +883,8 @@ public Builder mergeExcludeObjects(com.google.cloud.datastream.v1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -798,6 +903,8 @@ public Builder clearExcludeObjects() { return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -805,11 +912,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.
      * 
@@ -820,11 +929,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.
      * 
@@ -832,21 +944,24 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -856,12 +971,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(); } @@ -870,16 +985,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; @@ -894,6 +1009,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 71% 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 ff3f63ba..52a54507 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.
    * 
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 da8e6add..7522607d 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,27 +112,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 @@ -121,29 +147,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 { @@ -154,6 +180,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 inclue/exclude lists, includes/excludes
@@ -167,6 +195,8 @@ public java.util.List getOracleColu
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -176,11 +206,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 inclue/exclude lists, includes/excludes
@@ -194,6 +226,8 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -207,6 +241,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 inclue/exclude lists, includes/excludes
@@ -216,12 +252,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;
@@ -233,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, table_);
     }
@@ -254,8 +289,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;
@@ -265,17 +299,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;
   }
@@ -298,118 +331,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() @@ -417,17 +459,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(); @@ -443,9 +485,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 @@ -464,7 +506,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) { @@ -484,38 +527,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; @@ -546,9 +590,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_); } @@ -582,22 +627,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; @@ -606,20 +654,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 { @@ -627,72 +676,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 inclue/exclude lists, includes/excludes
@@ -709,6 +772,8 @@ public java.util.List getOracleColu
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -725,6 +790,8 @@ public int getOracleColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -741,6 +808,8 @@ public com.google.cloud.datastream.v1.OracleColumn getOracleColumns(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -749,8 +818,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();
@@ -764,6 +832,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -784,6 +854,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -806,6 +878,8 @@ public Builder addOracleColumns(com.google.cloud.datastream.v1.OracleColumn valu
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -814,8 +888,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();
@@ -829,6 +902,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -849,6 +924,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -869,6 +946,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -881,8 +960,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);
@@ -890,6 +968,8 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -909,6 +989,8 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -928,6 +1010,8 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -936,11 +1020,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 inclue/exclude lists, includes/excludes
@@ -952,11 +1037,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 inclue/exclude lists, includes/excludes
@@ -965,8 +1053,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 {
@@ -974,6 +1062,8 @@ public com.google.cloud.datastream.v1.OracleColumnOrBuilder getOracleColumnsOrBu
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -983,10 +1073,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 inclue/exclude lists, includes/excludes
@@ -995,12 +1087,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 inclue/exclude lists, includes/excludes
@@ -1009,16 +1102,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(),
@@ -1027,9 +1126,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);
     }
 
@@ -1039,12 +1138,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();
   }
@@ -1053,16 +1152,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;
@@ -1077,6 +1176,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 346258b2..c4ba1b16 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 inclue/exclude lists, 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 inclue/exclude lists, 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 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.v1.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.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/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 b3680655..144c4df7 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,143 +74,160 @@ 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) {
       throw e.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.
      * 
@@ -202,6 +236,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -210,6 +246,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The private connection has been created with all of its resources.
      * 
@@ -218,6 +256,8 @@ public enum State */ CREATED(2), /** + * + * *
      * The private connection creation has failed.
      * 
@@ -226,6 +266,8 @@ public enum State */ FAILED(3), /** + * + * *
      * The private connection is being deleted.
      * 
@@ -234,6 +276,8 @@ public enum State */ DELETING(4), /** + * + * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -245,6 +289,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -253,6 +299,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The private connection is in creation state - creating resources.
      * 
@@ -261,6 +309,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The private connection has been created with all of its resources.
      * 
@@ -269,6 +319,8 @@ public enum State */ public static final int CREATED_VALUE = 2; /** + * + * *
      * The private connection creation has failed.
      * 
@@ -277,6 +329,8 @@ public enum State */ public static final int FAILED_VALUE = 3; /** + * + * *
      * The private connection is being deleted.
      * 
@@ -285,6 +339,8 @@ public enum State */ public static final int DELETING_VALUE = 4; /** + * + * *
      * Delete request has failed, resource is in invalid state.
      * 
@@ -293,7 +349,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( @@ -318,52 +373,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; @@ -383,11 +441,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 @@ -396,29 +457,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 { @@ -429,11 +490,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 @@ -441,11 +506,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 @@ -453,11 +522,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() { @@ -467,11 +539,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 @@ -479,11 +555,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 @@ -491,11 +571,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() { @@ -503,24 +586,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_; } @@ -529,28 +611,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -558,11 +642,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -570,16 +655,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -587,12 +672,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -602,11 +686,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 @@ -615,29 +702,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 { @@ -648,39 +735,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.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 @@ -688,12 +794,16 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The error. */ @java.lang.Override @@ -701,12 +811,15 @@ public com.google.cloud.datastream.v1.Error getError() { return error_ == null ? com.google.cloud.datastream.v1.Error.getDefaultInstance() : error_; } /** + * + * *
    * Output only. In case of error, the details of the error in a user-friendly
    * format.
    * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.datastream.v1.ErrorOrBuilder getErrorOrBuilder() { @@ -716,11 +829,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 @@ -728,18 +844,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.
    * 
@@ -752,6 +875,7 @@ public com.google.cloud.datastream.v1.VpcPeeringConfigOrBuilder getVpcPeeringCon } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -763,8 +887,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -774,16 +897,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) { @@ -805,37 +925,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; @@ -845,39 +961,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; @@ -921,97 +1031,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.
@@ -1019,43 +1136,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()
@@ -1063,16 +1180,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();
@@ -1111,9 +1227,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
@@ -1132,7 +1248,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) {
@@ -1167,38 +1284,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;
@@ -1206,7 +1324,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();
@@ -1217,8 +1336,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();
@@ -1260,22 +1378,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; @@ -1284,20 +1405,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 { @@ -1305,54 +1427,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; @@ -1360,39 +1489,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) { @@ -1408,14 +1556,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(); @@ -1426,17 +1577,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; } @@ -1448,11 +1603,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) { @@ -1466,48 +1625,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_; @@ -1515,39 +1690,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) { @@ -1563,14 +1757,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(); @@ -1581,17 +1778,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; } @@ -1603,11 +1804,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) { @@ -1621,69 +1826,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(); @@ -1695,28 +1915,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1724,11 +1946,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1736,16 +1959,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1753,12 +1977,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1766,78 +1989,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -1846,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 { @@ -1867,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; @@ -1922,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. */ @@ -1974,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; @@ -1996,26 +2257,39 @@ public Builder clearState() { private com.google.cloud.datastream.v1.Error error_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datastream.v1.Error, com.google.cloud.datastream.v1.Error.Builder, com.google.cloud.datastream.v1.ErrorOrBuilder> errorBuilder_; + com.google.cloud.datastream.v1.Error, + com.google.cloud.datastream.v1.Error.Builder, + com.google.cloud.datastream.v1.ErrorOrBuilder> + errorBuilder_; /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the error field is set. */ public boolean hasError() { return 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,12 +2300,16 @@ public com.google.cloud.datastream.v1.Error getError() { } } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setError(com.google.cloud.datastream.v1.Error value) { if (errorBuilder_ == null) { @@ -2047,15 +2325,18 @@ public Builder setError(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setError( - com.google.cloud.datastream.v1.Error.Builder builderForValue) { + public Builder setError(com.google.cloud.datastream.v1.Error.Builder builderForValue) { if (errorBuilder_ == null) { error_ = builderForValue.build(); onChanged(); @@ -2066,18 +2347,24 @@ 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; } @@ -2089,12 +2376,16 @@ public Builder mergeError(com.google.cloud.datastream.v1.Error value) { return this; } /** + * + * *
      * Output only. In case of error, the details of the error in a user-friendly
      * format.
      * 
* - * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.datastream.v1.Error error = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearError() { if (errorBuilder_ == null) { @@ -2108,51 +2399,65 @@ 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_; @@ -2160,34 +2465,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.
      * 
@@ -2208,6 +2526,8 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringConf return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2226,6 +2546,8 @@ public Builder setVpcPeeringConfig( return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2236,7 +2558,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; } @@ -2248,6 +2572,8 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1.VpcPeeringCo return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2266,6 +2592,8 @@ public Builder clearVpcPeeringConfig() { return this; } /** + * + * *
      * VPC Peering Config.
      * 
@@ -2273,11 +2601,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.
      * 
@@ -2288,11 +2618,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.
      * 
@@ -2300,21 +2633,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); } @@ -2324,12 +2660,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(); } @@ -2338,16 +2674,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; @@ -2362,6 +2698,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 69% 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 a42d6389..c4273ed2 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,139 +135,171 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, 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 0dc39fd0..797997a2 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,53 +70,61 @@ 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) { throw e.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 @@ -108,30 +133,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 { @@ -140,6 +167,7 @@ public java.lang.String getPrivateConnection() { } 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(privateConnection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, privateConnection_); } @@ -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.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; } @@ -204,117 +231,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() @@ -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.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 @@ -362,7 +397,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; @@ -372,38 +408,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; @@ -411,7 +448,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(); @@ -435,7 +473,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) { @@ -447,19 +486,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; @@ -468,21 +511,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 { @@ -490,64 +536,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); } @@ -557,12 +616,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(); } @@ -571,16 +630,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; @@ -595,6 +654,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 902f676f..f4da97c7 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,120 +74,131 @@ 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) {
       throw e.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 @@ -179,29 +207,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -212,11 +240,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -224,11 +256,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -236,11 +272,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -250,11 +289,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -262,11 +305,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -274,11 +321,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -286,24 +336,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_; } @@ -312,28 +361,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -341,11 +392,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -353,16 +405,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -370,12 +422,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -385,11 +436,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 @@ -398,29 +452,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -431,11 +485,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 @@ -444,29 +501,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 { @@ -477,11 +534,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 @@ -490,6 +550,7 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -501,8 +562,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -512,12 +572,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_); } @@ -540,22 +596,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_); @@ -564,8 +618,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; @@ -575,33 +628,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; } @@ -638,97 +684,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.
@@ -736,43 +788,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()
@@ -780,16 +832,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();
@@ -818,9 +869,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
@@ -865,38 +916,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;
@@ -915,8 +967,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();
@@ -956,22 +1007,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; @@ -980,20 +1034,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 { @@ -1001,54 +1056,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; @@ -1056,39 +1118,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) { @@ -1104,14 +1185,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(); @@ -1122,17 +1206,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; } @@ -1144,11 +1232,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) { @@ -1162,48 +1254,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_; @@ -1211,39 +1319,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) { @@ -1259,14 +1386,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(); @@ -1277,17 +1407,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; } @@ -1299,11 +1433,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) { @@ -1317,69 +1455,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(); @@ -1391,28 +1544,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1420,11 +1575,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1432,16 +1588,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1449,12 +1606,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1462,78 +1618,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -1542,20 +1699,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 { @@ -1563,54 +1721,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; @@ -1618,18 +1783,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; @@ -1638,20 +1805,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 { @@ -1659,66 +1827,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 @@ -1726,37 +1904,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); } @@ -1766,12 +1950,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(); } @@ -1780,16 +1964,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; @@ -1804,6 +1988,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 68% 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 681fc29b..a8759245 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,97 +135,108 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, 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 110dc2a9..3a6ff7bf 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,81 +70,98 @@ 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(); + sourceConnectionProfile_ = s; + break; } - 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(); + 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_ = 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(); + 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.MysqlSourceConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datastream.v1.MysqlSourceConfig) sourceStreamConfig_); - sourceStreamConfig_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - sourceStreamConfigCase_ = 101; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.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), SOURCESTREAMCONFIG_NOT_SET(0); private final int value; + private SourceStreamConfigCase(int value) { this.value = value; } @@ -143,32 +177,40 @@ public static SourceStreamConfigCase valueOf(int value) { public static SourceStreamConfigCase forNumber(int value) { switch (value) { - case 100: return ORACLE_SOURCE_CONFIG; - case 101: return MYSQL_SOURCE_CONFIG; - case 0: return SOURCESTREAMCONFIG_NOT_SET; - default: return null; + case 100: + return ORACLE_SOURCE_CONFIG; + case 101: + return MYSQL_SOURCE_CONFIG; + case 0: + return SOURCESTREAMCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public SourceStreamConfigCase - getSourceStreamConfigCase() { - return SourceStreamConfigCase.forNumber( - sourceStreamConfigCase_); + public SourceStreamConfigCase getSourceStreamConfigCase() { + return SourceStreamConfigCase.forNumber(sourceStreamConfigCase_); } public static final int SOURCE_CONNECTION_PROFILE_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 @@ -177,30 +219,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 { @@ -210,11 +254,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 @@ -222,21 +269,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
    * 
@@ -244,20 +296,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 @@ -265,21 +321,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
    * 
@@ -289,12 +350,13 @@ 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(); } 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(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_); } unknownFields.writeTo(output); } @@ -330,12 +393,14 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -345,24 +410,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.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 0: default: @@ -397,118 +460,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() @@ -516,16 +588,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 +608,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 @@ -558,7 +629,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) { @@ -583,38 +655,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; @@ -628,17 +701,20 @@ 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 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(); @@ -668,12 +744,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,22 +759,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; @@ -707,21 +786,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 { @@ -729,70 +811,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 @@ -800,11 +901,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 @@ -822,6 +926,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfig getOracleSourceConfig() } } /** + * + * *
      * Oracle data source configuration
      * 
@@ -842,6 +948,8 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1.OracleSource return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -860,18 +968,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; } @@ -886,6 +1001,8 @@ public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1.OracleSour return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -909,16 +1026,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
      * 
@@ -926,7 +1048,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 { @@ -937,6 +1060,8 @@ public com.google.cloud.datastream.v1.OracleSourceConfigOrBuilder getOracleSourc } } /** + * + * *
      * Oracle data source configuration
      * 
@@ -944,32 +1069,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 @@ -977,11 +1115,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 @@ -999,6 +1140,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig getMysqlSourceConfig() { } } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1019,6 +1162,8 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSourceCo return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1037,6 +1182,8 @@ public Builder setMysqlSourceConfig( return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1045,10 +1192,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; } @@ -1063,6 +1214,8 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1.MysqlSource return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1086,6 +1239,8 @@ public Builder clearMysqlSourceConfig() { return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1096,6 +1251,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfig.Builder getMysqlSourceCo return getMysqlSourceConfigFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1103,7 +1260,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 { @@ -1114,6 +1272,8 @@ public com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceC } } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1121,26 +1281,33 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1150,12 +1317,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(); } @@ -1164,16 +1331,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; @@ -1188,6 +1355,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 67% 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 7f87e055..7a825e7d 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
    * 
@@ -83,5 +124,6 @@ public interface SourceConfigOrBuilder extends */ com.google.cloud.datastream.v1.MysqlSourceConfigOrBuilder getMysqlSourceConfigOrBuilder(); - 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 61% 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 3c4edbbe..06ee80e6 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,126 +68,162 @@ 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(); + 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; } - 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 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; } - sourceIdentifierCase_ = 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) { throw e.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_ = ""; @@ -179,16 +231,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) @@ -207,58 +258,66 @@ 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) { throw e.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 @@ -267,29 +326,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 { @@ -300,11 +359,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 @@ -313,29 +375,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 { @@ -344,6 +406,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -355,8 +418,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -386,17 +448,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; } @@ -417,88 +480,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 @@ -508,44 +584,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(); @@ -557,19 +640,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); } @@ -577,8 +663,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(); @@ -589,46 +677,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(); @@ -652,11 +749,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) { @@ -668,18 +768,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; @@ -688,20 +790,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 { @@ -709,54 +812,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; @@ -764,18 +874,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; @@ -784,20 +896,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 { @@ -805,58 +918,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) { @@ -869,30 +990,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; @@ -904,72 +1029,86 @@ 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 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_ = ""; @@ -977,16 +1116,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) @@ -1005,58 +1143,66 @@ 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) { throw e.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 @@ -1065,29 +1211,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 { @@ -1098,11 +1244,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 @@ -1111,29 +1260,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 { @@ -1142,6 +1291,7 @@ public java.lang.String getTable() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1153,8 +1303,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1184,17 +1333,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; } @@ -1215,88 +1364,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 @@ -1306,44 +1468,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(); @@ -1355,19 +1523,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); } @@ -1375,8 +1546,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(); @@ -1387,46 +1560,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(); @@ -1450,11 +1632,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) { @@ -1466,18 +1651,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; @@ -1486,20 +1673,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 { @@ -1507,54 +1695,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; @@ -1562,18 +1757,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; @@ -1582,20 +1779,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 { @@ -1603,58 +1801,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) { @@ -1667,30 +1873,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; @@ -1702,21 +1911,24 @@ 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), SOURCEIDENTIFIER_NOT_SET(0); private final int value; + private SourceIdentifierCase(int value) { this.value = value; } @@ -1732,30 +1944,38 @@ 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 0: return SOURCEIDENTIFIER_NOT_SET; - default: return null; + case 1: + return ORACLE_IDENTIFIER; + case 2: + return MYSQL_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 @@ -1763,42 +1983,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 @@ -1806,36 +2046,52 @@ 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(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1847,13 +2103,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 (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_); } unknownFields.writeTo(output); } @@ -1865,12 +2126,18 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1880,22 +2147,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.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 0: default: @@ -1929,117 +2195,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() @@ -2047,16 +2323,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(); @@ -2066,9 +2341,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 @@ -2087,7 +2362,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_; @@ -2111,38 +2387,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; @@ -2150,19 +2427,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datastream.v1.SourceObjectIdentifier other) { - if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) return this; + if (other == com.google.cloud.datastream.v1.SourceObjectIdentifier.getDefaultInstance()) + return this; switch (other.getSourceIdentifierCase()) { - case ORACLE_IDENTIFIER: { - mergeOracleIdentifier(other.getOracleIdentifier()); - break; - } - case MYSQL_IDENTIFIER: { - mergeMysqlIdentifier(other.getMysqlIdentifier()); - break; - } - case SOURCEIDENTIFIER_NOT_SET: { - break; - } + case ORACLE_IDENTIFIER: + { + mergeOracleIdentifier(other.getOracleIdentifier()); + break; + } + case MYSQL_IDENTIFIER: + { + mergeMysqlIdentifier(other.getMysqlIdentifier()); + break; + } + case SOURCEIDENTIFIER_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -2183,7 +2464,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) { @@ -2192,12 +2474,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() { @@ -2207,15 +2489,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 @@ -2223,35 +2512,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(); @@ -2265,14 +2568,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(); @@ -2283,18 +2591,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; } @@ -2309,11 +2629,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) { @@ -2332,67 +2656,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 @@ -2400,35 +2759,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(); @@ -2442,14 +2815,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(); @@ -2460,18 +2838,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; } @@ -2486,11 +2876,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) { @@ -2509,61 +2903,87 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2573,12 +2993,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(); } @@ -2587,16 +3007,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; @@ -2611,6 +3031,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..42a1e4fa --- /dev/null +++ b/proto-google-cloud-datastream-v1/src/main/java/com/google/cloud/datastream/v1/SourceObjectIdentifierOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the 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(); + + 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 a81a5827..d903b6a5 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getObject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -202,117 +229,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() @@ -320,16 +357,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(); @@ -339,9 +375,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 @@ -360,7 +396,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; @@ -370,38 +407,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; @@ -409,7 +447,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(); @@ -433,7 +472,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) { @@ -445,18 +485,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; @@ -465,20 +509,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 { @@ -486,61 +533,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); } @@ -550,12 +610,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(); } @@ -564,16 +624,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; @@ -588,6 +648,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 d16e2a08..7da72e64 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,59 +68,67 @@ 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) { throw e.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 @@ -112,18 +136,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.
    * 
@@ -136,6 +167,7 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,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 (object_ != null) { output.writeMessage(1, getObject()); } @@ -162,8 +193,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; @@ -173,17 +203,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; @@ -206,117 +236,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() @@ -324,16 +364,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(); @@ -347,9 +386,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 @@ -368,7 +407,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 { @@ -382,38 +422,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; @@ -421,7 +462,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()); } @@ -444,7 +486,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) { @@ -456,34 +499,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.
      * 
@@ -504,14 +560,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(); @@ -522,6 +579,8 @@ public Builder setObject( return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -532,7 +591,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; } @@ -544,6 +605,8 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -562,6 +625,8 @@ public Builder clearObject() { return this; } /** + * + * *
      * The stream object resource a backfill job was started for.
      * 
@@ -569,11 +634,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.
      * 
@@ -584,11 +651,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.
      * 
@@ -596,21 +666,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); } @@ -620,12 +693,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(); } @@ -634,16 +707,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; @@ -658,6 +731,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 9adaf3ca..700cb533 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,39 +68,42 @@ 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) { throw e.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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -115,12 +133,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; @@ -139,117 +158,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() @@ -257,16 +286,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(); @@ -274,9 +302,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 @@ -295,7 +323,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; } @@ -304,38 +333,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; @@ -343,7 +373,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; @@ -363,7 +394,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) { @@ -372,9 +404,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); } @@ -384,12 +416,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(); } @@ -398,16 +430,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; @@ -422,6 +454,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 8e82e2aa..9146d0a7 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,52 +71,60 @@ 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) {
       throw e.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 @@ -108,29 +133,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 { @@ -139,6 +166,7 @@ public java.lang.String getObject() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +178,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(object_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, object_); } @@ -175,15 +202,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; } @@ -203,96 +230,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.
@@ -300,21 +335,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()
@@ -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_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
@@ -362,7 +398,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;
@@ -372,38 +409,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;
@@ -411,7 +449,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();
@@ -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.StopBackfillJobRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datastream.v1.StopBackfillJobRequest) 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 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; @@ -467,20 +511,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 { @@ -488,61 +535,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); } @@ -552,12 +612,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(); } @@ -566,16 +626,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; @@ -590,6 +650,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 83a7aae6..15a1d508 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,59 +68,67 @@ 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) { throw e.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 @@ -112,18 +136,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.
    * 
@@ -136,6 +167,7 @@ public com.google.cloud.datastream.v1.StreamObjectOrBuilder getObjectOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -147,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 (object_ != null) { output.writeMessage(1, getObject()); } @@ -162,8 +193,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; @@ -173,17 +203,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; @@ -206,117 +236,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() @@ -324,16 +364,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(); @@ -347,9 +386,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 @@ -368,7 +407,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 { @@ -382,38 +422,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; @@ -421,7 +462,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()); } @@ -444,7 +486,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) { @@ -456,34 +499,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.
      * 
@@ -504,14 +560,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(); @@ -522,6 +579,8 @@ public Builder setObject( return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -532,7 +591,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; } @@ -544,6 +605,8 @@ public Builder mergeObject(com.google.cloud.datastream.v1.StreamObject value) { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -562,6 +625,8 @@ public Builder clearObject() { return this; } /** + * + * *
      * The stream object resource the backfill job was stopped for.
      * 
@@ -569,11 +634,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.
      * 
@@ -584,11 +651,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.
      * 
@@ -596,21 +666,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); } @@ -620,12 +693,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(); } @@ -634,16 +707,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; @@ -658,6 +731,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 8c468f5f..1c405af4 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,146 +75,173 @@ 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) { throw e.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_); @@ -206,41 +250,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.
      * 
@@ -249,6 +298,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -257,6 +308,8 @@ public enum State */ NOT_STARTED(1), /** + * + * *
      * The stream is running.
      * 
@@ -265,6 +318,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The stream is paused.
      * 
@@ -273,6 +328,8 @@ public enum State */ PAUSED(3), /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -282,6 +339,8 @@ public enum State
      */
     MAINTENANCE(4),
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -291,6 +350,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -299,6 +360,8 @@ public enum State */ FAILED_PERMANENTLY(6), /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -307,6 +370,8 @@ public enum State */ STARTING(7), /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -319,6 +384,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified stream state.
      * 
@@ -327,6 +394,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The stream has been created but has not yet started streaming data.
      * 
@@ -335,6 +404,8 @@ public enum State */ public static final int NOT_STARTED_VALUE = 1; /** + * + * *
      * The stream is running.
      * 
@@ -343,6 +414,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The stream is paused.
      * 
@@ -351,6 +424,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.
@@ -360,6 +435,8 @@ public enum State
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -369,6 +446,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -377,6 +456,8 @@ public enum State */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -385,6 +466,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.
@@ -394,7 +477,6 @@ public enum State
      */
     public static final int DRAINING_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -419,55 +501,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;
@@ -484,29 +572,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.
      * 
@@ -516,24 +613,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.
      * 
@@ -542,9 +647,12 @@ public interface BackfillAllStrategyOrBuilder extends */ com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObjectsOrBuilder(); - 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.
@@ -552,30 +660,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)
@@ -594,75 +701,88 @@ 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();
+            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;
               }
-              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;
-            }
-            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();
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              excludedObjectsCase_ = 2;
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.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),
       EXCLUDEDOBJECTS_NOT_SET(0);
       private final int value;
+
       private ExcludedObjectsCase(int value) {
         this.value = value;
       }
@@ -678,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.v1.OracleRdbms oracle_excluded_objects = 1; + * * @return Whether the oracleExcludedObjects field is set. */ @java.lang.Override @@ -709,21 +835,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.
      * 
@@ -733,18 +864,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 @@ -752,21 +886,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.
      * 
@@ -776,12 +915,13 @@ 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(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -793,8 +933,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -811,12 +950,14 @@ 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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -826,22 +967,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.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 0: default: @@ -875,87 +1015,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 @@ -965,6 +1112,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -972,21 +1121,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()
@@ -994,16 +1146,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();
@@ -1013,9 +1164,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
@@ -1034,7 +1185,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_;
@@ -1058,38 +1210,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;
@@ -1097,19 +1252,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.datastream.v1.Stream.BackfillAllStrategy other) {
-        if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance()) return this;
+        if (other == com.google.cloud.datastream.v1.Stream.BackfillAllStrategy.getDefaultInstance())
+          return this;
         switch (other.getExcludedObjectsCase()) {
-          case ORACLE_EXCLUDED_OBJECTS: {
-            mergeOracleExcludedObjects(other.getOracleExcludedObjects());
-            break;
-          }
-          case MYSQL_EXCLUDED_OBJECTS: {
-            mergeMysqlExcludedObjects(other.getMysqlExcludedObjects());
-            break;
-          }
-          case 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();
@@ -1130,7 +1289,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) {
@@ -1139,12 +1299,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() {
@@ -1154,15 +1314,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 @@ -1170,11 +1335,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 @@ -1192,6 +1360,8 @@ public com.google.cloud.datastream.v1.OracleRdbms getOracleExcludedObjects() { } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1212,6 +1382,8 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1.OracleRdb return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1230,6 +1402,8 @@ public Builder setOracleExcludedObjects( return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1238,10 +1412,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; } @@ -1256,6 +1434,8 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1.OracleR return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1279,6 +1459,8 @@ public Builder clearOracleExcludedObjects() { return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1289,6 +1471,8 @@ public com.google.cloud.datastream.v1.OracleRdbms.Builder getOracleExcludedObjec return getOracleExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1296,7 +1480,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 { @@ -1307,6 +1492,8 @@ public com.google.cloud.datastream.v1.OracleRdbmsOrBuilder getOracleExcludedObje } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1314,32 +1501,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 @@ -1347,11 +1546,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 @@ -1369,6 +1571,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms getMysqlExcludedObjects() { } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1389,6 +1593,8 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdbms return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1407,6 +1613,8 @@ public Builder setMysqlExcludedObjects( return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1415,10 +1623,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; } @@ -1433,6 +1645,8 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1.MysqlRdb return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1456,6 +1670,8 @@ public Builder clearMysqlExcludedObjects() { return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1466,6 +1682,8 @@ public com.google.cloud.datastream.v1.MysqlRdbms.Builder getMysqlExcludedObjects return getMysqlExcludedObjectsFieldBuilder().getBuilder(); } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1484,6 +1702,8 @@ public com.google.cloud.datastream.v1.MysqlRdbmsOrBuilder getMysqlExcludedObject } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1491,23 +1711,30 @@ 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_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1520,12 +1747,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(); } @@ -1534,16 +1761,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; @@ -1558,44 +1785,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) @@ -1614,39 +1841,42 @@ 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) { throw e.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; @@ -1658,8 +1888,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -1677,12 +1906,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; @@ -1701,87 +1931,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 @@ -1791,27 +2028,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() @@ -1819,16 +2061,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(); @@ -1836,13 +2077,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(); } @@ -1857,7 +2099,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; } @@ -1866,38 +2109,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; @@ -1905,7 +2151,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; @@ -1925,7 +2173,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) { @@ -1934,6 +2183,7 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1946,12 +2196,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(); } @@ -1960,16 +2211,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; @@ -1984,19 +2235,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; } @@ -2012,31 +2265,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 @@ -2045,29 +2304,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 { @@ -2078,11 +2337,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 @@ -2090,11 +2353,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 @@ -2102,11 +2369,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() { @@ -2116,11 +2386,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 @@ -2128,11 +2402,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 @@ -2140,11 +2418,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() { @@ -2152,24 +2433,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_; } @@ -2178,28 +2458,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -2207,11 +2489,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -2219,16 +2502,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -2236,12 +2519,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2251,11 +2533,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 @@ -2264,29 +2549,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 { @@ -2297,11 +2582,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 @@ -2309,23 +2599,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() { @@ -2335,11 +2636,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 @@ -2347,23 +2653,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() { @@ -2373,38 +2690,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 @@ -2412,22 +2741,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.
@@ -2436,20 +2770,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 @@ -2457,21 +2795,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.
    * 
@@ -2479,9 +2822,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(); } @@ -2489,66 +2833,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.
@@ -2556,7 +2921,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 @@ -2564,6 +2932,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.
@@ -2571,7 +2941,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 @@ -2580,14 +2953,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.
@@ -2595,17 +2969,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 { @@ -2614,6 +2989,7 @@ public java.lang.String getCustomerManagedEncryptionKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2625,8 +3001,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -2636,12 +3011,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_); } @@ -2661,10 +3032,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); } @@ -2679,52 +3052,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; @@ -2734,56 +3105,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: @@ -2850,140 +3211,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() @@ -2991,17 +3358,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(); @@ -3050,9 +3417,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 @@ -3071,7 +3438,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_; @@ -3136,38 +3504,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; @@ -3186,8 +3555,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(); @@ -3219,9 +3587,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_); } @@ -3233,17 +3602,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(); @@ -3273,12 +3645,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() { @@ -3292,18 +3664,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; @@ -3312,20 +3686,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 { @@ -3333,54 +3708,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; @@ -3388,39 +3770,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) { @@ -3436,14 +3837,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(); @@ -3454,17 +3858,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; } @@ -3476,11 +3884,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) { @@ -3494,48 +3906,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_; @@ -3543,39 +3971,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) { @@ -3591,14 +4038,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(); @@ -3609,17 +4059,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; } @@ -3631,11 +4085,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) { @@ -3649,69 +4107,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(); @@ -3723,28 +4196,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -3752,11 +4227,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -3764,16 +4240,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -3781,12 +4258,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3794,78 +4270,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -3874,20 +4351,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 { @@ -3895,54 +4373,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; @@ -3950,39 +4435,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) { @@ -3998,11 +4502,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) { @@ -4016,17 +4524,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; } @@ -4038,11 +4552,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) { @@ -4056,48 +4574,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_; @@ -4105,39 +4639,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) { @@ -4153,11 +4706,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) { @@ -4171,17 +4728,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; } @@ -4193,11 +4756,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) { @@ -4211,48 +4778,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_; @@ -4260,51 +4844,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. */ @@ -4312,35 +4910,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 @@ -4348,12 +4955,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 @@ -4371,6 +4981,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll( } } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4392,6 +5004,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.
@@ -4411,6 +5025,8 @@ public Builder setBackfillAll(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4418,12 +5034,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;
         }
@@ -4438,6 +5059,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.
@@ -4462,6 +5085,8 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4469,10 +5094,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.
@@ -4481,7 +5109,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 {
@@ -4492,6 +5121,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBac
       }
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4500,32 +5131,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 @@ -4533,11 +5177,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 @@ -4555,13 +5202,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(); @@ -4575,6 +5225,8 @@ public Builder setBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillNon return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4593,18 +5245,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; } @@ -4619,6 +5280,8 @@ public Builder mergeBackfillNone(com.google.cloud.datastream.v1.Stream.BackfillN return this; } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4642,16 +5305,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.
      * 
@@ -4659,7 +5327,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 { @@ -4670,6 +5339,8 @@ public com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBa } } /** + * + * *
      * Do not automatically backfill any objects.
      * 
@@ -4677,42 +5348,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) { @@ -4722,11 +5408,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) { @@ -4736,11 +5426,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) { @@ -4750,14 +5444,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(); @@ -4771,11 +5468,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) { @@ -4789,11 +5490,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) { @@ -4809,14 +5514,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(); @@ -4830,14 +5538,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()); @@ -4848,11 +5559,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) { @@ -4866,18 +5581,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); @@ -4885,11 +5603,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) { @@ -4902,11 +5624,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) { @@ -4919,39 +5645,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 { @@ -4959,49 +5696,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_; @@ -5009,6 +5759,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.
@@ -5016,13 +5768,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.
@@ -5030,14 +5787,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; @@ -5046,6 +5805,8 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5053,16 +5814,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 { @@ -5070,6 +5832,8 @@ public java.lang.String getCustomerManagedEncryptionKey() { } } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5077,21 +5841,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.
@@ -5099,7 +5867,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() { @@ -5109,6 +5880,8 @@ public Builder clearCustomerManagedEncryptionKey() { return this; } /** + * + * *
      * Immutable. A reference to a KMS encryption key.
      * If provided, it will be used to encrypt the data.
@@ -5116,24 +5889,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); } @@ -5143,12 +5918,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(); } @@ -5157,16 +5932,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; @@ -5181,6 +5956,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 e1cdd674..65febeff 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,93 +73,107 @@ 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) { throw e.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_); @@ -151,27 +182,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 @@ -180,29 +217,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 { @@ -213,11 +250,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 @@ -225,11 +266,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 @@ -237,11 +282,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() { @@ -251,11 +299,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 @@ -263,11 +315,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 @@ -275,11 +331,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() { @@ -289,11 +348,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 @@ -302,29 +364,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 { @@ -335,71 +397,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 @@ -407,18 +491,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.
    * 
@@ -433,11 +524,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 @@ -445,18 +539,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.
    * 
@@ -469,6 +570,7 @@ public com.google.cloud.datastream.v1.SourceObjectIdentifierOrBuilder getSourceO } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -480,8 +582,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -516,27 +617,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; @@ -546,38 +642,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; @@ -619,118 +709,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() @@ -738,17 +837,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(); @@ -790,9 +889,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 @@ -811,7 +910,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) { @@ -852,38 +952,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; @@ -924,9 +1025,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_); } @@ -966,22 +1068,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; @@ -990,20 +1095,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 { @@ -1011,54 +1117,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; @@ -1066,39 +1179,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) { @@ -1114,14 +1246,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(); @@ -1132,17 +1267,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; } @@ -1154,11 +1293,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) { @@ -1172,48 +1315,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_; @@ -1221,39 +1380,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) { @@ -1269,14 +1447,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(); @@ -1287,17 +1468,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; } @@ -1309,11 +1494,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) { @@ -1327,48 +1516,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_; @@ -1376,18 +1581,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; @@ -1396,20 +1603,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 { @@ -1417,77 +1625,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) { @@ -1497,11 +1720,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) { @@ -1511,11 +1738,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) { @@ -1525,14 +1756,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(); @@ -1546,11 +1780,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) { @@ -1564,11 +1802,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) { @@ -1584,14 +1826,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(); @@ -1605,14 +1850,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()); @@ -1623,11 +1871,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) { @@ -1641,18 +1893,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); @@ -1660,11 +1915,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) { @@ -1677,11 +1936,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) { @@ -1694,39 +1957,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 { @@ -1734,49 +2008,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_; @@ -1784,34 +2071,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.
      * 
@@ -1832,6 +2132,8 @@ public Builder setBackfillJob(com.google.cloud.datastream.v1.BackfillJob value) return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1850,6 +2152,8 @@ public Builder setBackfillJob( return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1860,7 +2164,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; } @@ -1872,6 +2178,8 @@ public Builder mergeBackfillJob(com.google.cloud.datastream.v1.BackfillJob value return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1890,6 +2198,8 @@ public Builder clearBackfillJob() { return this; } /** + * + * *
      * The latest backfill job that was initiated for the stream object.
      * 
@@ -1897,11 +2207,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.
      * 
@@ -1912,11 +2224,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.
      * 
@@ -1924,14 +2239,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_; @@ -1939,34 +2257,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.
      * 
@@ -1987,6 +2318,8 @@ public Builder setSourceObject(com.google.cloud.datastream.v1.SourceObjectIdenti return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2005,6 +2338,8 @@ public Builder setSourceObject( return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2015,7 +2350,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; } @@ -2027,6 +2364,8 @@ public Builder mergeSourceObject(com.google.cloud.datastream.v1.SourceObjectIden return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2045,6 +2384,8 @@ public Builder clearSourceObject() { return this; } /** + * + * *
      * The object identifier in the data source.
      * 
@@ -2052,26 +2393,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.
      * 
@@ -2079,21 +2426,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); } @@ -2103,12 +2453,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(); } @@ -2117,16 +2467,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; @@ -2141,6 +2491,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 67% 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 0ab6f150..e83e9a84 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,165 +135,210 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ boolean hasSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ com.google.cloud.datastream.v1.SourceConfig getSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.SourceConfigOrBuilder getSourceConfigOrBuilder(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ boolean hasDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ com.google.cloud.datastream.v1.DestinationConfig getDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1.DestinationConfigOrBuilder getDestinationConfigOrBuilder(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1.Stream.State state = 8; + * * @return The state. */ com.google.cloud.datastream.v1.Stream.State getState(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ boolean hasBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ com.google.cloud.datastream.v1.Stream.BackfillAllStrategy getBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -259,24 +349,32 @@ java.lang.String getLabelsOrThrow(
   com.google.cloud.datastream.v1.Stream.BackfillAllStrategyOrBuilder getBackfillAllOrBuilder();
 
   /**
+   *
+   *
    * 
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return Whether the backfillNone field is set. */ boolean hasBackfillNone(); /** + * + * *
    * Do not automatically backfill any objects.
    * 
* * .google.cloud.datastream.v1.Stream.BackfillNoneStrategy backfill_none = 102; + * * @return The backfillNone. */ com.google.cloud.datastream.v1.Stream.BackfillNoneStrategy getBackfillNone(); /** + * + * *
    * Do not automatically backfill any objects.
    * 
@@ -286,50 +384,69 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1.Stream.BackfillNoneStrategyOrBuilder getBackfillNoneOrBuilder(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsList(); + java.util.List getErrorsList(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.datastream.v1.Error getErrors(int index); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ int getErrorsCount(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - java.util.List - getErrorsOrBuilderList(); + java.util.List getErrorsOrBuilderList(); /** + * + * *
    * Output only. Errors on the Stream.
    * 
* - * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * repeated .google.cloud.datastream.v1.Error errors = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder( - int index); + com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(int index); /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -337,11 +454,16 @@ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the customerManagedEncryptionKey field is set. */ boolean hasCustomerManagedEncryptionKey(); /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -349,11 +471,16 @@ com.google.cloud.datastream.v1.ErrorOrBuilder getErrorsOrBuilder(
    * encryption key provisioned through KMS.
    * 
* - * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * optional string customer_managed_encryption_key = 10 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The customerManagedEncryptionKey. */ java.lang.String getCustomerManagedEncryptionKey(); /** + * + * *
    * Immutable. A reference to a KMS encryption key.
    * If provided, it will be used to encrypt the data.
@@ -361,11 +488,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 0cca5b89..30264548 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,83 +71,93 @@ 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) { throw e.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.
@@ -138,7 +166,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 @@ -146,6 +176,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.
@@ -154,7 +186,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 @@ -162,6 +196,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.
@@ -170,7 +206,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() { @@ -180,11 +217,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 @@ -192,23 +234,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() { @@ -218,6 +271,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
@@ -233,6 +288,7 @@ public com.google.cloud.datastream.v1.ConnectionProfileOrBuilder getConnectionPr
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -241,14 +297,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
@@ -264,16 +321,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 { @@ -284,12 +340,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 @@ -300,11 +359,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 @@ -313,6 +375,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,8 +387,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -351,23 +413,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; @@ -377,29 +435,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; } @@ -422,128 +476,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() @@ -551,16 +613,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(); @@ -586,13 +647,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(); } @@ -607,7 +669,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 { @@ -629,38 +692,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; @@ -668,7 +732,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()); } @@ -704,7 +770,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) { @@ -716,8 +784,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.
@@ -726,13 +799,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.
@@ -741,17 +818,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.
@@ -760,7 +843,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) { @@ -776,6 +860,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.
@@ -784,10 +870,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(); @@ -798,6 +884,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.
@@ -806,13 +894,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; } @@ -824,6 +913,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.
@@ -832,7 +923,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) { @@ -846,6 +938,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.
@@ -854,14 +948,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.
@@ -870,17 +967,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.
@@ -889,17 +990,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_; @@ -907,39 +1012,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) { @@ -955,11 +1079,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) { @@ -973,17 +1101,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; } @@ -995,11 +1129,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) { @@ -1013,48 +1151,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_; @@ -1062,6 +1217,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
@@ -1077,13 +1234,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; @@ -1092,6 +1249,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
@@ -1107,15 +1266,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 { @@ -1123,6 +1281,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
@@ -1138,20 +1298,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
@@ -1167,15 +1329,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
@@ -1191,29 +1356,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 @@ -1221,44 +1389,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 @@ -1266,37 +1443,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); } @@ -1306,12 +1489,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(); } @@ -1320,16 +1504,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; @@ -1344,6 +1528,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 ff571c60..5c8eb8b2 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,83 +70,93 @@ 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) { throw e.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.
@@ -138,7 +165,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 @@ -146,6 +175,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.
@@ -154,7 +185,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 @@ -162,6 +195,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.
@@ -170,7 +205,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() { @@ -180,11 +216,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 @@ -192,11 +232,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 @@ -204,11 +248,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() { @@ -218,6 +265,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
@@ -233,6 +282,7 @@ public com.google.cloud.datastream.v1.StreamOrBuilder getStreamOrBuilder() {
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -241,14 +291,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
@@ -264,16 +315,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 { @@ -284,12 +334,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 @@ -300,11 +353,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 @@ -313,6 +369,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -351,23 +407,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; @@ -377,29 +429,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; } @@ -422,128 +470,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() @@ -551,16 +606,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(); @@ -586,9 +640,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 @@ -607,7 +661,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 { @@ -629,38 +684,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; @@ -668,7 +724,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()); } @@ -704,7 +761,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) { @@ -716,8 +774,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.
@@ -726,13 +789,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.
@@ -741,17 +808,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.
@@ -760,7 +833,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) { @@ -776,6 +850,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.
@@ -784,10 +860,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(); @@ -798,6 +874,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.
@@ -806,13 +884,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; } @@ -824,6 +903,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.
@@ -832,7 +913,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) { @@ -846,6 +928,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.
@@ -854,14 +938,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.
@@ -870,17 +957,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.
@@ -889,17 +980,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_; @@ -907,39 +1002,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) { @@ -955,14 +1069,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(); @@ -973,17 +1090,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; } @@ -995,11 +1118,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) { @@ -1013,48 +1140,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_; @@ -1062,6 +1205,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
@@ -1077,13 +1222,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; @@ -1092,6 +1237,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
@@ -1107,15 +1254,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 { @@ -1123,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
@@ -1138,20 +1286,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
@@ -1167,15 +1317,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
@@ -1191,29 +1344,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 @@ -1221,44 +1377,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 @@ -1266,37 +1431,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); } @@ -1306,12 +1477,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(); } @@ -1320,16 +1491,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; @@ -1344,6 +1515,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 ada67f1f..6b46d292 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,47 +74,53 @@ 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) { throw e.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_); @@ -106,29 +129,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.
      * 
@@ -137,6 +166,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * Validation did not execute.
      * 
@@ -145,6 +176,8 @@ public enum State */ NOT_EXECUTED(1), /** + * + * *
      * Validation failed.
      * 
@@ -153,6 +186,8 @@ public enum State */ FAILED(2), /** + * + * *
      * Validation passed.
      * 
@@ -164,6 +199,8 @@ public enum State ; /** + * + * *
      * Unspecified state.
      * 
@@ -172,6 +209,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Validation did not execute.
      * 
@@ -180,6 +219,8 @@ public enum State */ public static final int NOT_EXECUTED_VALUE = 1; /** + * + * *
      * Validation failed.
      * 
@@ -188,6 +229,8 @@ public enum State */ public static final int FAILED_VALUE = 2; /** + * + * *
      * Validation passed.
      * 
@@ -196,7 +239,6 @@ public enum State */ public static final int PASSED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -221,50 +263,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; @@ -284,11 +327,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 @@ -297,29 +343,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 { @@ -330,33 +376,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.
    * 
@@ -368,6 +425,8 @@ public java.util.List getMessa return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -375,11 +434,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.
    * 
@@ -391,6 +452,8 @@ public int getMessageCount() { return message_.size(); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -402,6 +465,8 @@ public com.google.cloud.datastream.v1.ValidationMessage getMessage(int index) { return message_.get(index); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -409,19 +474,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 @@ -430,29 +497,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 { @@ -461,6 +528,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,8 +540,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -499,12 +566,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_); @@ -517,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.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; } @@ -557,118 +620,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() @@ -676,17 +748,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(); @@ -706,9 +778,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 @@ -727,7 +799,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_; @@ -749,38 +822,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; @@ -814,9 +888,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_); } @@ -854,22 +929,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; @@ -878,20 +956,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 { @@ -899,54 +978,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; @@ -954,51 +1040,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. */ @@ -1006,39 +1106,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.
      * 
@@ -1053,6 +1163,8 @@ public java.util.List getMessa } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1067,6 +1179,8 @@ public int getMessageCount() { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1081,14 +1195,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(); @@ -1102,6 +1217,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1120,6 +1237,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1140,14 +1259,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(); @@ -1161,6 +1281,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1179,6 +1301,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1197,6 +1321,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1207,8 +1333,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); @@ -1216,6 +1341,8 @@ public Builder addAllMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1233,6 +1360,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1250,17 +1379,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.
      * 
@@ -1270,19 +1402,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 { @@ -1290,6 +1425,8 @@ public com.google.cloud.datastream.v1.ValidationMessageOrBuilder getMessageOrBui } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1297,42 +1434,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_; @@ -1340,18 +1483,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; @@ -1360,20 +1505,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 { @@ -1381,61 +1527,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); } @@ -1445,12 +1598,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(); } @@ -1459,16 +1612,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; @@ -1483,6 +1636,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 d038ea5c..351fa88a 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,91 +73,100 @@ 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) { throw e.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.
      * 
@@ -149,6 +175,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -157,6 +185,8 @@ public enum Level */ WARNING(1), /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -168,6 +198,8 @@ public enum Level ; /** + * + * *
      * Unspecified level.
      * 
@@ -176,6 +208,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -184,6 +218,8 @@ public enum Level */ public static final int WARNING_VALUE = 1; /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -192,7 +228,6 @@ public enum Level */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -217,49 +252,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; @@ -279,11 +314,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 @@ -292,29 +330,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 { @@ -325,49 +363,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_; } @@ -376,28 +424,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 java.lang.NullPointerException(); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -405,11 +455,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.
    * 
@@ -417,16 +468,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -434,12 +486,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -449,11 +500,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 @@ -462,29 +516,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 { @@ -493,6 +547,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -504,20 +559,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_); } @@ -533,19 +584,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_); @@ -558,20 +609,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; } @@ -598,140 +647,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() @@ -739,16 +795,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(); @@ -763,9 +818,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 @@ -784,7 +839,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_; @@ -799,38 +855,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; @@ -838,7 +895,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(); @@ -846,8 +904,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(); @@ -880,22 +937,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; @@ -904,20 +964,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 { @@ -925,54 +986,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; @@ -980,51 +1048,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. */ @@ -1032,42 +1116,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(); @@ -1079,28 +1166,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 java.lang.NullPointerException(); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1108,11 +1197,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.
      * 
@@ -1120,16 +1210,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1137,12 +1228,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1150,78 +1240,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -1230,20 +1321,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 { @@ -1251,61 +1343,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); } @@ -1315,12 +1414,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(); } @@ -1329,16 +1428,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; @@ -1353,6 +1452,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datastream.v1.ValidationMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/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 63% 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 f9140a4f..65c1a423 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,68 +84,71 @@ 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.
    * 
* * map<string, string> metadata = 3; */ - - java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getMetadataOrDefault(java.lang.String key, 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 77d63dfb..72da41a1 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,29 +71,30 @@ 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) { throw e.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_); @@ -85,22 +103,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).
@@ -113,6 +136,8 @@ public java.util.List getValidationsL
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -121,11 +146,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).
@@ -138,6 +165,8 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -150,6 +179,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).
@@ -158,12 +189,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;
@@ -175,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 < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -190,8 +220,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;
@@ -201,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.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;
   }
@@ -230,118 +259,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() @@ -349,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) { getValidationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -373,9 +411,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1.DatastreamResourcesProto.internal_static_google_cloud_datastream_v1_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 @@ -394,7 +432,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)) { @@ -413,38 +452,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; @@ -452,7 +492,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()) { @@ -471,9 +512,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_); } @@ -507,21 +549,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).
@@ -537,6 +587,8 @@ public java.util.List getValidationsL
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -552,6 +604,8 @@ public int getValidationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -567,6 +621,8 @@ public com.google.cloud.datastream.v1.Validation getValidations(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -574,8 +630,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();
@@ -589,6 +644,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -608,6 +665,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -629,6 +688,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).
@@ -636,8 +697,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();
@@ -651,6 +711,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -670,6 +732,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -689,6 +753,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -700,8 +766,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);
@@ -709,6 +774,8 @@ public Builder addAllValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -727,6 +794,8 @@ public Builder clearValidations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -745,6 +814,8 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -752,11 +823,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).
@@ -764,14 +836,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).
@@ -779,8 +853,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 {
@@ -788,6 +862,8 @@ public com.google.cloud.datastream.v1.ValidationOrBuilder getValidationsOrBuilde
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -796,10 +872,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).
@@ -807,12 +885,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).
@@ -820,27 +899,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);
     }
 
@@ -850,12 +932,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();
   }
@@ -864,16 +946,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;
@@ -888,6 +970,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 17935eb2..9d57639e 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,59 +72,68 @@ 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) {
       throw e.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 @@ -116,30 +142,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 { @@ -150,11 +178,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 @@ -163,29 +194,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 +225,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -205,8 +237,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -236,17 +267,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; } @@ -267,97 +297,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.
@@ -365,21 +402,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()
@@ -387,16 +426,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 +446,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
@@ -429,7 +467,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();
@@ -440,38 +479,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;
@@ -479,7 +519,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();
@@ -519,19 +560,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; @@ -540,21 +585,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 { @@ -562,57 +610,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; @@ -620,18 +681,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; @@ -640,20 +703,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 { @@ -661,61 +725,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); } @@ -725,12 +796,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(); } @@ -739,16 +810,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; @@ -763,6 +834,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 aa7b6442..7b8f2733 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,39 +68,42 @@ 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) { throw e.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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -115,12 +133,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; @@ -139,117 +158,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() @@ -257,16 +285,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(); @@ -274,9 +301,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 @@ -295,7 +322,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; } @@ -304,38 +332,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; @@ -343,7 +372,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; @@ -363,7 +393,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) { @@ -372,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); } @@ -384,12 +415,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) } // @@protoc_insertion_point(class_scope:google.cloud.datastream.v1alpha1.AvroFileFormat) private static final com.google.cloud.datastream.v1alpha1.AvroFileFormat DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datastream.v1alpha1.AvroFileFormat(); } @@ -398,16 +429,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; @@ -422,6 +453,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..3c834769 --- /dev/null +++ b/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java @@ -0,0 +1,835 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the 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\032\034google/api/annotat" + + "ions.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\010username\030\003 " + + "\001(\tB\003\340A\002\022\025\n\010password\030\004 \001(\tB\003\340A\002\022\035\n\020datab" + + "ase_service\030\005 \001(\tB\003\340A\002\022h\n\025connection_att" + + "ributes\030\006 \003(\0132I.google.cloud.datastream." + + "v1alpha1.OracleProfile.ConnectionAttribu" + + "tesEntry\032;\n\031ConnectionAttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\252\001\n\014MysqlP" + + "rofile\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\010password\030\004" + + " \001(\tB\006\340A\002\340A\004\022D\n\nssl_config\030\005 \001(\01320.googl" + + "e.cloud.datastream.v1alpha1.MysqlSslConf" + + "ig\"9\n\nGcsProfile\022\030\n\013bucket_name\030\001 \001(\tB\003\340" + + "A\002\022\021\n\troot_path\030\002 \001(\t\"\030\n\026NoConnectivityS" + + "ettings\"\035\n\033StaticServiceIpConnectivity\"\250" + + "\001\n\034ForwardSshTunnelConnectivity\022\025\n\010hostn" + + "ame\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\013" + + "private_key\030e \001(\tB\003\340A\004H\000B\027\n\025authenticati" + + "on_method\">\n\020VpcPeeringConfig\022\025\n\010vpc_nam" + + "e\030\001 \001(\tB\003\340A\002\022\023\n\006subnet\030\002 \001(\tB\003\340A\002\"\324\005\n\021Pr" + + "ivateConnection\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cr" + + "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?" + + ".google.cloud.datastream.v1alpha1.Privat" + + "eConnection.LabelsEntry\022\031\n\014display_name\030" + + "\005 \001(\tB\003\340A\002\022M\n\005state\030\006 \001(\01629.google.cloud" + + ".datastream.v1alpha1.PrivateConnection.S" + + "tateB\003\340A\003\022;\n\005error\030\007 \001(\0132\'.google.cloud." + + "datastream.v1alpha1.ErrorB\003\340A\003\022N\n\022vpc_pe" + + "ering_config\030d \001(\01322.google.cloud.datast" + + "ream.v1alpha1.VpcPeeringConfig\032-\n\013Labels" + + "Entry\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\010CREATIN" + + "G\020\001\022\013\n\007CREATED\020\002\022\n\n\006FAILED\020\003:\201\001\352A~\n+data" + + "stream.googleapis.com/PrivateConnection\022" + + "Oprojects/{project}/locations/{location}" + + "/privateConnections/{private_connection}" + + "\";\n\023PrivateConnectivity\022$\n\027private_conne" + + "ction_name\030\001 \001(\tB\003\340A\002\"\331\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.TimestampB\003\340A\003\0224\n\013update_time\030" + + "\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022C" + + "\n\006labels\030\004 \003(\01323.google.cloud.datastream" + + ".v1alpha1.Route.LabelsEntry\022\031\n\014display_n" + + "ame\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\013La" + + "belsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001:\205\001\352A\201\001\n\037datastream.googleapis.com/Rout" + + "e\022^projects/{project}/locations/{locatio" + + "n}/privateConnections/{private_connectio" + + "n}/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\n" + + "client_key\030\013 \001(\tB\003\340A\004\022\033\n\016client_key_set\030" + + "\014 \001(\010B\003\340A\003\022\037\n\022client_certificate\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_cert" + + "ificate_set\030\020 \001(\010B\003\340A\003\"\242\010\n\021ConnectionPro" + + "file\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" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.clo" + + "ud.datastream.v1alpha1.ConnectionProfile" + + ".LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022" + + "I\n\016oracle_profile\030d \001(\0132/.google.cloud.d" + + "atastream.v1alpha1.OracleProfileH\000\022C\n\013gc" + + "s_profile\030e \001(\0132,.google.cloud.datastrea" + + "m.v1alpha1.GcsProfileH\000\022G\n\rmysql_profile" + + "\030f \001(\0132..google.cloud.datastream.v1alpha" + + "1.MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001" + + "(\01328.google.cloud.datastream.v1alpha1.No" + + "ConnectivitySettingsH\001\022h\n\036static_service" + + "_ip_connectivity\030\311\001 \001(\0132=.google.cloud.d" + + "atastream.v1alpha1.StaticServiceIpConnec" + + "tivityH\001\022c\n\030forward_ssh_connectivity\030\312\001 " + + "\001(\0132>.google.cloud.datastream.v1alpha1.F" + + "orwardSshTunnelConnectivityH\001\022V\n\024private" + + "_connectivity\030\313\001 \001(\01325.google.cloud.data" + + "stream.v1alpha1.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/Co" + + "nnectionProfile\022Oprojects/{project}/loca" + + "tions/{location}/connectionProfiles/{con" + + "nection_profile}B\t\n\007profileB\016\n\014connectiv" + + "ity\"\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\t" + + "precision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encodi" + + "ng\030\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullabl" + + "e\030\010 \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Ora" + + "cleTable\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_c" + + "olumns\030\002 \003(\0132..google.cloud.datastream.v" + + "1alpha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013" + + "schema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\013" + + "2-.google.cloud.datastream.v1alpha1.Orac" + + "leTable\"U\n\013OracleRdbms\022F\n\016oracle_schemas" + + "\030\001 \003(\0132..google.cloud.datastream.v1alpha" + + "1.OracleSchema\"\231\001\n\022OracleSourceConfig\022@\n" + + "\tallowlist\030\001 \001(\0132-.google.cloud.datastre" + + "am.v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 " + + "\001(\0132-.google.cloud.datastream.v1alpha1.O" + + "racleRdbms\"\231\001\n\013MysqlColumn\022\023\n\013column_nam" + + "e\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_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-.google.cloud.d" + + "atastream.v1alpha1.MysqlColumn\"j\n\rMysqlD" + + "atabase\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_" + + "tables\030\002 \003(\0132,.google.cloud.datastream.v" + + "1alpha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysq" + + "l_databases\030\001 \003(\0132/.google.cloud.datastr" + + "eam.v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSour" + + "ceConfig\022?\n\tallowlist\030\001 \001(\0132,.google.clo" + + "ud.datastream.v1alpha1.MysqlRdbms\022@\n\nrej" + + "ectlist\030\002 \001(\0132,.google.cloud.datastream." + + "v1alpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036" + + "source_connection_profile_name\030\001 \001(\tB\003\340A" + + "\002\022T\n\024oracle_source_config\030d \001(\01324.google" + + ".cloud.datastream.v1alpha1.OracleSourceC" + + "onfigH\000\022R\n\023mysql_source_config\030e \001(\01323.g" + + "oogle.cloud.datastream.v1alpha1.MysqlSou" + + "rceConfigH\000B\026\n\024source_stream_config\"\020\n\016A" + + "vroFileFormat\"\212\002\n\016JsonFileFormat\022N\n\022sche" + + "ma_file_format\030\001 \001(\01622.google.cloud.data" + + "stream.v1alpha1.SchemaFileFormat\022U\n\013comp" + + "ression\030\002 \001(\0162@.google.cloud.datastream." + + "v1alpha1.JsonFileFormat.JsonCompression\"" + + "Q\n\017JsonCompression\022 \n\034JSON_COMPRESSION_U" + + "NSPECIFIED\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/.google.clou" + + "d.datastream.v1alpha1.GcsFileFormatB\002\030\001\022" + + "\030\n\020file_rotation_mb\030\003 \001(\005\0229\n\026file_rotati" + + "on_interval\030\004 \001(\0132\031.google.protobuf.Dura" + + "tion\022L\n\020avro_file_format\030d \001(\01320.google." + + "cloud.datastream.v1alpha1.AvroFileFormat" + + "H\000\022L\n\020json_file_format\030e \001(\01320.google.cl" + + "oud.datastream.v1alpha1.JsonFileFormatH\000" + + "B\r\n\013file_format\"\274\001\n\021DestinationConfig\0220\n" + + "#destination_connection_profile_name\030\001 \001" + + "(\tB\003\340A\002\022X\n\026gcs_destination_config\030d \001(\0132" + + "6.google.cloud.datastream.v1alpha1.GcsDe" + + "stinationConfigH\000B\033\n\031destination_stream_" + + "config\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013" + + "create_time\030\002 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\013" + + "24.google.cloud.datastream.v1alpha1.Stre" + + "am.LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A" + + "\002\022J\n\rsource_config\030\006 \001(\0132..google.cloud." + + "datastream.v1alpha1.SourceConfigB\003\340A\002\022T\n" + + "\022destination_config\030\007 \001(\01323.google.cloud" + + ".datastream.v1alpha1.DestinationConfigB\003" + + "\340A\002\022=\n\005state\030\010 \001(\0162..google.cloud.datast" + + "ream.v1alpha1.Stream.State\022T\n\014backfill_a" + + "ll\030e \001(\0132<.google.cloud.datastream.v1alp" + + "ha1.Stream.BackfillAllStrategyH\000\022V\n\rback" + + "fill_none\030f \001(\0132=.google.cloud.datastrea" + + "m.v1alpha1.Stream.BackfillNoneStrategyH\000" + + "\022<\n\006errors\030\t \003(\0132\'.google.cloud.datastre" + + "am.v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllSt" + + "rategy\022P\n\027oracle_excluded_objects\030\001 \001(\0132" + + "-.google.cloud.datastream.v1alpha1.Oracl" + + "eRdbmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\013" + + "2,.google.cloud.datastream.v1alpha1.Mysq" + + "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\"\225\001\n\005State\022\025\n\021STATE_U" + + "NSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\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\010STARTING\020\007\022\014\n" + + "\010DRAINING\020\010:_\352A\\\n datastream.googleapis." + + "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\ne" + + "rror_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerro" + + "r_time\030\004 \001(\0132\032.google.protobuf.Timestamp" + + "\022E\n\007details\030\005 \003(\01324.google.cloud.datastr" + + "eam.v1alpha1.Error.DetailsEntry\032.\n\014Detai" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "U\n\020ValidationResult\022A\n\013validations\030\001 \003(\013" + + "2,.google.cloud.datastream.v1alpha1.Vali" + + "dation\"\206\002\n\nValidation\022\023\n\013description\030\001 \001" + + "(\t\022C\n\006status\030\002 \001(\01623.google.cloud.datast" + + "ream.v1alpha1.Validation.Status\022D\n\007messa" + + "ge\030\003 \003(\01323.google.cloud.datastream.v1alp" + + "ha1.ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006S" + + "tatus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXE" + + "CUTED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Vali" + + "dationMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030" + + "\002 \001(\01629.google.cloud.datastream.v1alpha1" + + ".ValidationMessage.Level\022S\n\010metadata\030\003 \003" + + "(\0132A.google.cloud.datastream.v1alpha1.Va" + + "lidationMessage.MetadataEntry\022\014\n\004code\030\004 " + + "\001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + + "ue\030\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFI" + + "ED\020\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileF" + + "ormat\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010" + + "\n\004AVRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHE" + + "MA_FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEM" + + "A_FILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.g" + + "oogle.cloud.datastream.v1alpha1B\035CloudDa" + + "tastreamResourcesProtoP\001ZJgoogle.golang." + + "org/genproto/googleapis/cloud/datastream" + + "/v1alpha1;datastream\252\002 Google.Cloud.Data" + + "stream.V1Alpha1\312\002 Google\\Cloud\\Datastrea" + + "m\\V1alpha1\352\002#Google::Cloud::Datastream::" + + "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(), + com.google.api.AnnotationsProto.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(); + com.google.api.AnnotationsProto.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,209 +64,260 @@ 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) { throw e.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; } @@ -269,28 +333,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), @@ -298,6 +368,7 @@ public enum ConnectivityCase PRIVATE_CONNECTIVITY(203), CONNECTIVITY_NOT_SET(0); private final int value; + private ConnectivityCase(int value) { this.value = value; } @@ -313,33 +384,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 @@ -348,29 +427,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 { @@ -381,11 +460,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 @@ -393,11 +476,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 @@ -405,11 +492,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() { @@ -419,11 +509,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 @@ -431,11 +525,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 @@ -443,11 +541,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() { @@ -455,24 +556,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_; } @@ -481,28 +581,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -510,11 +612,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -522,16 +625,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -539,12 +642,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -554,11 +656,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 @@ -567,29 +672,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 { @@ -599,11 +704,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 @@ -611,21 +719,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.
    * 
@@ -635,18 +748,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 @@ -654,21 +770,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.
    * 
@@ -678,18 +799,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 @@ -697,21 +821,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.
    * 
@@ -721,18 +850,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 @@ -740,21 +872,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.
    * 
@@ -762,20 +899,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 @@ -783,42 +926,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 @@ -826,42 +985,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 @@ -869,21 +1042,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.
    * 
@@ -891,14 +1069,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; @@ -910,8 +1090,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -921,12 +1100,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_); } @@ -940,16 +1115,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); } @@ -964,53 +1143,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; @@ -1020,42 +1206,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: @@ -1063,20 +1242,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: @@ -1150,135 +1326,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() @@ -1286,16 +1466,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(); @@ -1324,9 +1503,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 @@ -1345,7 +1524,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) { @@ -1420,38 +1600,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; @@ -1459,7 +1640,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(); @@ -1470,49 +1652,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(); @@ -1533,7 +1723,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) { @@ -1542,12 +1733,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() { @@ -1559,10 +1750,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() { @@ -1576,18 +1766,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; @@ -1596,20 +1788,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 { @@ -1617,54 +1810,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; @@ -1672,39 +1872,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) { @@ -1720,14 +1939,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(); @@ -1738,17 +1960,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; } @@ -1760,11 +1986,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) { @@ -1778,48 +2008,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_; @@ -1827,39 +2073,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) { @@ -1875,14 +2140,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(); @@ -1893,17 +2161,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; } @@ -1915,11 +2187,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) { @@ -1933,69 +2209,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(); @@ -2007,28 +2298,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -2036,11 +2329,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -2048,16 +2342,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -2065,12 +2360,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2078,78 +2372,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -2158,20 +2453,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 { @@ -2179,67 +2475,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 @@ -2247,11 +2556,14 @@ public boolean hasOracleProfile() { return profileCase_ == 100; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ @java.lang.Override @@ -2269,6 +2581,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile() { } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2289,6 +2603,8 @@ public Builder setOracleProfile(com.google.cloud.datastream.v1alpha1.OracleProfi return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2307,6 +2623,8 @@ public Builder setOracleProfile( return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2315,10 +2633,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; } @@ -2333,6 +2655,8 @@ public Builder mergeOracleProfile(com.google.cloud.datastream.v1alpha1.OraclePro return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2356,6 +2680,8 @@ public Builder clearOracleProfile() { return this; } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2366,6 +2692,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfile.Builder getOracleProfi return getOracleProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2384,6 +2712,8 @@ public com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProf } } /** + * + * *
      * Oracle ConnectionProfile configuration.
      * 
@@ -2391,32 +2721,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 @@ -2424,11 +2766,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 @@ -2446,6 +2791,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile() { } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2466,6 +2813,8 @@ public Builder setGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile val return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2484,6 +2833,8 @@ public Builder setGcsProfile( return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2492,10 +2843,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; } @@ -2510,6 +2864,8 @@ public Builder mergeGcsProfile(com.google.cloud.datastream.v1alpha1.GcsProfile v return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2533,6 +2889,8 @@ public Builder clearGcsProfile() { return this; } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2543,6 +2901,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfile.Builder getGcsProfileBuil return getGcsProfileFieldBuilder().getBuilder(); } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2561,6 +2921,8 @@ public com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrB } } /** + * + * *
      * Cloud Storage ConnectionProfile configuration.
      * 
@@ -2568,32 +2930,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 @@ -2601,11 +2975,14 @@ public boolean hasMysqlProfile() { return profileCase_ == 102; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ @java.lang.Override @@ -2623,6 +3000,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile() { } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2643,6 +3022,8 @@ public Builder setMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfile return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2661,6 +3042,8 @@ public Builder setMysqlProfile( return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2669,10 +3052,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; } @@ -2687,6 +3073,8 @@ public Builder mergeMysqlProfile(com.google.cloud.datastream.v1alpha1.MysqlProfi return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2710,6 +3098,8 @@ public Builder clearMysqlProfile() { return this; } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2720,6 +3110,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfile.Builder getMysqlProfile return getMysqlProfileFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2738,6 +3130,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfil } } /** + * + * *
      * MySQL ConnectionProfile configuration.
      * 
@@ -2745,32 +3139,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 @@ -2778,11 +3184,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 @@ -2800,13 +3209,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(); @@ -2820,6 +3232,8 @@ public Builder setNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnecti return this; } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2838,18 +3252,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; } @@ -2864,6 +3286,8 @@ public Builder mergeNoConnectivity(com.google.cloud.datastream.v1alpha1.NoConnec return this; } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2887,16 +3311,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.
      * 
@@ -2904,7 +3333,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 { @@ -2915,6 +3345,8 @@ public com.google.cloud.datastream.v1alpha1.NoConnectivitySettingsOrBuilder getN } } /** + * + * *
      * No connectivity option chosen.
      * 
@@ -2922,32 +3354,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 @@ -2955,35 +3402,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(); @@ -2997,11 +3457,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) { @@ -3015,18 +3479,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; } @@ -3041,11 +3516,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) { @@ -3064,67 +3543,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 @@ -3132,35 +3641,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(); @@ -3174,11 +3696,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) { @@ -3192,18 +3718,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; } @@ -3218,11 +3755,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) { @@ -3241,67 +3782,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 @@ -3309,11 +3880,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 @@ -3331,13 +3906,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(); @@ -3351,11 +3930,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) { @@ -3369,18 +3951,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; } @@ -3395,11 +3985,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) { @@ -3418,24 +4011,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 { @@ -3446,33 +4047,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); } @@ -3482,12 +4093,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(); } @@ -3496,16 +4107,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; @@ -3520,6 +4131,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 fc0843bf..b075aafd 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,90 +135,101 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return Whether the oracleProfile field is set. */ boolean hasOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.OracleProfile oracle_profile = 100; + * * @return The oracleProfile. */ com.google.cloud.datastream.v1alpha1.OracleProfile getOracleProfile(); /** + * + * *
    * Oracle ConnectionProfile configuration.
    * 
@@ -183,24 +239,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.OracleProfileOrBuilder getOracleProfileOrBuilder(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return Whether the gcsProfile field is set. */ boolean hasGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.GcsProfile gcs_profile = 101; + * * @return The gcsProfile. */ com.google.cloud.datastream.v1alpha1.GcsProfile getGcsProfile(); /** + * + * *
    * Cloud Storage ConnectionProfile configuration.
    * 
@@ -210,24 +274,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.GcsProfileOrBuilder getGcsProfileOrBuilder(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return Whether the mysqlProfile field is set. */ boolean hasMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
* * .google.cloud.datastream.v1alpha1.MysqlProfile mysql_profile = 102; + * * @return The mysqlProfile. */ com.google.cloud.datastream.v1alpha1.MysqlProfile getMysqlProfile(); /** + * + * *
    * MySQL ConnectionProfile configuration.
    * 
@@ -237,24 +309,32 @@ java.lang.String getLabelsOrThrow( com.google.cloud.datastream.v1alpha1.MysqlProfileOrBuilder getMysqlProfileOrBuilder(); /** + * + * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return Whether the noConnectivity field is set. */ boolean hasNoConnectivity(); /** + * + * *
    * No connectivity option chosen.
    * 
* * .google.cloud.datastream.v1alpha1.NoConnectivitySettings no_connectivity = 200; + * * @return The noConnectivity. */ com.google.cloud.datastream.v1alpha1.NoConnectivitySettings getNoConnectivity(); /** + * + * *
    * No connectivity option chosen.
    * 
@@ -264,87 +344,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 f82d4d43..f968f508 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,77 +65,91 @@ 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) { throw e.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 @@ -130,29 +158,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 { @@ -163,11 +193,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 @@ -176,29 +209,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 { @@ -209,11 +242,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 @@ -221,32 +259,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
@@ -262,6 +314,7 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -270,14 +323,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
@@ -293,16 +347,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 { @@ -311,6 +364,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,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_); } @@ -352,8 +405,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_); @@ -366,24 +418,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; } @@ -411,130 +460,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(); @@ -554,14 +610,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 @@ -575,7 +633,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) { @@ -592,46 +651,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(); @@ -666,7 +730,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) { @@ -678,18 +744,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; @@ -698,20 +768,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 { @@ -719,54 +792,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; @@ -774,18 +860,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; @@ -794,20 +882,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 { @@ -815,54 +904,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; @@ -870,41 +966,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(); @@ -918,11 +1034,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) { @@ -936,17 +1056,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; } @@ -958,11 +1085,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) { @@ -976,48 +1107,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_; @@ -1025,6 +1174,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
@@ -1040,13 +1191,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; @@ -1055,6 +1206,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1070,15 +1223,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 { @@ -1086,6 +1238,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,20 +1255,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
@@ -1130,15 +1286,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
@@ -1154,23 +1313,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); } @@ -1180,30 +1339,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; @@ -1215,9 +1376,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 2422ec6e..cf7f35a7 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,77 +65,91 @@ 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) { throw e.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 @@ -130,29 +158,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 { @@ -163,11 +193,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 @@ -176,29 +209,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 { @@ -209,11 +242,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 @@ -221,32 +259,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
@@ -262,6 +314,7 @@ public com.google.cloud.datastream.v1alpha1.PrivateConnectionOrBuilder getPrivat
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -270,14 +323,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
@@ -293,16 +347,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 { @@ -311,6 +364,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,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_); } @@ -352,8 +405,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_); @@ -366,24 +418,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; } @@ -411,130 +460,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(); @@ -554,14 +610,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 @@ -575,7 +633,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) { @@ -592,46 +651,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(); @@ -666,7 +730,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) { @@ -678,18 +744,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; @@ -698,20 +768,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 { @@ -719,54 +792,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; @@ -774,18 +860,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; @@ -794,20 +882,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 { @@ -815,54 +904,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; @@ -870,41 +966,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(); @@ -918,11 +1034,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) { @@ -936,17 +1056,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; } @@ -958,11 +1085,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) { @@ -976,48 +1107,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_; @@ -1025,6 +1174,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
@@ -1040,13 +1191,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; @@ -1055,6 +1206,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1070,15 +1223,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 { @@ -1086,6 +1238,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,20 +1255,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
@@ -1130,15 +1286,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
@@ -1154,23 +1313,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); } @@ -1180,30 +1339,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; @@ -1215,9 +1376,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 2b13e4dd..1373a0bd 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,77 +72,90 @@ 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) { throw e.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 @@ -134,29 +164,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 { @@ -167,11 +199,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 @@ -180,29 +215,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 { @@ -213,11 +248,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 @@ -225,23 +265,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() { @@ -251,6 +302,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
@@ -266,6 +319,7 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRouteOrBuilder() {
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -274,14 +328,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
@@ -297,16 +352,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 { @@ -315,6 +369,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,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_); } @@ -356,8 +410,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_); @@ -370,24 +423,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; } @@ -415,117 +465,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() @@ -533,16 +593,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(); @@ -562,9 +621,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 @@ -583,7 +642,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) { @@ -600,38 +660,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; @@ -639,7 +700,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(); @@ -674,7 +736,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) { @@ -686,18 +749,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; @@ -706,20 +773,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 { @@ -727,54 +797,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; @@ -782,18 +865,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; @@ -802,20 +887,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 { @@ -823,54 +909,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; @@ -878,39 +971,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) { @@ -926,14 +1038,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(); @@ -944,17 +1059,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; } @@ -966,11 +1087,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) { @@ -984,48 +1109,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_; @@ -1033,6 +1174,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
@@ -1048,13 +1191,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; @@ -1063,6 +1206,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -1078,15 +1223,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 { @@ -1094,6 +1238,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,20 +1255,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
@@ -1138,15 +1286,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
@@ -1162,23 +1313,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); } @@ -1188,12 +1339,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(); } @@ -1202,16 +1353,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; @@ -1226,6 +1377,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 1e5f8004..c6bf8f5a 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,87 +64,100 @@ 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) { throw e.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 @@ -140,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 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 { @@ -173,11 +201,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 @@ -186,29 +217,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 { @@ -219,11 +250,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 @@ -231,23 +267,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() { @@ -257,6 +304,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
@@ -272,6 +321,7 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -280,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
@@ -303,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 { @@ -323,12 +373,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 @@ -339,11 +392,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 @@ -352,6 +408,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -363,8 +420,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -399,19 +455,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; @@ -421,28 +474,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; } @@ -465,124 +513,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() @@ -590,16 +642,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(); @@ -623,9 +674,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 @@ -644,7 +695,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) { @@ -663,38 +715,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; @@ -702,7 +755,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(); @@ -743,7 +797,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) { @@ -755,18 +810,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; @@ -775,20 +834,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 { @@ -796,54 +858,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; @@ -851,18 +926,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; @@ -871,20 +948,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 { @@ -892,54 +970,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; @@ -947,39 +1032,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) { @@ -995,14 +1099,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(); @@ -1013,17 +1120,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; } @@ -1035,11 +1148,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) { @@ -1053,48 +1170,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_; @@ -1102,6 +1235,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
@@ -1117,13 +1252,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; @@ -1132,6 +1267,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
@@ -1147,15 +1284,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 { @@ -1163,6 +1299,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
@@ -1178,20 +1316,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
@@ -1207,15 +1347,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
@@ -1231,29 +1374,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 @@ -1261,44 +1407,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 @@ -1306,37 +1461,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); } @@ -1346,12 +1507,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(); } @@ -1360,16 +1521,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; @@ -1384,6 +1545,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 60a64675..0b128b4e 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,58 +64,67 @@ 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) { throw e.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 @@ -110,29 +133,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 { @@ -143,6 +168,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
@@ -158,6 +185,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -166,14 +194,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
@@ -189,16 +218,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 { @@ -207,6 +235,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +247,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -249,17 +277,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; } @@ -281,130 +308,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(); @@ -416,14 +450,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 @@ -437,7 +473,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(); @@ -448,46 +485,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(); @@ -515,7 +557,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) { @@ -527,18 +571,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; @@ -547,20 +595,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 { @@ -568,54 +619,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; @@ -623,6 +687,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
@@ -638,13 +704,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; @@ -653,6 +719,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
@@ -668,15 +736,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 { @@ -684,6 +751,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
@@ -699,20 +768,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
@@ -728,15 +799,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
@@ -752,23 +826,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); } @@ -778,30 +852,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; @@ -813,9 +889,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 ef564021..9f7259a6 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,63 +64,72 @@ 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) { throw e.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 @@ -115,29 +138,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 { @@ -148,6 +173,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
@@ -163,6 +190,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -171,14 +199,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
@@ -194,16 +223,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 { @@ -214,12 +242,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 @@ -228,6 +259,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -266,8 +297,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; @@ -277,19 +307,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; } @@ -306,138 +334,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(); @@ -451,14 +485,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_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 @@ -472,7 +508,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_; @@ -484,46 +521,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(); @@ -554,7 +596,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) { @@ -566,18 +610,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; @@ -586,20 +634,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 { @@ -607,54 +658,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; @@ -662,6 +726,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
@@ -677,13 +743,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; @@ -692,6 +758,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
@@ -707,15 +775,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 { @@ -723,6 +790,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
@@ -738,20 +807,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
@@ -767,15 +838,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
@@ -791,29 +865,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 @@ -821,39 +898,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); } @@ -863,30 +946,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; @@ -898,9 +983,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 4a3b9c47..11747525 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,58 +71,67 @@ 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) { throw e.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 @@ -114,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 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 { @@ -147,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
@@ -162,6 +192,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -170,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
@@ -193,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 { @@ -211,6 +242,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -222,8 +254,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -253,17 +284,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; } @@ -285,117 +315,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() @@ -403,16 +443,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(); @@ -424,9 +463,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 @@ -445,7 +484,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(); @@ -456,38 +496,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; @@ -495,7 +536,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(); @@ -523,7 +565,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) { @@ -535,18 +578,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; @@ -555,20 +602,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 { @@ -576,54 +626,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; @@ -631,6 +694,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
@@ -646,13 +711,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; @@ -661,6 +726,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
@@ -676,15 +743,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 { @@ -692,6 +758,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
@@ -707,20 +775,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
@@ -736,15 +806,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
@@ -760,23 +833,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); } @@ -786,12 +859,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(); } @@ -800,16 +873,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; @@ -824,6 +897,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 ff41ab8c..9a06c4ad 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,58 +63,67 @@ 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) { throw e.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 @@ -110,29 +132,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 { @@ -143,6 +167,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
@@ -158,6 +184,7 @@ public java.lang.String getName() {
    * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -166,14 +193,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
@@ -189,16 +217,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 { @@ -207,6 +234,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -249,17 +276,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; } @@ -281,113 +307,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() @@ -395,16 +427,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 +447,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 @@ -437,7 +468,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(); @@ -448,38 +480,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; @@ -487,7 +520,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(); @@ -515,7 +549,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) { @@ -527,18 +562,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; @@ -547,20 +586,23 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the stream resource to delete.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -568,54 +610,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; @@ -623,6 +678,8 @@ public Builder setNameBytes( private java.lang.Object requestId_ = ""; /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -638,13 +695,13 @@ public Builder setNameBytes(
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; @@ -653,6 +710,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -668,15 +727,14 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for requestId. */ - public com.google.protobuf.ByteString - getRequestIdBytes() { + public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); requestId_ = b; return b; } else { @@ -684,6 +742,8 @@ public java.lang.String getRequestId() { } } /** + * + * *
      * Optional. A request ID to identify requests. Specify a unique request ID
      * so that if you must retry your request, the server will know to ignore
@@ -699,20 +759,22 @@ public java.lang.String getRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setRequestId( - java.lang.String value) { + 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
@@ -728,15 +790,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
@@ -752,23 +817,23 @@ public Builder clearRequestId() {
      * 
* * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { + 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); } @@ -778,12 +843,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(); } @@ -792,16 +857,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; @@ -816,6 +881,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 a7823773..8ed63ac6 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,66 +70,80 @@ 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) { throw e.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; } @@ -128,30 +159,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 @@ -160,29 +197,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 { @@ -192,7 +230,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 @@ -200,28 +240,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; @@ -233,13 +278,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); } @@ -251,11 +298,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; @@ -265,20 +316,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: @@ -310,117 +362,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() @@ -428,16 +490,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(); @@ -449,9 +510,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 @@ -470,7 +531,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) { @@ -488,38 +550,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; @@ -527,19 +590,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(); @@ -560,7 +626,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) { @@ -569,12 +636,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() { @@ -584,21 +651,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; @@ -607,20 +677,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 { @@ -628,63 +701,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 @@ -692,14 +784,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 { @@ -710,9 +805,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(); @@ -726,7 +823,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) { @@ -740,14 +838,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; } @@ -762,7 +867,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) { @@ -781,49 +887,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); } @@ -833,12 +953,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(); } @@ -847,16 +967,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; @@ -871,6 +991,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 90cdfd9d..d3fe1e78 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,111 +71,132 @@ 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: { - depthCase_ = 3; - depth_ = input.readBool(); - break; - } - case 32: { - depthCase_ = 4; - depth_ = input.readInt32(); - 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: + { + depthCase_ = 3; + depth_ = input.readBool(); + 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: + { + depthCase_ = 4; + depth_ = input.readInt32(); + 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) { throw e.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; } @@ -173,32 +212,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; } @@ -214,32 +259,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; } @@ -255,32 +306,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 @@ -289,30 +348,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 { @@ -322,11 +383,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 @@ -334,21 +398,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.
    * 
@@ -356,31 +425,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() { @@ -391,8 +467,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; @@ -401,23 +476,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; } @@ -429,12 +505,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 @@ -442,12 +521,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 @@ -460,11 +542,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 @@ -472,11 +557,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 @@ -489,11 +577,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 @@ -501,21 +592,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.
    * 
@@ -525,18 +621,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 @@ -544,21 +643,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.
    * 
@@ -568,12 +672,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; @@ -585,18 +690,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_); @@ -623,26 +725,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_); @@ -655,24 +760,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: @@ -680,12 +783,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: @@ -693,12 +794,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: @@ -731,8 +830,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; @@ -759,134 +857,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(); @@ -902,14 +1011,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 @@ -923,7 +1034,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) { @@ -966,90 +1078,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(); @@ -1070,7 +1196,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) { @@ -1079,12 +1207,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() { @@ -1096,10 +1224,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() { @@ -1111,10 +1238,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() { @@ -1124,22 +1250,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; @@ -1148,21 +1277,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 { @@ -1170,70 +1302,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 @@ -1241,11 +1392,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 @@ -1263,13 +1417,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(); @@ -1283,6 +1440,8 @@ public Builder setConnectionProfile(com.google.cloud.datastream.v1alpha1.Connect return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1301,18 +1460,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; } @@ -1327,6 +1493,8 @@ public Builder mergeConnectionProfile(com.google.cloud.datastream.v1alpha1.Conne return this; } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1350,16 +1518,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.
      * 
@@ -1367,7 +1540,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 { @@ -1378,6 +1552,8 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec } } /** + * + * *
      * An ad-hoc ConnectionProfile configuration.
      * 
@@ -1385,30 +1561,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 @@ -1416,11 +1601,14 @@ public boolean hasConnectionProfileName() { return targetCase_ == 201; } /** + * + * *
      * A reference to an existing ConnectionProfile.
      * 
* * string connection_profile_name = 201; + * * @return The connectionProfileName. */ @java.lang.Override @@ -1430,8 +1618,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; @@ -1442,24 +1629,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; } @@ -1469,30 +1657,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() { @@ -1504,20 +1697,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(); @@ -1525,24 +1720,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() { @@ -1552,12 +1753,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. */ @@ -1568,12 +1772,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() { @@ -1586,22 +1793,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() { @@ -1611,11 +1824,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. */ @@ -1626,11 +1842,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() { @@ -1643,13 +1862,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 @@ -1657,11 +1882,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 @@ -1679,6 +1907,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1699,6 +1929,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1717,6 +1949,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1725,10 +1959,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; } @@ -1743,6 +1981,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1766,6 +2006,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1776,6 +2018,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1794,6 +2038,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** + * + * *
      * Oracle RDBMS to enrich with child data objects and metadata.
      * 
@@ -1801,32 +2047,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 @@ -1834,11 +2092,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 @@ -1856,6 +2117,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1876,6 +2139,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1894,6 +2159,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1902,10 +2169,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; } @@ -1920,6 +2191,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1943,6 +2216,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1953,6 +2228,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1971,6 +2248,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** + * + * *
      * MySQL RDBMS to enrich with child data objects and metadata.
      * 
@@ -1978,26 +2257,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); } @@ -2007,30 +2292,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; @@ -2042,9 +2329,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 2a45b0a0..35d045e8 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,75 +61,87 @@ 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) { throw e.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; } @@ -132,30 +157,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 @@ -163,21 +194,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.
    * 
@@ -187,18 +223,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 @@ -206,21 +245,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.
    * 
@@ -230,12 +274,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; @@ -247,8 +292,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -265,12 +309,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; @@ -280,22 +326,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: @@ -329,130 +374,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(); @@ -462,19 +514,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); } @@ -483,7 +538,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_; @@ -507,58 +563,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(); @@ -579,7 +643,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) { @@ -588,12 +654,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() { @@ -603,15 +669,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 @@ -619,11 +690,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 @@ -641,6 +715,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms getOracleRdbms() { } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -661,6 +737,8 @@ public Builder setOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -679,6 +757,8 @@ public Builder setOracleRdbms( return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -687,10 +767,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; } @@ -705,6 +789,8 @@ public Builder mergeOracleRdbms(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -728,6 +814,8 @@ public Builder clearOracleRdbms() { return this; } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -738,6 +826,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbms.Builder getOracleRdbmsBu return getOracleRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -756,6 +846,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleRdbmsO } } /** + * + * *
      * Enriched Oracle RDBMS object.
      * 
@@ -763,32 +855,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 @@ -796,11 +900,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 @@ -818,6 +925,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms getMysqlRdbms() { } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -838,6 +947,8 @@ public Builder setMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -856,6 +967,8 @@ public Builder setMysqlRdbms( return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -864,10 +977,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; } @@ -882,6 +999,8 @@ public Builder mergeMysqlRdbms(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -905,6 +1024,8 @@ public Builder clearMysqlRdbms() { return this; } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -915,6 +1036,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbms.Builder getMysqlRdbmsBuil return getMysqlRdbmsFieldBuilder().getBuilder(); } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -933,6 +1056,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlRdbmsOrB } } /** + * + * *
      * Enriched MySQL RDBMS object.
      * 
@@ -940,26 +1065,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); } @@ -969,30 +1100,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; @@ -1004,9 +1137,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 948d5ffe..b3c0b40a 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,102 +73,112 @@ 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) { throw e.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 @@ -160,29 +187,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 { @@ -193,12 +220,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 @@ -207,30 +237,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 { @@ -241,11 +271,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 @@ -254,29 +287,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 { @@ -287,11 +320,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 @@ -299,11 +335,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 @@ -311,6 +350,8 @@ public com.google.protobuf.Timestamp getErrorTime() { return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_; } /** + * + * *
    * The time when the error occurred.
    * 
@@ -323,24 +364,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_; } @@ -349,28 +389,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 java.lang.NullPointerException(); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -378,11 +420,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.
    * 
@@ -390,16 +433,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional information about the error.
    * 
@@ -407,12 +450,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -420,6 +462,7 @@ public java.lang.String getDetailsOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -431,8 +474,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -445,12 +487,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); } @@ -470,18 +508,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; @@ -491,26 +528,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; } @@ -541,140 +574,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() @@ -682,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(); @@ -712,9 +751,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 @@ -733,7 +772,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_; @@ -753,38 +793,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; @@ -808,8 +849,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; @@ -838,22 +878,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; @@ -862,20 +905,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 { @@ -883,54 +927,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; @@ -938,19 +989,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; @@ -959,21 +1012,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 { @@ -981,57 +1035,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; @@ -1039,18 +1100,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; @@ -1059,20 +1122,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 { @@ -1080,54 +1144,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; @@ -1135,24 +1206,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() { @@ -1163,6 +1243,8 @@ public com.google.protobuf.Timestamp getErrorTime() { } } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1183,14 +1265,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(); @@ -1201,6 +1284,8 @@ public Builder setErrorTime( return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1211,7 +1296,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; } @@ -1223,6 +1308,8 @@ public Builder mergeErrorTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1241,6 +1328,8 @@ public Builder clearErrorTime() { return this; } /** + * + * *
      * The time when the error occurred.
      * 
@@ -1248,11 +1337,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.
      * 
@@ -1263,11 +1354,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.
      * 
@@ -1275,35 +1367,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(); @@ -1315,28 +1409,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 java.lang.NullPointerException(); } + public boolean containsDetails(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1344,11 +1440,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.
      * 
@@ -1356,16 +1453,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional information about the error.
      * 
@@ -1373,12 +1471,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetDetails().getMap(); + public java.lang.String getDetailsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetDetails().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1386,66 +1483,65 @@ 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 java.lang.NullPointerException(); } - internalGetMutableDetails().getMutableMap() - .remove(key); + public Builder removeDetails(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDetails().getMutableMap() - .put(key, value); + public Builder putDetails(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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); } @@ -1455,12 +1551,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(); } @@ -1469,16 +1565,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; @@ -1493,6 +1589,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 68% 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 82a66c53..ca38a6b2 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,48 +146,46 @@ 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.
    * 
* * map<string, string> details = 5; */ - - java.lang.String getDetailsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getDetailsOrDefault(java.lang.String key, 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 264c6e0a..8fa70dfb 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,52 +70,58 @@ 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) { throw e.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 @@ -107,29 +130,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 { @@ -138,6 +161,7 @@ public java.lang.String getStream() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +173,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +197,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; } @@ -202,117 +225,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() @@ -320,16 +353,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(); @@ -339,9 +371,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datastream.v1alpha1.CloudDatastreamServiceProto.internal_static_google_cloud_datastream_v1alpha1_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 @@ -360,7 +392,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; @@ -370,38 +403,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; @@ -409,7 +443,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(); @@ -433,7 +468,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) { @@ -445,18 +481,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; @@ -465,20 +503,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 { @@ -486,61 +525,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); } @@ -550,12 +596,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(); } @@ -564,16 +610,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; @@ -588,6 +634,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 4406335a..3f940035 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,29 +71,30 @@ 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) { throw e.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_); @@ -85,22 +103,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.
    * 
@@ -112,6 +135,8 @@ public java.util.List getErrorsList( return errors_; } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -119,11 +144,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.
    * 
@@ -135,6 +162,8 @@ public int getErrorsCount() { return errors_.size(); } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -146,6 +175,8 @@ public com.google.cloud.datastream.v1alpha1.Error getErrors(int index) { return errors_.get(index); } /** + * + * *
    * The list of errors on the Stream.
    * 
@@ -153,12 +184,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; @@ -170,8 +201,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -185,8 +215,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; @@ -196,15 +225,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; } @@ -226,117 +255,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() @@ -344,17 +383,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(); @@ -368,9 +407,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 @@ -389,7 +428,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)) { @@ -408,38 +448,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; @@ -447,7 +488,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()) { @@ -466,9 +508,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_); } @@ -493,7 +536,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) { @@ -502,21 +546,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.
      * 
@@ -531,6 +582,8 @@ public java.util.List getErrorsList( } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -545,6 +598,8 @@ public int getErrorsCount() { } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -559,14 +614,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(); @@ -580,6 +636,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -598,6 +656,8 @@ public Builder setErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -618,14 +678,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(); @@ -639,14 +700,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()); @@ -657,6 +719,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -675,6 +739,8 @@ public Builder addErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -685,8 +751,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); @@ -694,6 +759,8 @@ public Builder addAllErrors( return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -711,6 +778,8 @@ public Builder clearErrors() { return this; } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -728,39 +797,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 { @@ -768,6 +842,8 @@ public com.google.cloud.datastream.v1alpha1.ErrorOrBuilder getErrorsOrBuilder( } } /** + * + * *
      * The list of errors on the Stream.
      * 
@@ -775,49 +851,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); } @@ -827,12 +909,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(); } @@ -841,16 +923,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; @@ -865,6 +947,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 09cdeaf6..49c49061 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,64 +71,73 @@ 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) { throw e.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 @@ -120,30 +146,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 { @@ -154,11 +182,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 @@ -169,12 +200,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 @@ -183,30 +217,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 { @@ -215,6 +249,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -250,8 +284,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_); @@ -264,19 +297,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; } @@ -300,117 +331,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() @@ -418,16 +459,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(); @@ -441,9 +481,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 @@ -462,7 +502,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_; @@ -474,38 +515,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; @@ -513,7 +555,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(); @@ -544,7 +587,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) { @@ -556,19 +600,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; @@ -577,21 +625,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 { @@ -599,69 +650,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 @@ -669,30 +736,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; @@ -700,19 +773,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; @@ -721,21 +796,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 { @@ -743,64 +819,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); } @@ -810,12 +893,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(); } @@ -824,16 +907,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; @@ -848,6 +931,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 f296617c..01212f04 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,35 +72,36 @@ 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) { throw e.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(); @@ -92,50 +110,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. */ @@ -143,28 +172,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 @@ -173,30 +207,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 { @@ -205,6 +239,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -216,8 +251,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -252,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.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; } @@ -286,117 +319,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() @@ -404,16 +447,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(); @@ -425,9 +467,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 @@ -446,7 +488,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(); @@ -462,38 +505,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; @@ -501,7 +545,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_; @@ -535,7 +580,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) { @@ -544,44 +590,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. */ @@ -589,80 +646,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() { @@ -672,20 +739,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(); @@ -694,19 +763,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; @@ -715,21 +786,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 { @@ -737,64 +809,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); } @@ -804,12 +883,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(); } @@ -818,16 +897,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; @@ -842,6 +921,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 1f2a99f9..0b6b66c8 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,76 +71,85 @@ 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) { throw e.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; } @@ -139,31 +165,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 @@ -172,29 +204,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 { @@ -205,11 +237,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 @@ -218,29 +253,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 { @@ -251,11 +286,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 @@ -265,22 +303,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() { @@ -291,8 +335,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; @@ -301,23 +344,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; } @@ -329,22 +373,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() { @@ -355,8 +405,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; @@ -365,23 +414,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; } @@ -392,6 +442,7 @@ public java.lang.String getPrivateKey() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,8 +454,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -436,8 +486,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_); @@ -453,28 +502,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: @@ -514,134 +559,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(); @@ -657,13 +713,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(); } @@ -678,7 +735,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_; @@ -697,46 +755,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(); @@ -749,21 +811,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(); @@ -784,7 +849,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) { @@ -793,12 +860,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() { @@ -808,21 +875,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; @@ -831,20 +899,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 { @@ -852,54 +921,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; @@ -907,18 +983,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; @@ -927,20 +1005,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 { @@ -948,66 +1027,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 @@ -1015,41 +1104,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 @@ -1057,11 +1155,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 @@ -1071,8 +1172,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; @@ -1083,24 +1183,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; } @@ -1110,30 +1211,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() { @@ -1145,20 +1251,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(); @@ -1166,11 +1274,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 @@ -1178,11 +1289,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 @@ -1192,8 +1306,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; @@ -1204,24 +1317,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; } @@ -1231,30 +1345,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() { @@ -1266,28 +1385,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); } @@ -1297,30 +1418,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; @@ -1332,9 +1455,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 70% 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 28ae8f00..714b6b42 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,105 +71,124 @@ 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) { throw e.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; } @@ -168,31 +204,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 @@ -201,29 +243,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 { @@ -234,40 +276,58 @@ 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]; + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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]; + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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 @@ -278,12 +338,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 @@ -291,19 +354,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.
@@ -318,11 +388,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 @@ -330,21 +403,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.
    * 
@@ -354,18 +432,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 @@ -373,21 +454,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.
    * 
@@ -397,12 +483,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; @@ -414,12 +501,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) { @@ -446,25 +534,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; @@ -474,32 +564,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: @@ -543,117 +629,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() @@ -661,16 +757,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(); @@ -692,9 +787,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 @@ -713,7 +808,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_; @@ -745,38 +841,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; @@ -784,7 +881,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(); @@ -799,17 +897,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(); @@ -830,7 +931,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) { @@ -839,12 +941,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() { @@ -854,21 +956,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; @@ -877,20 +980,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 { @@ -898,54 +1002,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; @@ -953,90 +1064,127 @@ 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]; + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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]; + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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]; + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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]; + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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]; + * + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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 @@ -1044,30 +1192,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; @@ -1075,36 +1229,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.
@@ -1126,6 +1293,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.
@@ -1133,8 +1302,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();
@@ -1145,6 +1313,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.
@@ -1156,7 +1326,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;
         }
@@ -1168,6 +1340,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.
@@ -1187,6 +1361,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.
@@ -1195,11 +1371,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.
@@ -1211,11 +1389,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.
@@ -1224,27 +1405,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 @@ -1252,11 +1442,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 @@ -1274,6 +1467,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat getAvroFileFormat() { } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1294,6 +1489,8 @@ public Builder setAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFileFo return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1312,6 +1509,8 @@ public Builder setAvroFileFormat( return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1320,10 +1519,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; } @@ -1338,6 +1541,8 @@ public Builder mergeAvroFileFormat(com.google.cloud.datastream.v1alpha1.AvroFile return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1361,6 +1566,8 @@ public Builder clearAvroFileFormat() { return this; } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1371,6 +1578,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormat.Builder getAvroFileFo return getAvroFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1378,7 +1587,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 { @@ -1389,6 +1599,8 @@ public com.google.cloud.datastream.v1alpha1.AvroFileFormatOrBuilder getAvroFileF } } /** + * + * *
      * AVRO file format configuration.
      * 
@@ -1396,32 +1608,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 @@ -1429,11 +1653,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 @@ -1451,6 +1678,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat getJsonFileFormat() { } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1471,6 +1700,8 @@ public Builder setJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFileFo return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1489,6 +1720,8 @@ public Builder setJsonFileFormat( return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1497,10 +1730,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; } @@ -1515,6 +1752,8 @@ public Builder mergeJsonFileFormat(com.google.cloud.datastream.v1alpha1.JsonFile return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1538,6 +1777,8 @@ public Builder clearJsonFileFormat() { return this; } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1548,6 +1789,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormat.Builder getJsonFileFo return getJsonFileFormatFieldBuilder().getBuilder(); } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1555,7 +1798,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 { @@ -1566,6 +1810,8 @@ public com.google.cloud.datastream.v1alpha1.JsonFileFormatOrBuilder getJsonFileF } } /** + * + * *
      * JSON file format configuration.
      * 
@@ -1573,26 +1819,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); } @@ -1602,12 +1854,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(); } @@ -1616,16 +1868,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; @@ -1640,6 +1892,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 76% 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 bd50f983..a9091459 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,84 +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_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]; + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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]; + * .google.cloud.datastream.v1alpha1.GcsFileFormat gcs_file_format = 2 [deprecated = true]; + * + * * @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.
@@ -89,24 +131,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.
    * 
@@ -116,24 +166,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.
    * 
@@ -142,5 +200,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 a318d046..d2c9d8fd 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,59 +71,66 @@ 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) { throw e.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 @@ -115,30 +139,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 { @@ -149,11 +173,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 @@ -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(bucketName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketName_); } @@ -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.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; } @@ -266,118 +292,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() @@ -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.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 @@ -427,7 +461,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(); @@ -438,38 +473,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; @@ -477,7 +513,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(); @@ -517,19 +554,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; @@ -538,21 +577,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 { @@ -560,57 +600,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; @@ -618,18 +665,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; @@ -638,20 +687,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 { @@ -659,61 +709,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); } @@ -723,12 +780,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(); } @@ -737,16 +794,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; @@ -761,6 +818,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 dba3d7ad..b9c01e72 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,52 +62,60 @@ 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) { throw e.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 @@ -103,29 +124,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 { @@ -134,6 +157,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +169,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -170,15 +193,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; } @@ -198,113 +221,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() @@ -312,16 +341,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(); @@ -331,13 +359,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(); } @@ -352,7 +381,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; @@ -362,46 +392,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(); @@ -425,7 +459,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) { @@ -437,18 +473,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; @@ -457,20 +497,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 { @@ -478,61 +521,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); } @@ -542,30 +598,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; @@ -577,9 +635,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 35f6c3a4..693987d4 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,52 +62,60 @@ 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) { throw e.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 @@ -103,29 +124,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 { @@ -134,6 +157,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +169,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -170,15 +193,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; } @@ -198,113 +221,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() @@ -312,16 +341,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(); @@ -331,13 +359,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(); } @@ -352,7 +381,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; @@ -362,46 +392,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(); @@ -425,7 +459,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) { @@ -437,18 +473,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; @@ -457,20 +497,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 { @@ -478,61 +521,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); } @@ -542,30 +598,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; @@ -577,9 +635,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 65% 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 0051c837..57c31d69 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,52 +70,60 @@ 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) { throw e.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 @@ -107,29 +132,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 { @@ -138,6 +165,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +177,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -174,15 +201,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; } @@ -202,117 +229,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() @@ -320,16 +356,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(); @@ -339,9 +374,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 @@ -360,7 +395,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; @@ -370,38 +406,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; @@ -409,7 +446,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(); @@ -433,7 +471,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) { @@ -445,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; @@ -465,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 { @@ -486,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); } @@ -550,12 +609,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(); } @@ -564,16 +623,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; @@ -588,6 +647,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 efbc4928..2dcacd58 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,52 +62,60 @@ 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) { throw e.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 @@ -103,29 +124,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 { @@ -134,6 +157,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -145,8 +169,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -170,15 +193,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; } @@ -198,113 +221,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() @@ -312,16 +341,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(); @@ -331,9 +359,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 @@ -352,7 +380,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; @@ -362,38 +391,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; @@ -401,7 +431,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(); @@ -425,7 +456,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) { @@ -437,18 +469,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; @@ -457,20 +493,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 { @@ -478,61 +517,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); } @@ -542,12 +594,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(); } @@ -556,16 +608,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; @@ -580,6 +632,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 bb4ce7d4..4e03e1af 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,60 +71,67 @@ 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) { throw e.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.
      * 
@@ -116,6 +140,8 @@ public enum JsonCompression */ JSON_COMPRESSION_UNSPECIFIED(0), /** + * + * *
      * Do not compress JSON file.
      * 
@@ -124,6 +150,8 @@ public enum JsonCompression */ NO_COMPRESSION(1), /** + * + * *
      * Gzip compression.
      * 
@@ -135,6 +163,8 @@ public enum JsonCompression ; /** + * + * *
      * Unspecified json file compression.
      * 
@@ -143,6 +173,8 @@ public enum JsonCompression */ public static final int JSON_COMPRESSION_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Do not compress JSON file.
      * 
@@ -151,6 +183,8 @@ public enum JsonCompression */ public static final int NO_COMPRESSION_VALUE = 1; /** + * + * *
      * Gzip compression.
      * 
@@ -159,7 +193,6 @@ public enum JsonCompression */ public static final int GZIP_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -184,40 +217,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(); @@ -225,8 +263,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; @@ -246,58 +283,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; @@ -309,12 +369,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); @@ -326,13 +390,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; @@ -342,12 +409,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; @@ -372,117 +440,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() @@ -490,16 +567,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(); @@ -511,9 +587,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 @@ -532,7 +608,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(); @@ -543,38 +620,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; @@ -582,7 +660,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()); } @@ -608,7 +687,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) { @@ -620,73 +700,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; @@ -694,80 +794,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); } @@ -777,12 +902,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(); } @@ -791,16 +916,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; @@ -815,6 +940,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 b2b0d7c0..38be2ff1 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,75 +65,86 @@ 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) { throw e.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 @@ -129,29 +153,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 { @@ -162,6 +188,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.
@@ -169,6 +197,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -179,6 +208,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.
@@ -187,6 +218,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -195,14 +227,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.
@@ -211,16 +244,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 { @@ -231,11 +263,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 @@ -244,29 +279,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 { @@ -277,11 +312,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 @@ -290,29 +328,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 { @@ -321,6 +359,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -362,8 +400,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_); @@ -382,23 +419,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; } @@ -426,130 +459,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(); @@ -567,14 +607,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 @@ -588,7 +630,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_; @@ -602,46 +645,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(); @@ -680,7 +728,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) { @@ -692,18 +742,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; @@ -712,20 +766,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 { @@ -733,61 +790,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.
@@ -795,6 +867,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -802,6 +875,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of connection profiles to return.
      * If unspecified, at most 50 connection profiles will be returned.
@@ -809,16 +884,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.
@@ -826,10 +904,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -837,6 +916,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -845,13 +926,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; @@ -860,6 +941,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -868,15 +951,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -884,6 +966,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListConnectionProfiles` call.
      * Provide this to retrieve the subsequent page.
@@ -892,20 +976,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.
@@ -914,15 +1000,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.
@@ -931,16 +1020,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; @@ -948,18 +1037,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; @@ -968,20 +1059,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 { @@ -989,54 +1081,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; @@ -1044,18 +1143,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; @@ -1064,20 +1165,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 { @@ -1085,61 +1187,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); } @@ -1149,30 +1258,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; @@ -1184,9 +1295,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 5bd1b8e4..cfb1289e 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,44 +66,50 @@ 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) { throw e.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_); @@ -101,88 +121,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 @@ -191,30 +234,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 { @@ -225,34 +268,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. */ @@ -260,20 +311,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; @@ -285,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -306,8 +359,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_); @@ -328,19 +381,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; } @@ -368,131 +419,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(); @@ -510,14 +569,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 @@ -531,7 +592,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)) { @@ -556,46 +618,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()) { @@ -614,9 +681,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_); } @@ -655,7 +723,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) { @@ -664,28 +734,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 { @@ -693,11 +774,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) { @@ -707,11 +791,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) { @@ -721,11 +808,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) { @@ -742,11 +832,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) { @@ -760,13 +853,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(); @@ -780,11 +877,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) { @@ -801,11 +901,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) { @@ -819,11 +922,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) { @@ -837,18 +943,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); @@ -856,11 +965,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) { @@ -873,11 +985,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) { @@ -890,39 +1005,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 { @@ -930,45 +1055,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(), @@ -980,19 +1122,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; @@ -1001,21 +1145,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 { @@ -1023,98 +1168,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. */ @@ -1122,80 +1284,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() { @@ -1205,28 +1377,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); } @@ -1236,30 +1410,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; @@ -1271,9 +1447,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 876cc313..852149c8 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,75 +65,86 @@ 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) { throw e.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 @@ -129,29 +153,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 { @@ -162,6 +188,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
@@ -170,6 +198,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -180,6 +209,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.
@@ -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 `ListPrivateConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -214,16 +247,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 { @@ -234,11 +266,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 @@ -247,29 +282,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 { @@ -280,11 +315,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 @@ -293,29 +331,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 { @@ -324,6 +362,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,8 +374,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -365,8 +403,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_); @@ -385,23 +422,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; } @@ -429,130 +462,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(); @@ -570,14 +610,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 @@ -591,7 +633,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_; @@ -605,46 +648,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(); @@ -683,7 +731,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) { @@ -695,18 +745,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; @@ -715,20 +769,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 { @@ -736,61 +793,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
@@ -799,6 +871,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -806,6 +879,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
@@ -814,16 +889,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
@@ -832,10 +910,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -843,6 +922,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -852,13 +933,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; @@ -867,6 +948,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -876,15 +959,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 { @@ -892,6 +974,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -901,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 `ListPrivateConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -924,15 +1010,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.
@@ -942,16 +1031,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; @@ -959,18 +1048,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; @@ -979,20 +1070,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 { @@ -1000,54 +1092,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; @@ -1055,18 +1154,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; @@ -1075,20 +1176,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 { @@ -1096,61 +1198,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); } @@ -1160,30 +1269,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; @@ -1195,9 +1306,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 5312b942..6c75dde9 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,44 +66,50 @@ 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) { throw e.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_); @@ -101,88 +121,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 @@ -191,30 +234,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 { @@ -225,34 +268,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. */ @@ -260,20 +311,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; @@ -285,8 +339,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -306,8 +359,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_); @@ -328,19 +381,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; } @@ -368,131 +419,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(); @@ -510,14 +569,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 @@ -531,7 +592,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)) { @@ -556,46 +618,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()) { @@ -614,9 +681,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_); } @@ -655,7 +723,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) { @@ -664,28 +734,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 { @@ -693,11 +774,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) { @@ -707,11 +791,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) { @@ -721,11 +808,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) { @@ -742,11 +832,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) { @@ -760,13 +853,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(); @@ -780,11 +877,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) { @@ -801,11 +901,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) { @@ -819,11 +922,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) { @@ -837,18 +943,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); @@ -856,11 +965,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) { @@ -873,11 +985,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) { @@ -890,39 +1005,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 { @@ -930,45 +1055,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(), @@ -980,19 +1122,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; @@ -1001,21 +1145,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 { @@ -1023,98 +1168,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. */ @@ -1122,80 +1284,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() { @@ -1205,28 +1377,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); } @@ -1236,30 +1410,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; @@ -1271,9 +1447,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 70% 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 86f13c6f..78e9f5c1 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,75 +73,86 @@ 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) { throw e.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 @@ -133,29 +161,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 { @@ -166,6 +196,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
@@ -174,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +217,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.
@@ -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 `ListRoutes` call.
    * Provide this to retrieve the subsequent page.
@@ -218,16 +255,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 { @@ -238,11 +274,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 @@ -251,29 +290,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 { @@ -284,11 +323,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 @@ -297,29 +339,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 { @@ -328,6 +370,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -369,8 +411,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_); @@ -389,23 +430,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; } @@ -433,117 +470,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() @@ -551,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(); @@ -578,9 +624,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 @@ -599,7 +645,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_; @@ -613,38 +660,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; @@ -652,7 +700,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(); @@ -691,7 +740,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) { @@ -703,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; @@ -723,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 { @@ -744,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
@@ -807,6 +879,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -814,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
@@ -822,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
@@ -840,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; @@ -851,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.
@@ -860,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; @@ -875,6 +956,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -884,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 { @@ -900,6 +982,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListRoutes` call.
      * Provide this to retrieve the subsequent page.
@@ -909,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.
@@ -932,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.
@@ -950,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; @@ -967,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; @@ -987,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 { @@ -1008,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; @@ -1063,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; @@ -1083,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 { @@ -1104,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); } @@ -1168,12 +1277,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(); } @@ -1182,16 +1291,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; @@ -1206,6 +1315,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 4524e8fa..ebb391e1 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,44 +73,47 @@ 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) { throw e.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_); @@ -105,22 +125,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.
    * 
@@ -132,6 +157,8 @@ public java.util.List getRoutesList( return routes_; } /** + * + * *
    * List of Routes.
    * 
@@ -139,11 +166,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.
    * 
@@ -155,6 +184,8 @@ public int getRoutesCount() { return routes_.size(); } /** + * + * *
    * List of Routes.
    * 
@@ -166,6 +197,8 @@ public com.google.cloud.datastream.v1alpha1.Route getRoutes(int index) { return routes_.get(index); } /** + * + * *
    * List of Routes.
    * 
@@ -173,20 +206,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 @@ -195,30 +230,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 { @@ -229,34 +264,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. */ @@ -264,20 +307,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; @@ -289,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -310,8 +355,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_); @@ -332,19 +376,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; } @@ -372,117 +414,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() @@ -490,17 +542,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(); @@ -518,9 +570,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 @@ -539,7 +591,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)) { @@ -564,38 +617,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; @@ -603,7 +657,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()) { @@ -622,9 +677,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_); } @@ -663,7 +719,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) { @@ -672,21 +729,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.
      * 
@@ -701,6 +765,8 @@ public java.util.List getRoutesList( } } /** + * + * *
      * List of Routes.
      * 
@@ -715,6 +781,8 @@ public int getRoutesCount() { } } /** + * + * *
      * List of Routes.
      * 
@@ -729,14 +797,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(); @@ -750,6 +819,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -768,6 +839,8 @@ public Builder setRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -788,14 +861,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(); @@ -809,14 +883,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()); @@ -827,6 +902,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -845,6 +922,8 @@ public Builder addRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -855,8 +934,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); @@ -864,6 +942,8 @@ public Builder addAllRoutes( return this; } /** + * + * *
      * List of Routes.
      * 
@@ -881,6 +961,8 @@ public Builder clearRoutes() { return this; } /** + * + * *
      * List of Routes.
      * 
@@ -898,39 +980,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 { @@ -938,6 +1025,8 @@ public com.google.cloud.datastream.v1alpha1.RouteOrBuilder getRoutesOrBuilder( } } /** + * + * *
      * List of Routes.
      * 
@@ -945,42 +1034,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_; @@ -988,19 +1083,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; @@ -1009,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 { @@ -1031,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. */ @@ -1130,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() { @@ -1213,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); } @@ -1244,12 +1371,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(); } @@ -1258,16 +1385,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; @@ -1282,6 +1409,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 38845fd0..e54f166b 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,75 +65,86 @@ 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) { throw e.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 @@ -129,29 +153,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 { @@ -162,6 +188,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
@@ -169,6 +197,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -179,6 +208,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.
@@ -187,6 +218,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -195,14 +227,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.
@@ -211,16 +244,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 { @@ -231,11 +263,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 @@ -244,29 +279,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 { @@ -277,11 +312,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 @@ -290,29 +328,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 { @@ -321,6 +359,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,8 +371,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -362,8 +400,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_); @@ -382,23 +419,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; } @@ -426,113 +459,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() @@ -540,16 +579,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(); @@ -567,9 +605,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 @@ -588,7 +626,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_; @@ -602,38 +641,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; @@ -641,7 +681,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(); @@ -680,7 +721,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) { @@ -692,18 +734,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; @@ -712,20 +758,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 { @@ -733,61 +782,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
@@ -795,6 +859,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -802,6 +867,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Maximum number of streams to return.
      * If unspecified, at most 50 streams will  be returned. The maximum
@@ -809,16 +876,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
@@ -826,10 +896,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -837,6 +908,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -845,13 +918,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; @@ -860,6 +933,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -868,15 +943,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -884,6 +958,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Page token received from a previous `ListStreams` call.
      * Provide this to retrieve the subsequent page.
@@ -892,20 +968,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.
@@ -914,15 +992,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.
@@ -931,16 +1012,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; @@ -948,18 +1029,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; @@ -968,20 +1051,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 { @@ -989,54 +1073,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; @@ -1044,18 +1135,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; @@ -1064,20 +1157,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 { @@ -1085,61 +1179,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); } @@ -1149,12 +1250,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(); } @@ -1163,16 +1264,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; @@ -1187,6 +1288,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 9024c191..6fbdaf40 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,44 +65,47 @@ 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) { throw e.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_); @@ -101,22 +117,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
    * 
@@ -128,6 +149,8 @@ public java.util.List getStreamsLis return streams_; } /** + * + * *
    * List of streams
    * 
@@ -135,11 +158,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
    * 
@@ -151,6 +176,8 @@ public int getStreamsCount() { return streams_.size(); } /** + * + * *
    * List of streams
    * 
@@ -162,6 +189,8 @@ public com.google.cloud.datastream.v1alpha1.Stream getStreams(int index) { return streams_.get(index); } /** + * + * *
    * List of streams
    * 
@@ -169,20 +198,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 @@ -191,30 +222,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 { @@ -225,34 +256,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. */ @@ -260,20 +299,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; @@ -285,8 +327,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -306,8 +347,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_); @@ -328,19 +368,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; } @@ -368,113 +406,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() @@ -482,17 +526,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(); @@ -510,9 +554,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 @@ -531,7 +575,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)) { @@ -556,38 +601,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; @@ -595,7 +641,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()) { @@ -614,9 +661,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_); } @@ -655,7 +703,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) { @@ -664,21 +713,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
      * 
@@ -693,6 +749,8 @@ public java.util.List getStreamsLis } } /** + * + * *
      * List of streams
      * 
@@ -707,6 +765,8 @@ public int getStreamsCount() { } } /** + * + * *
      * List of streams
      * 
@@ -721,14 +781,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(); @@ -742,6 +803,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -760,6 +823,8 @@ public Builder setStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -780,14 +845,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(); @@ -801,14 +867,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()); @@ -819,6 +886,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -837,6 +906,8 @@ public Builder addStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -847,8 +918,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); @@ -856,6 +926,8 @@ public Builder addAllStreams( return this; } /** + * + * *
      * List of streams
      * 
@@ -873,6 +945,8 @@ public Builder clearStreams() { return this; } /** + * + * *
      * List of streams
      * 
@@ -890,39 +964,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 { @@ -930,6 +1009,8 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamsOrBuilder( } } /** + * + * *
      * List of streams
      * 
@@ -937,42 +1018,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_; @@ -980,19 +1067,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; @@ -1001,21 +1090,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 { @@ -1023,98 +1113,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. */ @@ -1122,80 +1229,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() { @@ -1205,28 +1322,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); } @@ -1236,12 +1355,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(); } @@ -1250,16 +1369,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; @@ -1274,6 +1393,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 9d18c4db..43c13c1c 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,84 +72,92 @@ 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) { throw e.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 @@ -141,29 +166,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 { @@ -174,12 +199,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 @@ -188,30 +216,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 { @@ -222,11 +250,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 @@ -237,11 +268,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 @@ -250,29 +284,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 { @@ -283,11 +317,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 @@ -298,11 +335,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 @@ -313,11 +353,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 @@ -326,6 +369,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -337,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(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -376,23 +419,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; @@ -402,27 +441,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; } @@ -443,11 +476,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(); @@ -455,118 +486,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() @@ -574,16 +614,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(); @@ -605,9 +644,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 @@ -626,7 +665,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_; @@ -642,38 +682,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; @@ -681,7 +722,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(); @@ -737,18 +779,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; @@ -757,20 +801,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 { @@ -778,54 +823,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; @@ -833,19 +885,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; @@ -854,21 +908,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 { @@ -876,69 +931,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 @@ -946,30 +1011,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; @@ -977,18 +1048,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; @@ -997,20 +1070,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 { @@ -1018,66 +1092,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 @@ -1085,42 +1169,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 @@ -1128,42 +1221,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 @@ -1171,37 +1273,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); } @@ -1211,12 +1319,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(); } @@ -1225,16 +1333,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; @@ -1249,6 +1357,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 c83fb4ea..934603c3 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,27 +112,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 @@ -121,29 +147,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 { @@ -154,6 +180,8 @@ public java.lang.String getDatabaseName() { public static final int MYSQL_TABLES_FIELD_NUMBER = 2; private java.util.List mysqlTables_; /** + * + * *
    * Tables in the database.
    * 
@@ -165,6 +193,8 @@ public java.util.List getMysqlT return mysqlTables_; } /** + * + * *
    * Tables in the database.
    * 
@@ -172,11 +202,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.
    * 
@@ -188,6 +220,8 @@ public int getMysqlTablesCount() { return mysqlTables_.size(); } /** + * + * *
    * Tables in the database.
    * 
@@ -199,6 +233,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) return mysqlTables_.get(index); } /** + * + * *
    * Tables in the database.
    * 
@@ -212,6 +248,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,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(databaseName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, databaseName_); } @@ -244,8 +280,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; @@ -255,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.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; } @@ -289,117 +323,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() @@ -407,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(); @@ -433,9 +476,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 @@ -454,7 +497,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) { @@ -474,38 +518,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; @@ -513,7 +558,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(); @@ -536,9 +582,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_); } @@ -563,7 +610,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) { @@ -572,22 +620,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; @@ -596,20 +647,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 { @@ -617,72 +669,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.
      * 
@@ -697,6 +763,8 @@ public java.util.List getMysqlT } } /** + * + * *
      * Tables in the database.
      * 
@@ -711,6 +779,8 @@ public int getMysqlTablesCount() { } } /** + * + * *
      * Tables in the database.
      * 
@@ -725,6 +795,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable getMysqlTables(int index) } } /** + * + * *
      * Tables in the database.
      * 
@@ -746,6 +818,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -764,6 +838,8 @@ public Builder setMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -784,6 +860,8 @@ public Builder addMysqlTables(com.google.cloud.datastream.v1alpha1.MysqlTable va return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -805,6 +883,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -823,6 +903,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -841,6 +923,8 @@ public Builder addMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -851,8 +935,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); @@ -860,6 +943,8 @@ public Builder addAllMysqlTables( return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -877,6 +962,8 @@ public Builder clearMysqlTables() { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -894,6 +981,8 @@ public Builder removeMysqlTables(int index) { return this; } /** + * + * *
      * Tables in the database.
      * 
@@ -905,6 +994,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTable.Builder getMysqlTablesBui return getMysqlTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the database.
      * 
@@ -914,19 +1005,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 { @@ -934,6 +1028,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlTableOrBuilder getMysqlTablesOr } } /** + * + * *
      * Tables in the database.
      * 
@@ -941,10 +1037,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.
      * 
@@ -953,37 +1051,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); } @@ -993,12 +1096,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(); } @@ -1007,16 +1110,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; @@ -1031,6 +1134,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 f73b048a..ecd518d5 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,82 +72,94 @@ 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) { throw e.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 @@ -139,29 +168,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 { @@ -172,11 +201,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 @@ -187,11 +219,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 @@ -200,29 +235,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 { @@ -233,11 +268,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 @@ -246,29 +286,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 { @@ -279,11 +321,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 @@ -291,18 +336,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.
    * 
@@ -315,6 +367,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlSslConfigOrBuilder getSslConfig } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -326,8 +379,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -356,8 +408,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_); @@ -366,8 +417,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; @@ -377,25 +427,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; @@ -426,117 +472,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() @@ -544,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(); @@ -575,9 +629,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 @@ -596,7 +650,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_; @@ -614,38 +669,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; @@ -653,7 +709,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(); @@ -691,7 +748,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) { @@ -703,18 +761,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; @@ -723,20 +783,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 { @@ -744,66 +805,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 @@ -811,30 +882,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; @@ -842,18 +919,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; @@ -862,20 +941,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 { @@ -883,54 +963,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; @@ -938,18 +1025,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; @@ -958,20 +1049,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 { @@ -979,54 +1073,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; @@ -1034,34 +1141,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.
      * 
@@ -1082,6 +1202,8 @@ public Builder setSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfig return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1100,6 +1222,8 @@ public Builder setSslConfig( return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1110,7 +1234,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; } @@ -1122,6 +1248,8 @@ public Builder mergeSslConfig(com.google.cloud.datastream.v1alpha1.MysqlSslConfi return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1140,6 +1268,8 @@ public Builder clearSslConfig() { return this; } /** + * + * *
      * SSL configuration for the MySQL connection.
      * 
@@ -1147,11 +1277,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.
      * 
@@ -1162,11 +1294,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.
      * 
@@ -1174,21 +1309,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); } @@ -1198,12 +1336,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(); } @@ -1212,16 +1350,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; @@ -1236,6 +1374,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 b71429c0..27c492ed 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,29 +71,32 @@ 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) { throw e.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_); @@ -85,22 +105,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
    * 
@@ -108,10 +133,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
    * 
@@ -119,11 +147,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
    * 
@@ -135,6 +165,8 @@ public int getMysqlDatabasesCount() { return mysqlDatabases_.size(); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -146,6 +178,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int return mysqlDatabases_.get(index); } /** + * + * *
    * Mysql databases on the server
    * 
@@ -159,6 +193,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,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)); } @@ -185,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; @@ -196,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.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; } @@ -225,118 +258,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() @@ -344,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(); @@ -368,9 +410,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 @@ -389,7 +431,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)) { @@ -408,38 +451,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; @@ -447,7 +491,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()) { @@ -466,9 +511,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_); } @@ -502,28 +548,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 { @@ -531,6 +587,8 @@ public java.util.List getMys } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -545,6 +603,8 @@ public int getMysqlDatabasesCount() { } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -559,6 +619,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase getMysqlDatabases(int } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -580,6 +642,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -598,6 +662,8 @@ public Builder setMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -618,6 +684,8 @@ public Builder addMysqlDatabases(com.google.cloud.datastream.v1alpha1.MysqlDatab return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -639,6 +707,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -657,6 +727,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -675,6 +747,8 @@ public Builder addMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -685,8 +759,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); @@ -694,6 +767,8 @@ public Builder addAllMysqlDatabases( return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -711,6 +786,8 @@ public Builder clearMysqlDatabases() { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -728,6 +805,8 @@ public Builder removeMysqlDatabases(int index) { return this; } /** + * + * *
      * Mysql databases on the server
      * 
@@ -739,6 +818,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabase.Builder getMysqlDataba return getMysqlDatabasesFieldBuilder().getBuilder(index); } /** + * + * *
      * Mysql databases on the server
      * 
@@ -748,19 +829,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 { @@ -768,6 +852,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlDatabaseOrBuilder getMysqlDatab } } /** + * + * *
      * Mysql databases on the server
      * 
@@ -775,10 +861,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
      * 
@@ -787,26 +875,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(), @@ -815,9 +912,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); } @@ -827,12 +924,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(); } @@ -841,16 +938,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; @@ -865,6 +962,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 2500af1c..0d345b98 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,72 +68,83 @@ 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) { throw e.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 @@ -125,18 +152,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.
    * 
@@ -151,11 +185,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 @@ -163,18 +200,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.
    * 
@@ -187,6 +231,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getRejectlistOrB } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -216,12 +260,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; @@ -231,22 +273,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; @@ -273,117 +314,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() @@ -391,16 +442,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(); @@ -420,9 +470,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 @@ -441,7 +491,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 { @@ -460,38 +511,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; @@ -499,7 +551,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()); } @@ -525,7 +578,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) { @@ -537,34 +591,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.
      * 
@@ -585,6 +652,8 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms valu return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -603,6 +672,8 @@ public Builder setAllowlist( return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -613,7 +684,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; } @@ -625,6 +698,8 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms va return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -643,6 +718,8 @@ public Builder clearAllowlist() { return this; } /** + * + * *
      * MySQL objects to retrieve from the source.
      * 
@@ -650,11 +727,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.
      * 
@@ -665,11 +744,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.
      * 
@@ -677,14 +759,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_; @@ -692,34 +777,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.
      * 
@@ -740,6 +838,8 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms val return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -758,6 +858,8 @@ public Builder setRejectlist( return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -768,7 +870,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; } @@ -780,6 +884,8 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.MysqlRdbms v return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -798,6 +904,8 @@ public Builder clearRejectlist() { return this; } /** + * + * *
      * MySQL objects to exclude from the stream.
      * 
@@ -805,11 +913,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.
      * 
@@ -820,11 +930,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.
      * 
@@ -832,21 +945,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); } @@ -856,12 +972,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(); } @@ -870,16 +986,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; @@ -894,6 +1010,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 9f15e5d4..749825ae 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,74 +72,81 @@ 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) { throw e.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
@@ -130,6 +154,7 @@ private MysqlSslConfig(
    * 
* * string client_key = 11 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientKey. */ @java.lang.Override @@ -138,14 +163,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
@@ -153,16 +179,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 { @@ -173,11 +198,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 @@ -188,6 +216,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
@@ -195,6 +225,7 @@ public boolean getClientKeySet() {
    * 
* * string client_certificate = 13 [(.google.api.field_behavior) = INPUT_ONLY]; + * * @return The clientCertificate. */ @java.lang.Override @@ -203,14 +234,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
@@ -218,16 +250,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 { @@ -238,11 +269,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 @@ -253,12 +287,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 @@ -267,30 +304,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 { @@ -301,11 +338,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 @@ -314,6 +354,7 @@ public boolean getCaCertificateSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -325,8 +366,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -358,22 +398,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; @@ -383,25 +420,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; } @@ -416,135 +448,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() @@ -552,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(); @@ -581,9 +618,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 @@ -602,7 +639,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_; @@ -617,38 +655,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; @@ -656,7 +695,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(); @@ -697,7 +737,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) { @@ -709,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
@@ -716,13 +759,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; @@ -731,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
@@ -738,15 +783,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 { @@ -754,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
@@ -761,20 +807,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
@@ -782,15 +830,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
@@ -798,28 +849,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 @@ -827,30 +881,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; @@ -858,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
@@ -865,13 +927,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; @@ -880,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
@@ -887,15 +951,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 { @@ -903,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
@@ -910,20 +975,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
@@ -931,15 +998,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
@@ -947,28 +1017,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 @@ -976,30 +1049,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; @@ -1007,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 = 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; @@ -1028,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 = 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 { @@ -1050,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 = 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 @@ -1120,37 +1212,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); } @@ -1160,12 +1258,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(); } @@ -1174,16 +1272,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; @@ -1198,6 +1296,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 1f4215e7..a9cfa958 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,35 +72,39 @@ 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) { throw e.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_); @@ -92,27 +113,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 @@ -121,29 +148,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 { @@ -154,6 +181,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
@@ -167,6 +196,8 @@ public java.util.List getMysql
     return mysqlColumns_;
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -176,11 +207,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
@@ -194,6 +227,8 @@ public int getMysqlColumnsCount() {
     return mysqlColumns_.size();
   }
   /**
+   *
+   *
    * 
    * MySQL columns in the database.
    * When unspecified as part of include/exclude lists, includes/excludes
@@ -207,6 +242,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
@@ -222,6 +259,7 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -233,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(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -254,8 +291,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;
@@ -265,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.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;
   }
@@ -298,118 +333,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() @@ -417,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(); @@ -443,9 +487,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 @@ -464,7 +508,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) { @@ -484,38 +529,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; @@ -523,7 +569,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(); @@ -546,9 +593,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_); } @@ -582,22 +630,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; @@ -606,20 +657,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 { @@ -627,72 +679,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
@@ -709,6 +776,8 @@ public java.util.List getMysql
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -725,6 +794,8 @@ public int getMysqlColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -741,6 +812,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
@@ -764,6 +837,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -784,6 +859,8 @@ public Builder setMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -806,6 +883,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
@@ -829,6 +908,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -849,6 +930,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -869,6 +952,8 @@ public Builder addMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -881,8 +966,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);
@@ -890,6 +974,8 @@ public Builder addAllMysqlColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -909,6 +995,8 @@ public Builder clearMysqlColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -928,6 +1016,8 @@ public Builder removeMysqlColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -941,6 +1031,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
@@ -952,11 +1044,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
@@ -965,8 +1060,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 {
@@ -974,6 +1069,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlColumnOrBuilder getMysqlColumns
       }
     }
     /**
+     *
+     *
      * 
      * MySQL columns in the database.
      * When unspecified as part of include/exclude lists, includes/excludes
@@ -983,10 +1080,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
@@ -997,10 +1096,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
@@ -1009,27 +1110,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);
     }
 
@@ -1039,12 +1143,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();
   }
@@ -1053,16 +1157,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;
@@ -1077,6 +1181,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 66%
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 2dc306e2..a21dc3e0 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,39 +68,42 @@ 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) { throw e.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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -115,12 +133,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; @@ -139,117 +158,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() @@ -257,16 +286,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(); @@ -274,9 +302,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 @@ -295,7 +323,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; } @@ -304,38 +333,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; @@ -343,7 +373,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; @@ -363,7 +394,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) { @@ -372,9 +404,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); } @@ -384,12 +416,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(); } @@ -398,16 +430,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; @@ -422,6 +454,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 80075932..3da720c7 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,114 +73,132 @@ 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) { throw e.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 @@ -171,11 +206,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 @@ -183,11 +222,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() { @@ -197,11 +239,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 @@ -209,11 +255,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 @@ -221,11 +271,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() { @@ -235,11 +288,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 @@ -248,29 +304,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 { @@ -281,11 +337,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 @@ -294,29 +353,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 { @@ -327,11 +386,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 @@ -340,29 +402,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 { @@ -373,6 +435,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
@@ -381,6 +445,7 @@ public java.lang.String getStatusMessage() {
    * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -391,11 +456,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 @@ -404,29 +472,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 { @@ -437,11 +505,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 @@ -449,30 +522,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; @@ -484,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()); } @@ -520,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_); @@ -537,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; @@ -555,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.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; @@ -613,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()) { @@ -627,117 +700,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() @@ -745,16 +828,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(); @@ -790,9 +872,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 @@ -811,7 +893,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 { @@ -840,38 +923,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; @@ -879,7 +963,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()); } @@ -927,7 +1012,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) { @@ -939,39 +1025,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) { @@ -987,14 +1092,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(); @@ -1005,17 +1113,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; } @@ -1027,11 +1139,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) { @@ -1045,48 +1161,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_; @@ -1094,24 +1226,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() { @@ -1122,11 +1265,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) { @@ -1142,14 +1288,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(); @@ -1160,17 +1308,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; } @@ -1182,11 +1333,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) { @@ -1200,48 +1354,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_; @@ -1249,18 +1414,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; @@ -1269,20 +1436,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 { @@ -1290,54 +1458,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; @@ -1345,18 +1520,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; @@ -1365,20 +1542,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 { @@ -1386,54 +1564,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; @@ -1441,18 +1626,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; @@ -1461,20 +1648,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 { @@ -1482,61 +1670,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
@@ -1545,6 +1742,7 @@ public Builder setStatusMessageBytes(
      * 
* * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The requestedCancellation. */ @java.lang.Override @@ -1552,6 +1750,8 @@ public boolean getRequestedCancellation() { return requestedCancellation_; } /** + * + * *
      * Output only. Identifies whether the user has requested cancellation
      * of the operation. Operations that have successfully been cancelled
@@ -1560,16 +1760,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
@@ -1578,10 +1781,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; @@ -1589,18 +1793,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; @@ -1609,20 +1815,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 { @@ -1630,54 +1837,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; @@ -1685,41 +1899,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(); @@ -1733,11 +1967,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) { @@ -1751,17 +1989,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; } @@ -1773,11 +2018,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) { @@ -1791,55 +2040,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); } @@ -1849,12 +2116,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(); } @@ -1863,16 +2130,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; @@ -1887,6 +2154,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 72% 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 08d56a29..b675565f 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,94 +72,102 @@ 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) { throw e.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 @@ -151,29 +176,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 { @@ -184,11 +209,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 @@ -197,29 +225,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 { @@ -230,11 +258,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 @@ -245,11 +276,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 @@ -260,11 +294,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 @@ -275,11 +312,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 @@ -288,29 +328,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 { @@ -321,11 +361,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 @@ -336,11 +379,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 @@ -351,11 +397,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 @@ -364,6 +413,7 @@ public int getOrdinalPosition() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,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(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } @@ -420,31 +469,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; @@ -454,31 +497,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; } @@ -503,11 +538,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(); @@ -516,117 +549,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() @@ -634,16 +676,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(); @@ -669,9 +710,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 @@ -690,7 +731,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_; @@ -708,38 +750,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; @@ -747,7 +790,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(); @@ -797,7 +841,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) { @@ -809,18 +854,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; @@ -829,20 +876,21 @@ public java.lang.String getColumnName() { } } /** + * + * *
      * Column name.
      * 
* * string column_name = 1; + * * @return The bytes for columnName. */ - public com.google.protobuf.ByteString - getColumnNameBytes() { + public com.google.protobuf.ByteString getColumnNameBytes() { java.lang.Object ref = columnName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); columnName_ = b; return b; } else { @@ -850,54 +898,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; @@ -905,18 +960,20 @@ public Builder setColumnNameBytes( private java.lang.Object dataType_ = ""; /** + * + * *
      * The Oracle data type.
      * 
* * string data_type = 2; + * * @return The dataType. */ public java.lang.String getDataType() { java.lang.Object ref = dataType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataType_ = s; return s; @@ -925,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 { @@ -946,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 @@ -1013,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 @@ -1056,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 @@ -1099,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; @@ -1130,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; @@ -1150,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 { @@ -1171,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 @@ -1238,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 @@ -1281,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 @@ -1324,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); } @@ -1364,12 +1493,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(); } @@ -1378,16 +1507,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; @@ -1402,6 +1531,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 aee74c34..6fb7902e 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,100 +74,113 @@ 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) { throw e.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 @@ -159,29 +189,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 { @@ -192,11 +222,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 @@ -207,11 +240,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 @@ -220,29 +256,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 { @@ -253,11 +289,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 @@ -266,29 +305,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 { @@ -299,11 +338,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 @@ -312,29 +354,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 { @@ -343,21 +385,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); @@ -369,28 +412,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 java.lang.NullPointerException(); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
    * 
@@ -398,11 +443,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
    * 
@@ -410,16 +456,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 java.lang.NullPointerException(); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Connection string attributes
    * 
@@ -427,10 +475,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 java.lang.NullPointerException(); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -440,6 +488,7 @@ public java.lang.String getConnectionAttributesOrThrow( } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -451,8 +500,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -468,8 +516,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, @@ -487,8 +534,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_); @@ -499,15 +545,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; @@ -517,25 +563,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; } @@ -567,139 +609,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() @@ -707,16 +756,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(); @@ -735,9 +783,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 @@ -756,7 +804,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_; @@ -773,38 +822,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; @@ -812,7 +862,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(); @@ -832,8 +883,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; @@ -853,7 +903,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) { @@ -862,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; @@ -886,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 { @@ -907,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 @@ -974,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; @@ -1005,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; @@ -1025,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 { @@ -1046,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; @@ -1101,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; @@ -1121,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 { @@ -1142,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; @@ -1197,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; @@ -1217,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 { @@ -1238,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(); @@ -1318,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 java.lang.NullPointerException(); } + public boolean containsConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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
      * 
@@ -1347,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
      * 
@@ -1359,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 java.lang.NullPointerException(); } + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Connection string attributes
      * 
@@ -1376,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 java.lang.NullPointerException(); } + public java.lang.String getConnectionAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } java.util.Map map = internalGetConnectionAttributes().getMap(); if (!map.containsKey(key)) { @@ -1389,66 +1498,66 @@ 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 java.lang.NullPointerException(); } - internalGetMutableConnectionAttributes().getMutableMap() - .remove(key); + public Builder removeConnectionAttributes(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConnectionAttributes().getMutableMap() - .put(key, value); + public Builder putConnectionAttributes(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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); } @@ -1458,12 +1567,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(); } @@ -1472,16 +1581,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; @@ -1496,6 +1605,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 68% 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 464b99f9..1a207bfd 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,48 +147,47 @@ 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
    * 
* * map<string, string> connection_attributes = 6; */ - java.lang.String getConnectionAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String key, 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 8884b8e9..a9e4f522 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,29 +71,32 @@ 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) { throw e.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_); @@ -85,22 +105,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.
    * 
@@ -112,6 +137,8 @@ public java.util.List getOrac return oracleSchemas_; } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -119,11 +146,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.
    * 
@@ -135,6 +164,8 @@ public int getOracleSchemasCount() { return oracleSchemas_.size(); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -146,6 +177,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in return oracleSchemas_.get(index); } /** + * + * *
    * Oracle schemas/databases in the database server.
    * 
@@ -159,6 +192,7 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -170,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)); } @@ -185,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; @@ -196,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.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; } @@ -225,118 +257,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() @@ -344,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(); @@ -368,9 +409,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 @@ -389,7 +430,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)) { @@ -408,38 +450,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; @@ -447,7 +490,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()) { @@ -466,9 +510,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_); } @@ -502,28 +547,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 { @@ -531,6 +586,8 @@ public java.util.List getOrac } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -545,6 +602,8 @@ public int getOracleSchemasCount() { } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -559,6 +618,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema getOracleSchemas(int in } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -580,6 +641,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -598,6 +661,8 @@ public Builder setOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -618,6 +683,8 @@ public Builder addOracleSchemas(com.google.cloud.datastream.v1alpha1.OracleSchem return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -639,6 +706,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -657,6 +726,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -675,6 +746,8 @@ public Builder addOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -685,8 +758,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); @@ -694,6 +766,8 @@ public Builder addAllOracleSchemas( return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -711,6 +785,8 @@ public Builder clearOracleSchemas() { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -728,6 +804,8 @@ public Builder removeOracleSchemas(int index) { return this; } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -739,6 +817,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchema.Builder getOracleSchema return getOracleSchemasFieldBuilder().getBuilder(index); } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -748,19 +828,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 { @@ -768,6 +851,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSchemaOrBuilder getOracleSchem } } /** + * + * *
      * Oracle schemas/databases in the database server.
      * 
@@ -775,10 +860,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.
      * 
@@ -787,26 +874,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(), @@ -815,9 +911,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); } @@ -827,12 +923,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(); } @@ -841,16 +937,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; @@ -865,6 +961,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 dbceebba..66de52ae 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,35 +72,39 @@ 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) { throw e.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_); @@ -92,27 +113,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 @@ -121,29 +148,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 { @@ -154,6 +181,8 @@ public java.lang.String getSchemaName() { public static final int ORACLE_TABLES_FIELD_NUMBER = 2; private java.util.List oracleTables_; /** + * + * *
    * Tables in the schema.
    * 
@@ -165,6 +194,8 @@ public java.util.List getOracl return oracleTables_; } /** + * + * *
    * Tables in the schema.
    * 
@@ -172,11 +203,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.
    * 
@@ -188,6 +221,8 @@ public int getOracleTablesCount() { return oracleTables_.size(); } /** + * + * *
    * Tables in the schema.
    * 
@@ -199,6 +234,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde return oracleTables_.get(index); } /** + * + * *
    * Tables in the schema.
    * 
@@ -212,6 +249,7 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,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(schemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); } @@ -244,8 +281,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; @@ -255,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.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; } @@ -289,117 +324,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() @@ -407,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(); @@ -433,9 +477,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 @@ -454,7 +498,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) { @@ -474,38 +519,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; @@ -513,7 +559,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(); @@ -536,9 +583,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_); } @@ -563,7 +611,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) { @@ -572,22 +621,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; @@ -596,20 +648,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 { @@ -617,72 +670,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.
      * 
@@ -697,6 +765,8 @@ public java.util.List getOracl } } /** + * + * *
      * Tables in the schema.
      * 
@@ -711,6 +781,8 @@ public int getOracleTablesCount() { } } /** + * + * *
      * Tables in the schema.
      * 
@@ -725,6 +797,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable getOracleTables(int inde } } /** + * + * *
      * Tables in the schema.
      * 
@@ -746,6 +820,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -764,6 +840,8 @@ public Builder setOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -784,6 +862,8 @@ public Builder addOracleTables(com.google.cloud.datastream.v1alpha1.OracleTable return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -805,6 +885,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -823,6 +905,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -841,6 +925,8 @@ public Builder addOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -851,8 +937,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); @@ -860,6 +945,8 @@ public Builder addAllOracleTables( return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -877,6 +964,8 @@ public Builder clearOracleTables() { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -894,6 +983,8 @@ public Builder removeOracleTables(int index) { return this; } /** + * + * *
      * Tables in the schema.
      * 
@@ -905,6 +996,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTable.Builder getOracleTablesB return getOracleTablesFieldBuilder().getBuilder(index); } /** + * + * *
      * Tables in the schema.
      * 
@@ -914,19 +1007,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 { @@ -934,6 +1030,8 @@ public com.google.cloud.datastream.v1alpha1.OracleTableOrBuilder getOracleTables } } /** + * + * *
      * Tables in the schema.
      * 
@@ -941,10 +1039,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.
      * 
@@ -953,37 +1053,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); } @@ -993,12 +1098,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(); } @@ -1007,16 +1112,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; @@ -1031,6 +1136,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 ead90b1f..f24cf7fb 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,72 +68,83 @@ 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) { throw e.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 @@ -125,18 +152,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.
    * 
@@ -151,11 +185,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 @@ -163,18 +200,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.
    * 
@@ -187,6 +231,7 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getRejectlistOr } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -198,8 +243,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -216,12 +260,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; @@ -231,22 +273,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; @@ -273,117 +314,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() @@ -391,16 +442,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(); @@ -420,9 +470,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 @@ -441,7 +491,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 { @@ -460,38 +511,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; @@ -499,7 +551,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()); } @@ -525,7 +578,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) { @@ -537,34 +591,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.
      * 
@@ -585,6 +652,8 @@ public Builder setAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms val return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -603,6 +672,8 @@ public Builder setAllowlist( return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -613,7 +684,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; } @@ -625,6 +698,8 @@ public Builder mergeAllowlist(com.google.cloud.datastream.v1alpha1.OracleRdbms v return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -643,6 +718,8 @@ public Builder clearAllowlist() { return this; } /** + * + * *
      * Oracle objects to include in the stream.
      * 
@@ -650,11 +727,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.
      * 
@@ -665,11 +744,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.
      * 
@@ -677,14 +759,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_; @@ -692,34 +777,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.
      * 
@@ -740,6 +838,8 @@ public Builder setRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms va return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -758,6 +858,8 @@ public Builder setRejectlist( return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -768,7 +870,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; } @@ -780,6 +884,8 @@ public Builder mergeRejectlist(com.google.cloud.datastream.v1alpha1.OracleRdbms return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -798,6 +904,8 @@ public Builder clearRejectlist() { return this; } /** + * + * *
      * Oracle objects to exclude from the stream.
      * 
@@ -805,11 +913,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.
      * 
@@ -820,11 +930,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.
      * 
@@ -832,21 +945,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); } @@ -856,12 +972,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(); } @@ -870,16 +986,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; @@ -894,6 +1010,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 a1474415..baf7109c 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,35 +72,39 @@ 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) { throw e.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_); @@ -92,27 +113,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 @@ -121,29 +148,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 { @@ -154,6 +181,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
@@ -167,6 +196,8 @@ public java.util.List getOrac
     return oracleColumns_;
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -176,11 +207,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
@@ -194,6 +227,8 @@ public int getOracleColumnsCount() {
     return oracleColumns_.size();
   }
   /**
+   *
+   *
    * 
    * Oracle columns in the schema.
    * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -207,6 +242,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
@@ -222,6 +259,7 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -233,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(tableName_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tableName_);
     }
@@ -254,8 +291,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;
@@ -265,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.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;
   }
@@ -298,118 +333,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() @@ -417,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(); @@ -443,9 +487,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 @@ -464,7 +508,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) { @@ -484,38 +529,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; @@ -523,7 +569,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(); @@ -546,9 +593,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_); } @@ -582,22 +630,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; @@ -606,20 +657,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 { @@ -627,72 +679,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
@@ -701,7 +768,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 {
@@ -709,6 +777,8 @@ public java.util.List getOrac
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -725,6 +795,8 @@ public int getOracleColumnsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -741,6 +813,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
@@ -764,6 +838,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -784,6 +860,8 @@ public Builder setOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -806,6 +884,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
@@ -829,6 +909,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -849,6 +931,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -869,6 +953,8 @@ public Builder addOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -881,8 +967,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);
@@ -890,6 +975,8 @@ public Builder addAllOracleColumns(
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -909,6 +996,8 @@ public Builder clearOracleColumns() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -928,6 +1017,8 @@ public Builder removeOracleColumns(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -941,6 +1032,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
@@ -952,11 +1045,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
@@ -965,8 +1061,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 {
@@ -974,6 +1070,8 @@ public com.google.cloud.datastream.v1alpha1.OracleColumnOrBuilder getOracleColum
       }
     }
     /**
+     *
+     *
      * 
      * Oracle columns in the schema.
      * When unspecified as part of inclue/exclude lists, includes/excludes
@@ -983,10 +1081,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
@@ -997,10 +1097,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
@@ -1009,16 +1112,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(),
@@ -1027,9 +1136,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);
     }
 
@@ -1039,12 +1148,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();
   }
@@ -1053,16 +1162,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;
@@ -1077,6 +1186,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 60331095..e19e3423 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,147 +74,163 @@ 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) {
       throw e.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.
      * 
@@ -206,6 +239,8 @@ public enum State */ CREATING(1), /** + * + * *
      * The private connection has been created with all of it's resources.
      * 
@@ -214,6 +249,8 @@ public enum State */ CREATED(2), /** + * + * *
      * The private connection creation has failed.
      * 
@@ -224,11 +261,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.
      * 
@@ -237,6 +274,8 @@ public enum State */ public static final int CREATING_VALUE = 1; /** + * + * *
      * The private connection has been created with all of it's resources.
      * 
@@ -245,6 +284,8 @@ public enum State */ public static final int CREATED_VALUE = 2; /** + * + * *
      * The private connection creation has failed.
      * 
@@ -253,7 +294,6 @@ public enum State */ public static final int FAILED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -278,50 +318,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; @@ -341,11 +384,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 @@ -354,29 +400,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 { @@ -387,11 +433,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 @@ -399,11 +449,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 @@ -411,11 +465,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() { @@ -425,11 +482,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 @@ -437,11 +498,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 @@ -449,11 +514,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() { @@ -461,24 +529,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_; } @@ -487,28 +554,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -516,11 +585,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -528,16 +598,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -545,12 +615,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -560,11 +629,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 @@ -573,29 +645,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 { @@ -606,38 +678,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 @@ -645,23 +737,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() { @@ -671,11 +774,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 @@ -683,18 +789,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
    * 
@@ -702,11 +815,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; @@ -718,8 +833,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -729,16 +843,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) { @@ -760,37 +872,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; @@ -800,39 +909,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; @@ -877,96 +980,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.
@@ -974,43 +1085,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()
@@ -1018,16 +1129,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();
@@ -1066,9 +1176,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
@@ -1087,7 +1197,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) {
@@ -1122,38 +1233,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;
@@ -1161,7 +1273,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();
@@ -1172,8 +1285,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();
@@ -1206,7 +1318,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) {
@@ -1215,22 +1328,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; @@ -1239,20 +1355,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 { @@ -1260,54 +1377,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; @@ -1315,39 +1439,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) { @@ -1363,14 +1506,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(); @@ -1381,17 +1527,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; } @@ -1403,11 +1553,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) { @@ -1421,48 +1575,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_; @@ -1470,39 +1640,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) { @@ -1518,14 +1707,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(); @@ -1536,17 +1728,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; } @@ -1558,11 +1754,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) { @@ -1576,69 +1776,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(); @@ -1650,28 +1865,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1679,11 +1896,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1691,16 +1909,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1708,12 +1927,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1721,78 +1939,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -1801,20 +2020,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 { @@ -1822,54 +2042,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; @@ -1877,51 +2104,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. */ @@ -1929,21 +2180,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; @@ -1951,39 +2207,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) { @@ -1999,14 +2274,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(); @@ -2017,17 +2295,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; } @@ -2039,11 +2323,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) { @@ -2057,48 +2345,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_; @@ -2106,41 +2410,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(); @@ -2154,6 +2472,8 @@ public Builder setVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPeeri return this; } /** + * + * *
      * VPC Peering Config
      * 
@@ -2172,17 +2492,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; } @@ -2194,6 +2519,8 @@ public Builder mergeVpcPeeringConfig(com.google.cloud.datastream.v1alpha1.VpcPee return this; } /** + * + * *
      * VPC Peering Config
      * 
@@ -2212,33 +2539,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
      * 
@@ -2246,21 +2582,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); } @@ -2270,12 +2609,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(); } @@ -2284,16 +2623,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; @@ -2308,6 +2647,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 472f75fc..ceffcbba 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,136 +135,171 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, 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 5896395b..de9d53cd 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,48 +70,52 @@ 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) { throw e.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 @@ -103,8 +124,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; @@ -112,16 +132,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 { @@ -130,6 +149,7 @@ public java.lang.String getPrivateConnectionName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -141,8 +161,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -166,15 +185,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; } @@ -194,117 +213,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() @@ -312,16 +341,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(); @@ -331,9 +359,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 @@ -352,7 +380,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; @@ -362,38 +391,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; @@ -401,7 +431,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(); @@ -425,7 +456,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) { @@ -438,13 +470,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; @@ -454,15 +486,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 { @@ -471,48 +502,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); } @@ -522,12 +554,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(); } @@ -536,16 +568,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; @@ -560,6 +592,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 8733f89a..53d8c764 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,120 +74,131 @@ 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) {
       throw e.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 @@ -179,29 +207,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. The resource's name.
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -212,11 +240,15 @@ public java.lang.String getName() { public static final int CREATE_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -224,11 +256,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -236,11 +272,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. The create time of the resource.
    * 
* - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -250,11 +289,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -262,11 +305,15 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The updateTime. */ @java.lang.Override @@ -274,11 +321,14 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. The update time of the resource.
    * 
* - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -286,24 +336,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_; } @@ -312,28 +361,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -341,11 +392,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -353,16 +405,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -370,12 +422,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -385,11 +436,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 @@ -398,29 +452,29 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -431,11 +485,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 @@ -444,29 +501,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 { @@ -477,11 +534,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 @@ -490,6 +550,7 @@ public int getDestinationPort() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -501,8 +562,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -512,12 +572,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_); } @@ -540,22 +596,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_); @@ -564,8 +618,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; @@ -575,33 +628,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; } @@ -638,97 +685,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.
@@ -736,43 +790,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()
@@ -780,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();
@@ -818,9 +871,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
@@ -839,7 +892,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) {
@@ -865,38 +919,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;
@@ -915,8 +970,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();
@@ -956,22 +1010,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; @@ -980,20 +1037,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 { @@ -1001,54 +1059,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; @@ -1056,39 +1121,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) { @@ -1104,14 +1188,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(); @@ -1122,17 +1209,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; } @@ -1144,11 +1235,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) { @@ -1162,48 +1257,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_; @@ -1211,39 +1322,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) { @@ -1259,14 +1389,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(); @@ -1277,17 +1410,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; } @@ -1299,11 +1436,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) { @@ -1317,69 +1458,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(); @@ -1391,28 +1547,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1420,11 +1578,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -1432,16 +1591,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -1449,12 +1609,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1462,78 +1621,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -1542,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 { @@ -1563,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; @@ -1618,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; @@ -1638,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 { @@ -1659,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 @@ -1726,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); } @@ -1766,12 +1953,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(); } @@ -1780,16 +1967,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; @@ -1804,6 +1991,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 68% 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 e3d175fe..adab9b15 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,97 +135,108 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, 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 36cfc280..9fa9bda7 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,81 +70,99 @@ 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) { throw e.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; } @@ -143,31 +178,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 @@ -176,29 +218,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 { @@ -208,11 +251,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 @@ -220,21 +266,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
    * 
@@ -242,20 +293,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 @@ -263,21 +318,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
    * 
@@ -285,14 +345,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; @@ -304,16 +366,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); } @@ -325,15 +388,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; @@ -343,24 +409,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: @@ -396,117 +461,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() @@ -514,16 +588,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(); @@ -535,9 +608,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 @@ -556,7 +629,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) { @@ -581,38 +655,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; @@ -620,23 +695,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(); @@ -657,7 +736,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) { @@ -666,12 +746,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() { @@ -681,21 +761,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; @@ -704,20 +786,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 { @@ -725,67 +809,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 @@ -793,11 +893,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 @@ -815,13 +918,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(); @@ -835,6 +941,8 @@ public Builder setOracleSourceConfig(com.google.cloud.datastream.v1alpha1.Oracle return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -853,18 +961,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; } @@ -879,6 +994,8 @@ public Builder mergeOracleSourceConfig(com.google.cloud.datastream.v1alpha1.Orac return this; } /** + * + * *
      * Oracle data source configuration
      * 
@@ -902,16 +1019,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
      * 
@@ -919,7 +1041,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 { @@ -930,6 +1053,8 @@ public com.google.cloud.datastream.v1alpha1.OracleSourceConfigOrBuilder getOracl } } /** + * + * *
      * Oracle data source configuration
      * 
@@ -937,32 +1062,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 @@ -970,11 +1108,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 @@ -992,13 +1133,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(); @@ -1012,6 +1156,8 @@ public Builder setMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.MysqlSo return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1030,18 +1176,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; } @@ -1056,6 +1209,8 @@ public Builder mergeMysqlSourceConfig(com.google.cloud.datastream.v1alpha1.Mysql return this; } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1079,16 +1234,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
      * 
@@ -1096,7 +1256,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 { @@ -1107,6 +1268,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlSourceConfigOrBuilder getMysqlS } } /** + * + * *
      * MySQL data source configuration
      * 
@@ -1114,26 +1277,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); } @@ -1143,12 +1313,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(); } @@ -1157,16 +1327,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; @@ -1181,6 +1351,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 63% 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 4db31763..63402e9e 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,39 +68,42 @@ 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) { throw e.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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -115,12 +133,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; @@ -139,117 +158,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() @@ -257,16 +286,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(); @@ -274,13 +302,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(); } @@ -295,7 +324,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; } @@ -304,46 +334,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; @@ -363,7 +397,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) { @@ -372,9 +408,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); } @@ -384,30 +420,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; @@ -419,9 +457,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 7d3e151d..caf8e406 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,140 +66,174 @@ 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) { throw e.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_); @@ -195,41 +242,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.
      * 
@@ -238,6 +290,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The stream has been created.
      * 
@@ -246,6 +300,8 @@ public enum State */ CREATED(1), /** + * + * *
      * The stream is running.
      * 
@@ -254,6 +310,8 @@ public enum State */ RUNNING(2), /** + * + * *
      * The stream is paused.
      * 
@@ -262,6 +320,8 @@ public enum State */ PAUSED(3), /** + * + * *
      * The stream is in maintenance mode.
      * Updates are rejected on the resource in this state.
@@ -271,6 +331,8 @@ public enum State
      */
     MAINTENANCE(4),
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -280,6 +342,8 @@ public enum State
      */
     FAILED(5),
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -288,6 +352,8 @@ public enum State */ FAILED_PERMANENTLY(6), /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -296,6 +362,8 @@ public enum State */ STARTING(7), /** + * + * *
      * The Stream is no longer reading new events, but still writing events in
      * the buffer.
@@ -308,6 +376,8 @@ public enum State
     ;
 
     /**
+     *
+     *
      * 
      * Unspecified stream state.
      * 
@@ -316,6 +386,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The stream has been created.
      * 
@@ -324,6 +396,8 @@ public enum State */ public static final int CREATED_VALUE = 1; /** + * + * *
      * The stream is running.
      * 
@@ -332,6 +406,8 @@ public enum State */ public static final int RUNNING_VALUE = 2; /** + * + * *
      * The stream is paused.
      * 
@@ -340,6 +416,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.
@@ -349,6 +427,8 @@ public enum State
      */
     public static final int MAINTENANCE_VALUE = 4;
     /**
+     *
+     *
      * 
      * The stream is experiencing an error that is preventing data from being
      * streamed.
@@ -358,6 +438,8 @@ public enum State
      */
     public static final int FAILED_VALUE = 5;
     /**
+     *
+     *
      * 
      * The stream has experienced a terminal failure.
      * 
@@ -366,6 +448,8 @@ public enum State */ public static final int FAILED_PERMANENTLY_VALUE = 6; /** + * + * *
      * The stream is starting, but not yet running.
      * 
@@ -374,6 +458,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.
@@ -383,7 +469,6 @@ public enum State
      */
     public static final int DRAINING_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -408,55 +493,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;
@@ -473,29 +564,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.
      * 
@@ -505,24 +605,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.
      * 
@@ -531,9 +639,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.
@@ -541,30 +652,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)
@@ -583,75 +693,92 @@ 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();
+            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;
               }
-              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 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;
               }
-              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();
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                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;
-              }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.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;
       }
@@ -667,30 +794,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 @@ -698,21 +831,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.
      * 
@@ -720,20 +858,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 @@ -741,21 +883,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.
      * 
@@ -763,14 +910,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; @@ -782,8 +931,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -800,12 +948,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; @@ -815,22 +965,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: @@ -864,87 +1013,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 @@ -954,6 +1111,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Backfill strategy to automatically backfill the Stream's objects.
      * Specific objects can be excluded.
@@ -961,38 +1120,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();
@@ -1002,13 +1164,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();
       }
 
@@ -1023,7 +1186,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_;
@@ -1047,58 +1211,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();
@@ -1119,7 +1292,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) {
@@ -1128,12 +1303,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() {
@@ -1143,15 +1318,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 @@ -1159,11 +1339,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 @@ -1181,13 +1364,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(); @@ -1201,6 +1387,8 @@ public Builder setOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.Ora return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1219,18 +1407,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; } @@ -1245,6 +1440,8 @@ public Builder mergeOracleExcludedObjects(com.google.cloud.datastream.v1alpha1.O return this; } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1268,16 +1465,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.
        * 
@@ -1285,7 +1487,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 { @@ -1296,6 +1499,8 @@ public com.google.cloud.datastream.v1alpha1.OracleRdbmsOrBuilder getOracleExclud } } /** + * + * *
        * Oracle data source objects to avoid backfilling.
        * 
@@ -1303,32 +1508,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 @@ -1336,11 +1554,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 @@ -1358,13 +1579,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(); @@ -1378,6 +1602,8 @@ public Builder setMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.Mysq return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1396,18 +1622,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; } @@ -1422,6 +1655,8 @@ public Builder mergeMysqlExcludedObjects(com.google.cloud.datastream.v1alpha1.My return this; } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1445,16 +1680,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.
        * 
@@ -1462,7 +1702,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 { @@ -1473,6 +1714,8 @@ public com.google.cloud.datastream.v1alpha1.MysqlRdbmsOrBuilder getMysqlExcluded } } /** + * + * *
        * MySQL data source objects to avoid backfilling.
        * 
@@ -1480,23 +1723,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) { @@ -1509,30 +1759,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; @@ -1544,47 +1796,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) @@ -1603,39 +1856,42 @@ 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) { throw e.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; @@ -1647,8 +1903,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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); } @@ -1666,12 +1921,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; @@ -1690,87 +1946,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 @@ -1780,44 +2044,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(); @@ -1825,14 +2094,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 @@ -1846,7 +2117,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; } @@ -1855,46 +2127,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; @@ -1914,7 +2193,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) { @@ -1923,6 +2204,7 @@ public Builder mergeFrom( } return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1935,30 +2217,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; @@ -1970,21 +2254,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; } @@ -2000,31 +2287,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 @@ -2033,29 +2326,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 { @@ -2066,11 +2359,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 @@ -2078,11 +2375,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 @@ -2090,11 +2391,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() { @@ -2104,11 +2408,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 @@ -2116,11 +2424,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 @@ -2128,11 +2440,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() { @@ -2140,24 +2455,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_; } @@ -2166,28 +2480,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -2195,11 +2511,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
    * Labels.
    * 
@@ -2207,16 +2524,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Labels.
    * 
@@ -2224,12 +2541,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2239,11 +2555,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 @@ -2252,29 +2571,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 { @@ -2285,11 +2604,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 @@ -2297,23 +2621,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() { @@ -2323,11 +2658,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 @@ -2335,64 +2675,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 @@ -2400,22 +2764,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.
@@ -2424,20 +2793,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 @@ -2445,21 +2818,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.
    * 
@@ -2467,9 +2845,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(); } @@ -2477,64 +2856,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; @@ -2546,8 +2945,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -2557,12 +2955,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_); } @@ -2579,10 +2973,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); } @@ -2597,49 +2994,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; @@ -2649,51 +3044,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: @@ -2756,136 +3142,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() @@ -2893,17 +3282,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(); @@ -2950,9 +3339,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 @@ -2971,7 +3360,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) { @@ -3030,38 +3420,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; @@ -3080,8 +3471,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(); @@ -3113,26 +3503,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(); @@ -3162,12 +3556,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() { @@ -3181,18 +3575,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; @@ -3201,20 +3597,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 { @@ -3222,54 +3619,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; @@ -3277,39 +3681,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) { @@ -3325,14 +3748,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(); @@ -3343,17 +3769,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; } @@ -3365,11 +3795,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) { @@ -3383,48 +3817,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_; @@ -3432,39 +3882,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) { @@ -3480,14 +3949,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(); @@ -3498,17 +3970,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; } @@ -3520,11 +3996,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) { @@ -3538,69 +4018,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(); @@ -3612,28 +4107,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 java.lang.NullPointerException(); } + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -3641,11 +4138,12 @@ public java.util.Map getLabels() { * map<string, string> labels = 4; */ @java.lang.Override - public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** + * + * *
      * Labels.
      * 
@@ -3653,16 +4151,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Labels.
      * 
@@ -3670,12 +4169,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -3683,78 +4181,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -3763,20 +4262,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 { @@ -3784,54 +4284,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; @@ -3839,39 +4346,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) { @@ -3887,11 +4413,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) { @@ -3905,17 +4435,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; } @@ -3927,11 +4463,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) { @@ -3945,48 +4485,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_; @@ -3994,41 +4550,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(); @@ -4042,11 +4618,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) { @@ -4060,17 +4640,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; } @@ -4082,11 +4669,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) { @@ -4100,48 +4691,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_; @@ -4149,51 +4758,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. */ @@ -4201,35 +4826,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 @@ -4237,19 +4871,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 { @@ -4260,6 +4898,8 @@ public com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfi } } /** + * + * *
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4267,7 +4907,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();
@@ -4281,6 +4922,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.
@@ -4300,6 +4943,8 @@ public Builder setBackfillAll(
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4307,12 +4952,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;
         }
@@ -4327,6 +4979,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.
@@ -4351,6 +5005,8 @@ public Builder clearBackfillAll() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Automatically backfill objects included in the stream source
      * configuration. Specific objects can be excluded.
@@ -4358,10 +5014,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.
@@ -4370,17 +5029,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.
@@ -4389,32 +5052,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 @@ -4422,35 +5099,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(); @@ -4464,11 +5152,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) { @@ -4482,18 +5173,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; } @@ -4508,11 +5209,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) { @@ -4531,77 +5235,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) { @@ -4611,11 +5344,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) { @@ -4625,11 +5362,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) { @@ -4639,14 +5380,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(); @@ -4660,11 +5404,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) { @@ -4678,11 +5426,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) { @@ -4698,14 +5450,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(); @@ -4719,14 +5474,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()); @@ -4737,11 +5495,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) { @@ -4755,18 +5517,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); @@ -4774,11 +5539,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) { @@ -4791,11 +5560,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) { @@ -4808,39 +5581,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 { @@ -4848,56 +5632,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); } @@ -4907,12 +5705,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(); } @@ -4921,16 +5719,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; @@ -4945,6 +5743,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 8dd899dc..8edc6c6e 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,165 +135,210 @@ 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.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** + * + * *
    * Labels.
    * 
* * map<string, string> labels = 4; */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); + java.lang.String getLabelsOrThrow(java.lang.String key); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. Display name.
    * 
* * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the sourceConfig field is set. */ boolean hasSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The sourceConfig. */ com.google.cloud.datastream.v1alpha1.SourceConfig getSourceConfig(); /** + * + * *
    * Required. Source connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.SourceConfig source_config = 6 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the destinationConfig field is set. */ boolean hasDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The destinationConfig. */ com.google.cloud.datastream.v1alpha1.DestinationConfig getDestinationConfig(); /** + * + * *
    * Required. Destination connection profile configuration.
    * 
* - * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datastream.v1alpha1.DestinationConfig destination_config = 7 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datastream.v1alpha1.DestinationConfigOrBuilder getDestinationConfigOrBuilder(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * The state of the stream.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.State state = 8; + * * @return The state. */ com.google.cloud.datastream.v1alpha1.Stream.State getState(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return Whether the backfillAll field is set. */ boolean hasBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
    * 
* * .google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy backfill_all = 101; + * * @return The backfillAll. */ com.google.cloud.datastream.v1alpha1.Stream.BackfillAllStrategy getBackfillAll(); /** + * + * *
    * Automatically backfill objects included in the stream source
    * configuration. Specific objects can be excluded.
@@ -256,78 +346,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 f204baf6..c6d0c8d8 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,73 +63,84 @@ 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) { throw e.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.
@@ -124,7 +149,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 @@ -132,6 +159,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.
@@ -140,7 +169,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 @@ -148,6 +179,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.
@@ -156,7 +189,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() { @@ -166,11 +200,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 @@ -178,32 +217,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
@@ -219,6 +272,7 @@ public com.google.cloud.datastream.v1alpha1.ConnectionProfileOrBuilder getConnec
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -227,14 +281,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
@@ -250,16 +305,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 { @@ -268,6 +322,7 @@ public java.lang.String getRequestId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,8 +334,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -300,12 +354,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_); @@ -318,25 +370,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; } @@ -364,130 +414,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(); @@ -509,14 +566,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 @@ -530,7 +589,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 { @@ -550,46 +610,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()); } @@ -619,7 +684,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) { @@ -631,8 +698,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.
@@ -641,13 +713,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.
@@ -656,17 +732,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.
@@ -675,7 +757,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) { @@ -691,6 +774,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.
@@ -699,10 +784,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(); @@ -713,6 +798,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.
@@ -721,13 +808,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; } @@ -739,6 +827,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.
@@ -747,7 +837,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) { @@ -761,6 +852,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.
@@ -769,14 +862,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.
@@ -785,17 +881,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.
@@ -804,17 +904,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_; @@ -822,41 +926,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(); @@ -870,11 +994,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) { @@ -888,17 +1016,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; } @@ -910,11 +1045,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) { @@ -928,48 +1067,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_; @@ -977,6 +1134,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
@@ -992,13 +1151,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; @@ -1007,6 +1166,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
@@ -1022,15 +1183,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 { @@ -1038,6 +1198,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
@@ -1053,20 +1215,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
@@ -1082,15 +1246,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
@@ -1106,23 +1273,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); } @@ -1132,30 +1299,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; @@ -1167,9 +1336,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 f5b12ee5..503775ce 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,83 +62,93 @@ 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) { throw e.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.
@@ -134,7 +157,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 @@ -142,6 +167,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.
@@ -150,7 +177,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 @@ -158,6 +187,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.
@@ -166,7 +197,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() { @@ -176,11 +208,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 @@ -188,23 +225,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() { @@ -214,6 +262,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
@@ -229,6 +279,7 @@ public com.google.cloud.datastream.v1alpha1.StreamOrBuilder getStreamOrBuilder()
    * 
* * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The requestId. */ @java.lang.Override @@ -237,14 +288,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
@@ -260,16 +312,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 { @@ -280,12 +331,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 @@ -296,11 +350,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 @@ -309,6 +366,7 @@ public boolean getForce() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,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 (updateMask_ != null) { output.writeMessage(1, getUpdateMask()); } @@ -347,23 +404,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; @@ -373,29 +426,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; } @@ -418,124 +467,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() @@ -543,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(); @@ -578,9 +630,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 @@ -599,7 +651,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 { @@ -621,38 +674,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; @@ -660,7 +714,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()); } @@ -696,7 +751,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) { @@ -708,8 +764,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.
@@ -718,13 +779,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.
@@ -733,17 +798,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.
@@ -752,7 +823,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) { @@ -768,6 +840,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.
@@ -776,10 +850,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(); @@ -790,6 +864,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.
@@ -798,13 +874,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; } @@ -816,6 +893,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.
@@ -824,7 +903,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) { @@ -838,6 +918,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.
@@ -846,14 +928,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.
@@ -862,17 +947,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.
@@ -881,17 +970,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_; @@ -899,39 +992,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) { @@ -947,14 +1059,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(); @@ -965,17 +1080,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; } @@ -987,11 +1108,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) { @@ -1005,48 +1130,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_; @@ -1054,6 +1195,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
@@ -1069,13 +1212,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; @@ -1084,6 +1227,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
@@ -1099,15 +1244,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 { @@ -1115,6 +1259,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
@@ -1130,20 +1276,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
@@ -1159,15 +1307,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
@@ -1183,29 +1334,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 @@ -1213,44 +1367,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 @@ -1258,37 +1421,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); } @@ -1298,12 +1467,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(); } @@ -1312,16 +1481,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; @@ -1336,6 +1505,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 12915981..75739ed6 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,47 +66,54 @@ 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) { throw e.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_); @@ -102,29 +122,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.
      * 
@@ -133,6 +159,8 @@ public enum Status */ STATUS_UNSPECIFIED(0), /** + * + * *
      * Validation did not execute.
      * 
@@ -141,6 +169,8 @@ public enum Status */ NOT_EXECUTED(1), /** + * + * *
      * Validation failed.
      * 
@@ -149,6 +179,8 @@ public enum Status */ FAILED(2), /** + * + * *
      * Validation passed.
      * 
@@ -160,6 +192,8 @@ public enum Status ; /** + * + * *
      * Unspecified status.
      * 
@@ -168,6 +202,8 @@ public enum Status */ public static final int STATUS_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Validation did not execute.
      * 
@@ -176,6 +212,8 @@ public enum Status */ public static final int NOT_EXECUTED_VALUE = 1; /** + * + * *
      * Validation failed.
      * 
@@ -184,6 +222,8 @@ public enum Status */ public static final int FAILED_VALUE = 2; /** + * + * *
      * Validation passed.
      * 
@@ -192,7 +232,6 @@ public enum Status */ public static final int PASSED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -217,50 +256,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; @@ -280,11 +320,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 @@ -293,29 +336,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 { @@ -326,33 +369,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.
    * 
@@ -364,6 +420,8 @@ public java.util.List ge return message_; } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -371,11 +429,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.
    * 
@@ -387,6 +447,8 @@ public int getMessageCount() { return message_.size(); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -398,6 +460,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind return message_.get(index); } /** + * + * *
    * Messages reflecting the validation results.
    * 
@@ -413,11 +477,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 @@ -426,29 +493,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 { @@ -457,6 +524,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -468,12 +536,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++) { @@ -494,13 +562,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_); @@ -513,20 +580,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; } @@ -553,114 +618,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() @@ -668,17 +738,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(); @@ -698,9 +768,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 @@ -719,7 +789,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_; @@ -741,38 +812,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; @@ -780,7 +852,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(); @@ -806,9 +879,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_); } @@ -846,22 +920,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; @@ -870,20 +947,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 { @@ -891,54 +969,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; @@ -946,51 +1031,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. */ @@ -998,39 +1099,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.
      * 
@@ -1045,6 +1157,8 @@ public java.util.List ge } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1059,6 +1173,8 @@ public int getMessageCount() { } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1073,6 +1189,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage getMessage(int ind } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1094,6 +1212,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1112,6 +1232,8 @@ public Builder setMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1132,6 +1254,8 @@ public Builder addMessage(com.google.cloud.datastream.v1alpha1.ValidationMessage return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1153,6 +1277,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1171,6 +1297,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1189,6 +1317,8 @@ public Builder addMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1196,11 +1326,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); @@ -1208,6 +1338,8 @@ public Builder addAllMessage( return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1225,6 +1357,8 @@ public Builder clearMessage() { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1242,6 +1376,8 @@ public Builder removeMessage(int index) { return this; } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1253,6 +1389,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessage.Builder getMessage return getMessageFieldBuilder().getBuilder(index); } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1262,19 +1400,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 { @@ -1282,6 +1423,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationMessageOrBuilder getMessag } } /** + * + * *
      * Messages reflecting the validation results.
      * 
@@ -1289,10 +1432,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.
      * 
@@ -1301,30 +1446,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_; @@ -1332,18 +1483,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; @@ -1352,20 +1505,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 { @@ -1373,61 +1527,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); } @@ -1437,12 +1598,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(); } @@ -1451,16 +1612,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; @@ -1475,6 +1636,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 6ac4f520..baf32115 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,91 +73,100 @@ 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) { throw e.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.
      * 
@@ -149,6 +175,8 @@ public enum Level */ LEVEL_UNSPECIFIED(0), /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -157,6 +185,8 @@ public enum Level */ WARNING(1), /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -168,6 +198,8 @@ public enum Level ; /** + * + * *
      * Unspecified level.
      * 
@@ -176,6 +208,8 @@ public enum Level */ public static final int LEVEL_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Potentially cause issues with the Stream.
      * 
@@ -184,6 +218,8 @@ public enum Level */ public static final int WARNING_VALUE = 1; /** + * + * *
      * Definitely cause issues with the Stream.
      * 
@@ -192,7 +228,6 @@ public enum Level */ public static final int ERROR_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -217,49 +252,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; @@ -279,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 @@ -292,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 { @@ -325,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.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_; } @@ -376,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 java.lang.NullPointerException(); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
    * 
@@ -405,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.
    * 
@@ -417,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * Additional metadata related to the result.
    * 
@@ -434,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -449,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 @@ -462,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 { @@ -493,6 +549,7 @@ public java.lang.String getCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -504,20 +561,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_); } @@ -533,19 +587,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_); @@ -558,20 +613,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; } @@ -599,139 +652,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() @@ -739,16 +800,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(); @@ -763,9 +823,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 @@ -784,7 +844,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_; @@ -799,38 +860,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; @@ -838,7 +900,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(); @@ -846,8 +909,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(); @@ -871,7 +933,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) { @@ -880,22 +943,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; @@ -904,20 +970,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 { @@ -925,54 +992,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; @@ -980,51 +1054,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. */ @@ -1032,42 +1122,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(); @@ -1079,28 +1172,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 java.lang.NullPointerException(); } + public boolean containsMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
      * 
@@ -1108,11 +1203,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.
      * 
@@ -1120,16 +1216,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * Additional metadata related to the result.
      * 
@@ -1137,12 +1234,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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); + public java.lang.String getMetadataOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1150,78 +1246,79 @@ 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 java.lang.NullPointerException(); } - internalGetMutableMetadata().getMutableMap() - .remove(key); + public Builder removeMetadata(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMetadata().getMutableMap() - .put(key, value); + public Builder putMetadata(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + 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; @@ -1230,20 +1327,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 { @@ -1251,61 +1349,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); } @@ -1315,12 +1420,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(); } @@ -1329,16 +1434,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; @@ -1353,6 +1458,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 64% 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 71293ffa..d08afb54 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,68 +84,71 @@ 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.
    * 
* * map<string, string> metadata = 3; */ - - java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getMetadataOrDefault(java.lang.String key, 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 53cdbd98..16e545fe 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,29 +71,31 @@ 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) { throw e.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_); @@ -85,22 +104,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).
@@ -113,6 +137,8 @@ public java.util.List getValida
     return validations_;
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -121,11 +147,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).
@@ -138,6 +166,8 @@ public int getValidationsCount() {
     return validations_.size();
   }
   /**
+   *
+   *
    * 
    * A list of validations (includes both executed as well as not executed
    * validations).
@@ -150,6 +180,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).
@@ -164,6 +196,7 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -175,8 +208,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < validations_.size(); i++) {
       output.writeMessage(1, validations_.get(i));
     }
@@ -190,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;
@@ -201,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.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;
   }
@@ -231,117 +262,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() @@ -349,17 +390,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(); @@ -373,9 +414,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 @@ -394,7 +435,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)) { @@ -413,38 +455,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; @@ -452,7 +495,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()) { @@ -471,9 +515,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_); } @@ -498,7 +543,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) { @@ -507,21 +553,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).
@@ -537,6 +591,8 @@ public java.util.List getValida
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -552,6 +608,8 @@ public int getValidationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -567,6 +625,8 @@ public com.google.cloud.datastream.v1alpha1.Validation getValidations(int index)
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -589,6 +649,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -608,6 +670,8 @@ public Builder setValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -629,6 +693,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).
@@ -651,6 +717,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -670,6 +738,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -689,6 +759,8 @@ public Builder addValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -700,8 +772,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);
@@ -709,6 +780,8 @@ public Builder addAllValidations(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -727,6 +800,8 @@ public Builder clearValidations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -745,6 +820,8 @@ public Builder removeValidations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -757,6 +834,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).
@@ -767,11 +846,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).
@@ -779,8 +861,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 {
@@ -788,6 +870,8 @@ public com.google.cloud.datastream.v1alpha1.ValidationOrBuilder getValidationsOr
       }
     }
     /**
+     *
+     *
      * 
      * A list of validations (includes both executed as well as not executed
      * validations).
@@ -796,10 +880,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).
@@ -809,10 +895,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).
@@ -820,27 +908,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);
     }
 
@@ -850,12 +941,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();
   }
@@ -864,16 +955,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;
@@ -888,6 +979,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 70%
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 643f41a8..d31fc2ea 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,58 +72,65 @@ 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) {
       throw e.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 @@ -115,29 +139,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 { @@ -148,11 +172,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 @@ -161,29 +188,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 { @@ -192,6 +219,7 @@ public java.lang.String getSubnet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +231,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -234,17 +261,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; } @@ -266,96 +292,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.
@@ -363,21 +397,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()
@@ -385,16 +421,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 +441,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
@@ -427,7 +462,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();
@@ -438,38 +474,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;
@@ -477,7 +514,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();
@@ -505,7 +543,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) {
@@ -517,18 +556,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; @@ -537,20 +578,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 { @@ -558,54 +600,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; @@ -613,18 +662,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; @@ -633,20 +684,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 { @@ -654,61 +706,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); } @@ -718,12 +777,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(); } @@ -732,16 +791,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; @@ -756,6 +815,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/versions.txt b/versions.txt index ff152d70..155a89d6 100644 --- a/versions.txt +++ b/versions.txt @@ -4,3 +4,5 @@ google-cloud-datastream:0.3.1:0.3.2-SNAPSHOT grpc-google-cloud-datastream-v1alpha1:0.3.1:0.3.2-SNAPSHOT proto-google-cloud-datastream-v1alpha1:0.3.1:0.3.2-SNAPSHOT +proto-google-cloud-datastream-v1:0.3.1:0.3.2-SNAPSHOT +grpc-google-cloud-datastream-v1:0.3.1:0.3.2-SNAPSHOT From 566791e6065119213763abe8b77307a41e8a21ab Mon Sep 17 00:00:00 2001 From: Neenu1995 Date: Thu, 3 Feb 2022 17:20:45 -0500 Subject: [PATCH 3/4] chore: add grpc-common-protos dependency --- google-cloud-datastream/pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/google-cloud-datastream/pom.xml b/google-cloud-datastream/pom.xml index 80eb337a..d5183734 100644 --- a/google-cloud-datastream/pom.xml +++ b/google-cloud-datastream/pom.xml @@ -41,7 +41,10 @@ com.google.api.grpc proto-google-common-protos - + + com.google.api.grpc + grpc-google-common-protos + com.google.api.grpc proto-google-cloud-datastream-v1 From 47bbbeea9c5b2d352aea4c11bbd713e06f46388e Mon Sep 17 00:00:00 2001 From: Neenu1995 Date: Thu, 3 Feb 2022 17:22:08 -0500 Subject: [PATCH 4/4] chore: fix dependency --- proto-google-cloud-datastream-v1/pom.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proto-google-cloud-datastream-v1/pom.xml b/proto-google-cloud-datastream-v1/pom.xml index 0ef6d188..27e892af 100644 --- a/proto-google-cloud-datastream-v1/pom.xml +++ b/proto-google-cloud-datastream-v1/pom.xml @@ -21,10 +21,6 @@ com.google.api.grpc proto-google-common-protos - - com.google.api.grpc - proto-google-iam-v1 - com.google.api api-common