From 5475285d9931bcbad68a64172041bcd01013617a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 22:49:02 +0000 Subject: [PATCH 1/2] feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a --- .../datastream/v1alpha1/DatastreamGrpc.java | 2767 ---------------- .../datastream/v1alpha1/DatastreamClient.java | 112 +- .../v1alpha1/DatastreamSettings.java | 22 +- .../datastream/v1alpha1/gapic_metadata.json | 0 .../datastream/v1alpha1/package-info.java | 0 .../v1alpha1/stub/DatastreamStub.java | 0 .../v1alpha1/stub/DatastreamStubSettings.java | 51 +- .../stub/GrpcDatastreamCallableFactory.java | 0 .../v1alpha1/stub/GrpcDatastreamStub.java | 244 +- .../v1alpha1/DatastreamClientTest.java | 0 .../datastream/v1alpha1/MockDatastream.java | 0 .../v1alpha1/MockDatastreamImpl.java | 0 .../datastream/v1alpha1/DatastreamGrpc.java | 2058 ++++++++++++ .../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 - 156 files changed, 19341 insertions(+), 31101 deletions(-) delete mode 100644 grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java rename {google-cloud-datastream => owl-bot-staging/v1alpha1/google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java (97%) 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 (82%) 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 (68%) 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 (72%) 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 (68%) 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 ba2b1be2..00000000 --- a/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ /dev/null @@ -1,2767 +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") -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/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 97% 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 c8048f8d..2336425e 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 @@ -16,7 +16,6 @@ package com.google.cloud.datastream.v1alpha1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -62,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. *
* @@ -2787,11 +2786,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< @@ -2802,12 +2798,7 @@ public static ApiFuture createAsync( ListConnectionProfilesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListConnectionProfilesPagedResponse apply(ListConnectionProfilesPage input) { - return new ListConnectionProfilesPagedResponse(input); - } - }, + input -> new ListConnectionProfilesPagedResponse(input), MoreExecutors.directExecutor()); } @@ -2818,9 +2809,7 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, - ListConnectionProfilesResponse, - ConnectionProfile, + ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -2856,11 +2845,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) { @@ -2880,10 +2866,7 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, - ListStreamsResponse, - Stream, - ListStreamsPage, + ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2892,14 +2875,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListStreamsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListStreamsPagedResponse apply(ListStreamsPage input) { - return new ListStreamsPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListStreamsPagedResponse(input), MoreExecutors.directExecutor()); } private ListStreamsPagedResponse(ListStreamsPage page) { @@ -2937,10 +2913,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) { @@ -2960,10 +2933,7 @@ protected ListStreamsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, - FetchStaticIpsResponse, - String, - FetchStaticIpsPage, + FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2973,12 +2943,7 @@ public static ApiFuture createAsync( FetchStaticIpsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public FetchStaticIpsPagedResponse apply(FetchStaticIpsPage input) { - return new FetchStaticIpsPagedResponse(input); - } - }, + input -> new FetchStaticIpsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3018,10 +2983,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) { @@ -3041,11 +3003,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< @@ -3056,12 +3015,7 @@ public static ApiFuture createAsync( ListPrivateConnectionsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListPrivateConnectionsPagedResponse apply(ListPrivateConnectionsPage input) { - return new ListPrivateConnectionsPagedResponse(input); - } - }, + input -> new ListPrivateConnectionsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -3072,9 +3026,7 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, - PrivateConnection, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3110,11 +3062,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) { @@ -3134,10 +3083,7 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, - ListRoutesResponse, - Route, - ListRoutesPage, + ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3146,14 +3092,7 @@ public static ApiFuture createAsync( ApiFuture futurePage = ListRoutesPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( - futurePage, - new ApiFunction() { - @Override - public ListRoutesPagedResponse apply(ListRoutesPage input) { - return new ListRoutesPagedResponse(input); - } - }, - MoreExecutors.directExecutor()); + futurePage, input -> new ListRoutesPagedResponse(input), MoreExecutors.directExecutor()); } private ListRoutesPagedResponse(ListRoutesPage page) { @@ -3191,10 +3130,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 ef9d9a9a..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(); @@ -351,14 +350,13 @@ public DatastreamStubSettings.Builder getStubSettingsBuilder() { return ((DatastreamStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; @@ -366,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(); @@ -508,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 920fb722..9b2d011f 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; @@ -806,8 +796,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 @@ -858,8 +847,7 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, - ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1435,14 +1423,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * 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) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } @@ -1453,8 +1440,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; @@ -1611,8 +1597,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 82% 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 62687745..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 @@ -29,7 +29,6 @@ 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.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.datastream.v1alpha1.ConnectionProfile; import com.google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest; @@ -412,13 +411,10 @@ protected GrpcDatastreamStub( .newBuilder() .setMethodDescriptor(listConnectionProfilesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListConnectionProfilesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -426,13 +422,10 @@ public Map extract(ListConnectionProfilesRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -440,13 +433,10 @@ public Map extract(GetConnectionProfileRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -454,15 +444,12 @@ public Map extract(CreateConnectionProfileRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(updateConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "connection_profile.name", - String.valueOf(request.getConnectionProfile().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "connection_profile.name", + String.valueOf(request.getConnectionProfile().getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -470,13 +457,10 @@ public Map extract(UpdateConnectionProfileRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -485,91 +469,70 @@ public Map extract(DeleteConnectionProfileRequest request) { .newBuilder() .setMethodDescriptor(discoverConnectionProfileMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DiscoverConnectionProfileRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings listStreamsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listStreamsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListStreamsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getStreamTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getStreamMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createStreamTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createStreamMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateStreamTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateStreamMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("stream.name", String.valueOf(request.getStream().getName())); - return params.build(); - } + 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( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings fetchErrorsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(fetchErrorsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(FetchErrorsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("stream", String.valueOf(request.getStream())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("stream", String.valueOf(request.getStream())); + return params.build(); }) .build(); GrpcCallSettings @@ -577,13 +540,10 @@ public Map extract(FetchErrorsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(fetchStaticIpsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(FetchStaticIpsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -591,13 +551,10 @@ public Map extract(FetchStaticIpsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createPrivateConnectionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreatePrivateConnectionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -605,13 +562,10 @@ public Map extract(CreatePrivateConnectionRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(getPrivateConnectionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetPrivateConnectionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -620,13 +574,10 @@ public Map extract(GetPrivateConnectionRequest request) { .newBuilder() .setMethodDescriptor(listPrivateConnectionsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListPrivateConnectionsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings @@ -634,65 +585,50 @@ public Map extract(ListPrivateConnectionsRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePrivateConnectionMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeletePrivateConnectionRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings createRouteTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createRouteMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateRouteRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getRouteTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getRouteMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetRouteRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings listRoutesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listRoutesMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListRoutesRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings deleteRouteTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteRouteMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteRouteRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); @@ -1084,7 +1020,13 @@ public UnaryCallable deleteRouteCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override 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..0721001f --- /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,2058 @@ +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") +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..f78133a6 --- /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\"\323\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:\200\001\352A}\n+data" + + "stream.googleapis.com/PrivateConnection\022" + + "Nprojects/{project}/locations/{location}" + + "/privateConnections/{privateConnection}\"" + + ";\n\023PrivateConnectivity\022$\n\027private_connec" + + "tion_name\030\001 \001(\tB\003\340A\002\"\330\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_na" + + "me\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\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":\204\001\352A\200\001\n\037datastream.googleapis.com/Route" + + "\022]projects/{project}/locations/{location" + + "}/privateConnections/{privateConnection}" + + "/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\ncl" + + "ient_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_certif" + + "icate_set\030\020 \001(\010B\003\340A\003\"\241\010\n\021ConnectionProfi" + + "le\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\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.cloud" + + ".datastream.v1alpha1.ConnectionProfile.L" + + "abelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022I\n" + + "\016oracle_profile\030d \001(\0132/.google.cloud.dat" + + "astream.v1alpha1.OracleProfileH\000\022C\n\013gcs_" + + "profile\030e \001(\0132,.google.cloud.datastream." + + "v1alpha1.GcsProfileH\000\022G\n\rmysql_profile\030f" + + " \001(\0132..google.cloud.datastream.v1alpha1." + + "MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001(\013" + + "28.google.cloud.datastream.v1alpha1.NoCo" + + "nnectivitySettingsH\001\022h\n\036static_service_i" + + "p_connectivity\030\311\001 \001(\0132=.google.cloud.dat" + + "astream.v1alpha1.StaticServiceIpConnecti" + + "vityH\001\022c\n\030forward_ssh_connectivity\030\312\001 \001(" + + "\0132>.google.cloud.datastream.v1alpha1.For" + + "wardSshTunnelConnectivityH\001\022V\n\024private_c" + + "onnectivity\030\313\001 \001(\01325.google.cloud.datast" + + "ream.v1alpha1.PrivateConnectivityH\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:\200\001\352A}\n+datastream.googleapis.com/Conn" + + "ectionProfile\022Nprojects/{project}/locati" + + "ons/{location}/connectionProfiles/{conne" + + "ctionProfile}B\t\n\007profileB\016\n\014connectivity" + + "\"\273\001\n\014OracleColumn\022\023\n\013column_name\030\001 \001(\t\022\021" + + "\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpre" + + "cision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding\030" + + "\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030\010" + + " \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Oracle" + + "Table\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_colu" + + "mns\030\002 \003(\0132..google.cloud.datastream.v1al" + + "pha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013sch" + + "ema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\0132-." + + "google.cloud.datastream.v1alpha1.OracleT" + + "able\"U\n\013OracleRdbms\022F\n\016oracle_schemas\030\001 " + + "\003(\0132..google.cloud.datastream.v1alpha1.O" + + "racleSchema\"\231\001\n\022OracleSourceConfig\022@\n\tal" + + "lowlist\030\001 \001(\0132-.google.cloud.datastream." + + "v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 \001(\013" + + "2-.google.cloud.datastream.v1alpha1.Orac" + + "leRdbms\"\231\001\n\013MysqlColumn\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\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.data" + + "stream.v1alpha1.MysqlColumn\"j\n\rMysqlData" + + "base\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_tab" + + "les\030\002 \003(\0132,.google.cloud.datastream.v1al" + + "pha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysql_d" + + "atabases\030\001 \003(\0132/.google.cloud.datastream" + + ".v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSourceC" + + "onfig\022?\n\tallowlist\030\001 \001(\0132,.google.cloud." + + "datastream.v1alpha1.MysqlRdbms\022@\n\nreject" + + "list\030\002 \001(\0132,.google.cloud.datastream.v1a" + + "lpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036sou" + + "rce_connection_profile_name\030\001 \001(\tB\003\340A\002\022T" + + "\n\024oracle_source_config\030d \001(\01324.google.cl" + + "oud.datastream.v1alpha1.OracleSourceConf" + + "igH\000\022R\n\023mysql_source_config\030e \001(\01323.goog" + + "le.cloud.datastream.v1alpha1.MysqlSource" + + "ConfigH\000B\026\n\024source_stream_config\"\020\n\016Avro" + + "FileFormat\"\212\002\n\016JsonFileFormat\022N\n\022schema_" + + "file_format\030\001 \001(\01622.google.cloud.datastr" + + "eam.v1alpha1.SchemaFileFormat\022U\n\013compres" + + "sion\030\002 \001(\0162@.google.cloud.datastream.v1a" + + "lpha1.JsonFileFormat.JsonCompression\"Q\n\017" + + "JsonCompression\022 \n\034JSON_COMPRESSION_UNSP" + + "ECIFIED\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.cloud.d" + + "atastream.v1alpha1.GcsFileFormatB\002\030\001\022\030\n\020" + + "file_rotation_mb\030\003 \001(\005\0229\n\026file_rotation_" + + "interval\030\004 \001(\0132\031.google.protobuf.Duratio" + + "n\022L\n\020avro_file_format\030d \001(\01320.google.clo" + + "ud.datastream.v1alpha1.AvroFileFormatH\000\022" + + "L\n\020json_file_format\030e \001(\01320.google.cloud" + + ".datastream.v1alpha1.JsonFileFormatH\000B\r\n" + + "\013file_format\"\274\001\n\021DestinationConfig\0220\n#de" + + "stination_connection_profile_name\030\001 \001(\tB" + + "\003\340A\002\022X\n\026gcs_destination_config\030d \001(\01326.g" + + "oogle.cloud.datastream.v1alpha1.GcsDesti" + + "nationConfigH\000B\033\n\031destination_stream_con" + + "fig\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\01324." + + "google.cloud.datastream.v1alpha1.Stream." + + "LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022J" + + "\n\rsource_config\030\006 \001(\0132..google.cloud.dat" + + "astream.v1alpha1.SourceConfigB\003\340A\002\022T\n\022de" + + "stination_config\030\007 \001(\01323.google.cloud.da" + + "tastream.v1alpha1.DestinationConfigB\003\340A\002" + + "\022=\n\005state\030\010 \001(\0162..google.cloud.datastrea" + + "m.v1alpha1.Stream.State\022T\n\014backfill_all\030" + + "e \001(\0132<.google.cloud.datastream.v1alpha1" + + ".Stream.BackfillAllStrategyH\000\022V\n\rbackfil" + + "l_none\030f \001(\0132=.google.cloud.datastream.v" + + "1alpha1.Stream.BackfillNoneStrategyH\000\022<\n" + + "\006errors\030\t \003(\0132\'.google.cloud.datastream." + + "v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllStrat" + + "egy\022P\n\027oracle_excluded_objects\030\001 \001(\0132-.g" + + "oogle.cloud.datastream.v1alpha1.OracleRd" + + "bmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\0132,." + + "google.cloud.datastream.v1alpha1.MysqlRd" + + "bmsH\000B\022\n\020excluded_objects\032\026\n\024BackfillNon" + + "eStrategy\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_UNSP" + + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006P" + + "AUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026\n\022" + + "FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DR" + + "AINING\020\010:_\352A\\\n datastream.googleapis.com" + + "/Stream\0228projects/{project}/locations/{l" + + "ocation}/streams/{stream}B\023\n\021backfill_st" + + "rategy\"\343\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\nerro" + + "r_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerror_t" + + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n" + + "\007details\030\005 \003(\01324.google.cloud.datastream" + + ".v1alpha1.Error.DetailsEntry\032.\n\014DetailsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\020" + + "ValidationResult\022A\n\013validations\030\001 \003(\0132,." + + "google.cloud.datastream.v1alpha1.Validat" + + "ion\"\206\002\n\nValidation\022\023\n\013description\030\001 \001(\t\022" + + "C\n\006status\030\002 \001(\01623.google.cloud.datastrea" + + "m.v1alpha1.Validation.Status\022D\n\007message\030" + + "\003 \003(\01323.google.cloud.datastream.v1alpha1" + + ".ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006Stat" + + "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXECUT" + + "ED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Validat" + + "ionMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030\002 \001" + + "(\01629.google.cloud.datastream.v1alpha1.Va" + + "lidationMessage.Level\022S\n\010metadata\030\003 \003(\0132" + + "A.google.cloud.datastream.v1alpha1.Valid" + + "ationMessage.MetadataEntry\022\014\n\004code\030\004 \001(\t" + + "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFIED\020" + + "\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileForm" + + "at\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010\n\004A" + + "VRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHEMA_" + + "FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_F" + + "ILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.goog" + + "le.cloud.datastream.v1alpha1B\035CloudDatas" + + "treamResourcesProtoP\001ZJgoogle.golang.org" + + "/genproto/googleapis/cloud/datastream/v1" + + "alpha1;datastream\252\002 Google.Cloud.Datastr" + + "eam.V1Alpha1\312\002 Google\\Cloud\\Datastream\\V" + + "1alpha1\352\002#Google::Cloud::Datastream::V1a" + + "lpha1b\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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 689a8577..31d88bda 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 3f8c36a8..645eeace 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 a1e5c6bd..8967f70b 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 1e45844f..363df0ee 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 3dc27f65..daa44cc2 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 (!getNameBytes().isEmpty()) { 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 f157cea5..a7180305 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 (!getNameBytes().isEmpty()) { 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 5885df7c..5126090e 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 (!getNameBytes().isEmpty()) { 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 f02cbeae..42a07933 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 (!getNameBytes().isEmpty()) { 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 9b06e51a..71d50a7d 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 (!getDestinationConnectionProfileNameBytes().isEmpty()) { - 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 (!getDestinationConnectionProfileNameBytes().isEmpty()) { - 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 bc8627e5..e89059b6 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 (!getParentBytes().isEmpty()) { 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 f4f593aa..40eaf843 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 (!getReasonBytes().isEmpty()) { 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 154417e4..583c6cd5 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 (!getStreamBytes().isEmpty()) { 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 68% 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 c2a7b502..15ef1502 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 (!getNameBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 5a995de9..bd4d8779 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 57920fc3..9ebcafbc 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 (!getHostnameBytes().isEmpty()) { 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 3156c5c1..a394a9c0 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 (!getPathBytes().isEmpty()) { 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 (!getPathBytes().isEmpty()) { 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 548a0042..30b8c41d 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 (!getBucketNameBytes().isEmpty()) { 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 b4a1488d..93eddbec 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 (!getNameBytes().isEmpty()) { 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 1c1d97cc..befefd40 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 (!getNameBytes().isEmpty()) { 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 82114082..a68e5105 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 (!getNameBytes().isEmpty()) { 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 6d3dac37..17d87099 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 (!getNameBytes().isEmpty()) { 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 9d930f05..ffdc4ee7 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 8f7a4c4f..3ceadb77 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 (!getNextPageTokenBytes().isEmpty()) { 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 b51967d9..c806f2bd 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 cce7e029..7fa131ea 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 (!getNextPageTokenBytes().isEmpty()) { 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 c8b67d4b..2790d0bc 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 4189a064..69f77774 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 (!getNextPageTokenBytes().isEmpty()) { 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 a589debe..05f3a29d 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 82799c47..bcde3e0f 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 (!getNextPageTokenBytes().isEmpty()) { 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 72% 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 24c35a36..478a5fcf 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 (!getColumnNameBytes().isEmpty()) { 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 (!getCollationBytes().isEmpty()) { 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 9f765a5b..49040154 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 (!getDatabaseNameBytes().isEmpty()) { 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 3c457ae5..62f08b67 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 (!getHostnameBytes().isEmpty()) { 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 (!getUsernameBytes().isEmpty()) { 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 cc858ae3..9abf8894 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 (!getClientKeyBytes().isEmpty()) { 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 (!getClientCertificateBytes().isEmpty()) { 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 (!getCaCertificateBytes().isEmpty()) { 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 f28b556e..ade73774 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 (!getTableNameBytes().isEmpty()) {
       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 68% 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 f053744e..e4a9a0cd 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 (!getTargetBytes().isEmpty()) { 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 (!getApiVersionBytes().isEmpty()) { 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 f41a1ea1..86a0fab8 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 (!getColumnNameBytes().isEmpty()) { 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 (!getEncodingBytes().isEmpty()) { 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 49f2b2ef..0be8bb2f 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 (!getHostnameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -516,7 +468,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getDatabaseServiceBytes().isEmpty()) { 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 (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -545,15 +499,15 @@ public int getSerializedSize() { if (!getDatabaseServiceBytes().isEmpty()) { 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 7035caa7..828604c6 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 (!getSchemaNameBytes().isEmpty()) { 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 93ab6d26..a3d43d62 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 (!getTableNameBytes().isEmpty()) {
       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 e0194302..3df76493 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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 a330a335..260d64ee 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 (!getPrivateConnectionNameBytes().isEmpty()) { 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 5ddd4dd4..6dede5ab 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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 292b013a..b4aa922e 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 (!getSourceConnectionProfileNameBytes().isEmpty()) { 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 (!getSourceConnectionProfileNameBytes().isEmpty()) { - 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 d713b00f..df4c02d2 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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 8e594783..f1e78ffb 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 (!getRequestIdBytes().isEmpty()) { 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 b6308b91..06835338 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 (!getRequestIdBytes().isEmpty()) { 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 7bc79458..a0965e59 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 (!getDescriptionBytes().isEmpty()) { 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 (!getDescriptionBytes().isEmpty()) { 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 (!getCodeBytes().isEmpty()) { 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 0495e57b..c1fc7475 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 (!getMessageBytes().isEmpty()) { 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 (!getCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -587,20 +533,19 @@ public int getSerializedSize() { if (!getMessageBytes().isEmpty()) { 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 (!getCodeBytes().isEmpty()) { 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 27bf88a3..6c3cbd37 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 (!getVpcNameBytes().isEmpty()) { 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 f898181d..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\"\323\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:\200\001\352A}\n+data" - + "stream.googleapis.com/PrivateConnection\022" - + "Nprojects/{project}/locations/{location}" - + "/privateConnections/{privateConnection}\"" - + ";\n\023PrivateConnectivity\022$\n\027private_connec" - + "tion_name\030\001 \001(\tB\003\340A\002\"\330\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_na" - + "me\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\013Lab" - + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":\204\001\352A\200\001\n\037datastream.googleapis.com/Route" - + "\022]projects/{project}/locations/{location" - + "}/privateConnections/{privateConnection}" - + "/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\ncl" - + "ient_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_certif" - + "icate_set\030\020 \001(\010B\003\340A\003\"\241\010\n\021ConnectionProfi" - + "le\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\013u" - + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.cloud" - + ".datastream.v1alpha1.ConnectionProfile.L" - + "abelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022I\n" - + "\016oracle_profile\030d \001(\0132/.google.cloud.dat" - + "astream.v1alpha1.OracleProfileH\000\022C\n\013gcs_" - + "profile\030e \001(\0132,.google.cloud.datastream." - + "v1alpha1.GcsProfileH\000\022G\n\rmysql_profile\030f" - + " \001(\0132..google.cloud.datastream.v1alpha1." - + "MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001(\013" - + "28.google.cloud.datastream.v1alpha1.NoCo" - + "nnectivitySettingsH\001\022h\n\036static_service_i" - + "p_connectivity\030\311\001 \001(\0132=.google.cloud.dat" - + "astream.v1alpha1.StaticServiceIpConnecti" - + "vityH\001\022c\n\030forward_ssh_connectivity\030\312\001 \001(" - + "\0132>.google.cloud.datastream.v1alpha1.For" - + "wardSshTunnelConnectivityH\001\022V\n\024private_c" - + "onnectivity\030\313\001 \001(\01325.google.cloud.datast" - + "ream.v1alpha1.PrivateConnectivityH\001\032-\n\013L" - + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" - + "8\001:\200\001\352A}\n+datastream.googleapis.com/Conn" - + "ectionProfile\022Nprojects/{project}/locati" - + "ons/{location}/connectionProfiles/{conne" - + "ctionProfile}B\t\n\007profileB\016\n\014connectivity" - + "\"\273\001\n\014OracleColumn\022\023\n\013column_name\030\001 \001(\t\022\021" - + "\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpre" - + "cision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding\030" - + "\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030\010" - + " \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Oracle" - + "Table\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_colu" - + "mns\030\002 \003(\0132..google.cloud.datastream.v1al" - + "pha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013sch" - + "ema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\0132-." - + "google.cloud.datastream.v1alpha1.OracleT" - + "able\"U\n\013OracleRdbms\022F\n\016oracle_schemas\030\001 " - + "\003(\0132..google.cloud.datastream.v1alpha1.O" - + "racleSchema\"\231\001\n\022OracleSourceConfig\022@\n\tal" - + "lowlist\030\001 \001(\0132-.google.cloud.datastream." - + "v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 \001(\013" - + "2-.google.cloud.datastream.v1alpha1.Orac" - + "leRdbms\"\231\001\n\013MysqlColumn\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\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.data" - + "stream.v1alpha1.MysqlColumn\"j\n\rMysqlData" - + "base\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_tab" - + "les\030\002 \003(\0132,.google.cloud.datastream.v1al" - + "pha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysql_d" - + "atabases\030\001 \003(\0132/.google.cloud.datastream" - + ".v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSourceC" - + "onfig\022?\n\tallowlist\030\001 \001(\0132,.google.cloud." - + "datastream.v1alpha1.MysqlRdbms\022@\n\nreject" - + "list\030\002 \001(\0132,.google.cloud.datastream.v1a" - + "lpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036sou" - + "rce_connection_profile_name\030\001 \001(\tB\003\340A\002\022T" - + "\n\024oracle_source_config\030d \001(\01324.google.cl" - + "oud.datastream.v1alpha1.OracleSourceConf" - + "igH\000\022R\n\023mysql_source_config\030e \001(\01323.goog" - + "le.cloud.datastream.v1alpha1.MysqlSource" - + "ConfigH\000B\026\n\024source_stream_config\"\020\n\016Avro" - + "FileFormat\"\212\002\n\016JsonFileFormat\022N\n\022schema_" - + "file_format\030\001 \001(\01622.google.cloud.datastr" - + "eam.v1alpha1.SchemaFileFormat\022U\n\013compres" - + "sion\030\002 \001(\0162@.google.cloud.datastream.v1a" - + "lpha1.JsonFileFormat.JsonCompression\"Q\n\017" - + "JsonCompression\022 \n\034JSON_COMPRESSION_UNSP" - + "ECIFIED\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.cloud.d" - + "atastream.v1alpha1.GcsFileFormatB\002\030\001\022\030\n\020" - + "file_rotation_mb\030\003 \001(\005\0229\n\026file_rotation_" - + "interval\030\004 \001(\0132\031.google.protobuf.Duratio" - + "n\022L\n\020avro_file_format\030d \001(\01320.google.clo" - + "ud.datastream.v1alpha1.AvroFileFormatH\000\022" - + "L\n\020json_file_format\030e \001(\01320.google.cloud" - + ".datastream.v1alpha1.JsonFileFormatH\000B\r\n" - + "\013file_format\"\274\001\n\021DestinationConfig\0220\n#de" - + "stination_connection_profile_name\030\001 \001(\tB" - + "\003\340A\002\022X\n\026gcs_destination_config\030d \001(\01326.g" - + "oogle.cloud.datastream.v1alpha1.GcsDesti" - + "nationConfigH\000B\033\n\031destination_stream_con" - + "fig\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" - + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\01324." - + "google.cloud.datastream.v1alpha1.Stream." - + "LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022J" - + "\n\rsource_config\030\006 \001(\0132..google.cloud.dat" - + "astream.v1alpha1.SourceConfigB\003\340A\002\022T\n\022de" - + "stination_config\030\007 \001(\01323.google.cloud.da" - + "tastream.v1alpha1.DestinationConfigB\003\340A\002" - + "\022=\n\005state\030\010 \001(\0162..google.cloud.datastrea" - + "m.v1alpha1.Stream.State\022T\n\014backfill_all\030" - + "e \001(\0132<.google.cloud.datastream.v1alpha1" - + ".Stream.BackfillAllStrategyH\000\022V\n\rbackfil" - + "l_none\030f \001(\0132=.google.cloud.datastream.v" - + "1alpha1.Stream.BackfillNoneStrategyH\000\022<\n" - + "\006errors\030\t \003(\0132\'.google.cloud.datastream." - + "v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllStrat" - + "egy\022P\n\027oracle_excluded_objects\030\001 \001(\0132-.g" - + "oogle.cloud.datastream.v1alpha1.OracleRd" - + "bmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\0132,." - + "google.cloud.datastream.v1alpha1.MysqlRd" - + "bmsH\000B\022\n\020excluded_objects\032\026\n\024BackfillNon" - + "eStrategy\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_UNSP" - + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006P" - + "AUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026\n\022" - + "FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DR" - + "AINING\020\010:_\352A\\\n datastream.googleapis.com" - + "/Stream\0228projects/{project}/locations/{l" - + "ocation}/streams/{stream}B\023\n\021backfill_st" - + "rategy\"\343\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\nerro" - + "r_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerror_t" - + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n" - + "\007details\030\005 \003(\01324.google.cloud.datastream" - + ".v1alpha1.Error.DetailsEntry\032.\n\014DetailsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\020" - + "ValidationResult\022A\n\013validations\030\001 \003(\0132,." - + "google.cloud.datastream.v1alpha1.Validat" - + "ion\"\206\002\n\nValidation\022\023\n\013description\030\001 \001(\t\022" - + "C\n\006status\030\002 \001(\01623.google.cloud.datastrea" - + "m.v1alpha1.Validation.Status\022D\n\007message\030" - + "\003 \003(\01323.google.cloud.datastream.v1alpha1" - + ".ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006Stat" - + "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXECUT" - + "ED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Validat" - + "ionMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030\002 \001" - + "(\01629.google.cloud.datastream.v1alpha1.Va" - + "lidationMessage.Level\022S\n\010metadata\030\003 \003(\0132" - + "A.google.cloud.datastream.v1alpha1.Valid" - + "ationMessage.MetadataEntry\022\014\n\004code\030\004 \001(\t" - + "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - + "\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFIED\020" - + "\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileForm" - + "at\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010\n\004A" - + "VRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHEMA_" - + "FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_F" - + "ILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.goog" - + "le.cloud.datastream.v1alpha1B\035CloudDatas" - + "treamResourcesProtoP\001ZJgoogle.golang.org" - + "/genproto/googleapis/cloud/datastream/v1" - + "alpha1;datastream\252\002 Google.Cloud.Datastr" - + "eam.V1Alpha1\312\002 Google\\Cloud\\Datastream\\V" - + "1alpha1\352\002#Google::Cloud::Datastream::V1a" - + "lpha1b\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 09f57f0cbf23dea95d8b15f6d62e0fb6925bf20b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 22:50:39 +0000 Subject: [PATCH 2/2] =?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/master/packages/owl-bot/README.md --- .../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 | 2767 ++++++++++++++++ .../datastream/v1alpha1/DatastreamGrpc.java | 2058 ------------ .../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 - .../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 156 files changed, 30909 insertions(+), 19240 deletions(-) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamClient.java (98%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamSettings.java (97%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/gapic_metadata.json (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/package-info.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStub.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/DatastreamStubSettings.java (98%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamCallableFactory.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/main/java/com/google/cloud/datastream/v1alpha1/stub/GrpcDatastreamStub.java (99%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java (100%) rename {owl-bot-staging/v1alpha1/google-cloud-datastream => google-cloud-datastream}/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java (100%) create mode 100644 grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/AvroFileFormatOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamResourcesProto.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/CloudDatastreamServiceProto.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetConnectionProfileRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetPrivateConnectionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetRouteRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/GetStreamRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/NoConnectivitySettingsOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/PrivateConnectivityOrBuilder.java delete mode 100644 owl-bot-staging/v1alpha1/proto-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/StaticServiceIpConnectivityOrBuilder.java rename {owl-bot-staging/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 (68%) 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 (72%) 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 (68%) 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/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 2336425e..4babda3a 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. *
* @@ -2786,8 +2786,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< @@ -2809,7 +2812,9 @@ private ListConnectionProfilesPagedResponse(ListConnectionProfilesPage page) { public static class ListConnectionProfilesPage extends AbstractPage< - ListConnectionProfilesRequest, ListConnectionProfilesResponse, ConnectionProfile, + ListConnectionProfilesRequest, + ListConnectionProfilesResponse, + ConnectionProfile, ListConnectionProfilesPage> { private ListConnectionProfilesPage( @@ -2845,8 +2850,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) { @@ -2866,7 +2874,10 @@ protected ListConnectionProfilesFixedSizeCollection createCollection( public static class ListStreamsPagedResponse extends AbstractPagedListResponse< - ListStreamsRequest, ListStreamsResponse, Stream, ListStreamsPage, + ListStreamsRequest, + ListStreamsResponse, + Stream, + ListStreamsPage, ListStreamsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2913,7 +2924,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) { @@ -2933,7 +2947,10 @@ protected ListStreamsFixedSizeCollection createCollection( public static class FetchStaticIpsPagedResponse extends AbstractPagedListResponse< - FetchStaticIpsRequest, FetchStaticIpsResponse, String, FetchStaticIpsPage, + FetchStaticIpsRequest, + FetchStaticIpsResponse, + String, + FetchStaticIpsPage, FetchStaticIpsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2983,7 +3000,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) { @@ -3003,8 +3023,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< @@ -3026,7 +3049,9 @@ private ListPrivateConnectionsPagedResponse(ListPrivateConnectionsPage page) { public static class ListPrivateConnectionsPage extends AbstractPage< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, PrivateConnection, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, + PrivateConnection, ListPrivateConnectionsPage> { private ListPrivateConnectionsPage( @@ -3062,8 +3087,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) { @@ -3083,7 +3111,10 @@ protected ListPrivateConnectionsFixedSizeCollection createCollection( public static class ListRoutesPagedResponse extends AbstractPagedListResponse< - ListRoutesRequest, ListRoutesResponse, Route, ListRoutesPage, + ListRoutesRequest, + ListRoutesResponse, + Route, + ListRoutesPage, ListRoutesFixedSizeCollection> { public static ApiFuture createAsync( @@ -3130,7 +3161,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 9b2d011f..54f0b03f 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; @@ -796,7 +806,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 @@ -847,7 +858,8 @@ public static class Builder extends StubSettings.Builder getPrivateConnectionSettings; private final PagedCallSettings.Builder< - ListPrivateConnectionsRequest, ListPrivateConnectionsResponse, + ListPrivateConnectionsRequest, + ListPrivateConnectionsResponse, ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings; private final UnaryCallSettings.Builder @@ -1440,7 +1452,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; @@ -1597,7 +1610,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/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/DatastreamClientTest.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastream.java diff --git a/owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java b/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java similarity index 100% rename from owl-bot-staging/v1alpha1/google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java rename to google-cloud-datastream/src/test/java/com/google/cloud/datastream/v1alpha1/MockDatastreamImpl.java diff --git a/grpc-google-cloud-datastream-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..ba2b1be2 --- /dev/null +++ b/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java @@ -0,0 +1,2767 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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") +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/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 0721001f..00000000 --- a/owl-bot-staging/v1alpha1/grpc-google-cloud-datastream-v1alpha1/src/main/java/com/google/cloud/datastream/v1alpha1/DatastreamGrpc.java +++ /dev/null @@ -1,2058 +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") -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 f78133a6..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\"\323\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:\200\001\352A}\n+data" + - "stream.googleapis.com/PrivateConnection\022" + - "Nprojects/{project}/locations/{location}" + - "/privateConnections/{privateConnection}\"" + - ";\n\023PrivateConnectivity\022$\n\027private_connec" + - "tion_name\030\001 \001(\tB\003\340A\002\"\330\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_na" + - "me\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\013Lab" + - "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - ":\204\001\352A\200\001\n\037datastream.googleapis.com/Route" + - "\022]projects/{project}/locations/{location" + - "}/privateConnections/{privateConnection}" + - "/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\ncl" + - "ient_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_certif" + - "icate_set\030\020 \001(\010B\003\340A\003\"\241\010\n\021ConnectionProfi" + - "le\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\013u" + - "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + - "tampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.cloud" + - ".datastream.v1alpha1.ConnectionProfile.L" + - "abelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022I\n" + - "\016oracle_profile\030d \001(\0132/.google.cloud.dat" + - "astream.v1alpha1.OracleProfileH\000\022C\n\013gcs_" + - "profile\030e \001(\0132,.google.cloud.datastream." + - "v1alpha1.GcsProfileH\000\022G\n\rmysql_profile\030f" + - " \001(\0132..google.cloud.datastream.v1alpha1." + - "MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001(\013" + - "28.google.cloud.datastream.v1alpha1.NoCo" + - "nnectivitySettingsH\001\022h\n\036static_service_i" + - "p_connectivity\030\311\001 \001(\0132=.google.cloud.dat" + - "astream.v1alpha1.StaticServiceIpConnecti" + - "vityH\001\022c\n\030forward_ssh_connectivity\030\312\001 \001(" + - "\0132>.google.cloud.datastream.v1alpha1.For" + - "wardSshTunnelConnectivityH\001\022V\n\024private_c" + - "onnectivity\030\313\001 \001(\01325.google.cloud.datast" + - "ream.v1alpha1.PrivateConnectivityH\001\032-\n\013L" + - "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001:\200\001\352A}\n+datastream.googleapis.com/Conn" + - "ectionProfile\022Nprojects/{project}/locati" + - "ons/{location}/connectionProfiles/{conne" + - "ctionProfile}B\t\n\007profileB\016\n\014connectivity" + - "\"\273\001\n\014OracleColumn\022\023\n\013column_name\030\001 \001(\t\022\021" + - "\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpre" + - "cision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding\030" + - "\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030\010" + - " \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Oracle" + - "Table\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_colu" + - "mns\030\002 \003(\0132..google.cloud.datastream.v1al" + - "pha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013sch" + - "ema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\0132-." + - "google.cloud.datastream.v1alpha1.OracleT" + - "able\"U\n\013OracleRdbms\022F\n\016oracle_schemas\030\001 " + - "\003(\0132..google.cloud.datastream.v1alpha1.O" + - "racleSchema\"\231\001\n\022OracleSourceConfig\022@\n\tal" + - "lowlist\030\001 \001(\0132-.google.cloud.datastream." + - "v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 \001(\013" + - "2-.google.cloud.datastream.v1alpha1.Orac" + - "leRdbms\"\231\001\n\013MysqlColumn\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\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.data" + - "stream.v1alpha1.MysqlColumn\"j\n\rMysqlData" + - "base\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_tab" + - "les\030\002 \003(\0132,.google.cloud.datastream.v1al" + - "pha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysql_d" + - "atabases\030\001 \003(\0132/.google.cloud.datastream" + - ".v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSourceC" + - "onfig\022?\n\tallowlist\030\001 \001(\0132,.google.cloud." + - "datastream.v1alpha1.MysqlRdbms\022@\n\nreject" + - "list\030\002 \001(\0132,.google.cloud.datastream.v1a" + - "lpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036sou" + - "rce_connection_profile_name\030\001 \001(\tB\003\340A\002\022T" + - "\n\024oracle_source_config\030d \001(\01324.google.cl" + - "oud.datastream.v1alpha1.OracleSourceConf" + - "igH\000\022R\n\023mysql_source_config\030e \001(\01323.goog" + - "le.cloud.datastream.v1alpha1.MysqlSource" + - "ConfigH\000B\026\n\024source_stream_config\"\020\n\016Avro" + - "FileFormat\"\212\002\n\016JsonFileFormat\022N\n\022schema_" + - "file_format\030\001 \001(\01622.google.cloud.datastr" + - "eam.v1alpha1.SchemaFileFormat\022U\n\013compres" + - "sion\030\002 \001(\0162@.google.cloud.datastream.v1a" + - "lpha1.JsonFileFormat.JsonCompression\"Q\n\017" + - "JsonCompression\022 \n\034JSON_COMPRESSION_UNSP" + - "ECIFIED\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.cloud.d" + - "atastream.v1alpha1.GcsFileFormatB\002\030\001\022\030\n\020" + - "file_rotation_mb\030\003 \001(\005\0229\n\026file_rotation_" + - "interval\030\004 \001(\0132\031.google.protobuf.Duratio" + - "n\022L\n\020avro_file_format\030d \001(\01320.google.clo" + - "ud.datastream.v1alpha1.AvroFileFormatH\000\022" + - "L\n\020json_file_format\030e \001(\01320.google.cloud" + - ".datastream.v1alpha1.JsonFileFormatH\000B\r\n" + - "\013file_format\"\274\001\n\021DestinationConfig\0220\n#de" + - "stination_connection_profile_name\030\001 \001(\tB" + - "\003\340A\002\022X\n\026gcs_destination_config\030d \001(\01326.g" + - "oogle.cloud.datastream.v1alpha1.GcsDesti" + - "nationConfigH\000B\033\n\031destination_stream_con" + - "fig\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + - "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + - "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\01324." + - "google.cloud.datastream.v1alpha1.Stream." + - "LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022J" + - "\n\rsource_config\030\006 \001(\0132..google.cloud.dat" + - "astream.v1alpha1.SourceConfigB\003\340A\002\022T\n\022de" + - "stination_config\030\007 \001(\01323.google.cloud.da" + - "tastream.v1alpha1.DestinationConfigB\003\340A\002" + - "\022=\n\005state\030\010 \001(\0162..google.cloud.datastrea" + - "m.v1alpha1.Stream.State\022T\n\014backfill_all\030" + - "e \001(\0132<.google.cloud.datastream.v1alpha1" + - ".Stream.BackfillAllStrategyH\000\022V\n\rbackfil" + - "l_none\030f \001(\0132=.google.cloud.datastream.v" + - "1alpha1.Stream.BackfillNoneStrategyH\000\022<\n" + - "\006errors\030\t \003(\0132\'.google.cloud.datastream." + - "v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllStrat" + - "egy\022P\n\027oracle_excluded_objects\030\001 \001(\0132-.g" + - "oogle.cloud.datastream.v1alpha1.OracleRd" + - "bmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\0132,." + - "google.cloud.datastream.v1alpha1.MysqlRd" + - "bmsH\000B\022\n\020excluded_objects\032\026\n\024BackfillNon" + - "eStrategy\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_UNSP" + - "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006P" + - "AUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026\n\022" + - "FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DR" + - "AINING\020\010:_\352A\\\n datastream.googleapis.com" + - "/Stream\0228projects/{project}/locations/{l" + - "ocation}/streams/{stream}B\023\n\021backfill_st" + - "rategy\"\343\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\nerro" + - "r_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerror_t" + - "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n" + - "\007details\030\005 \003(\01324.google.cloud.datastream" + - ".v1alpha1.Error.DetailsEntry\032.\n\014DetailsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\020" + - "ValidationResult\022A\n\013validations\030\001 \003(\0132,." + - "google.cloud.datastream.v1alpha1.Validat" + - "ion\"\206\002\n\nValidation\022\023\n\013description\030\001 \001(\t\022" + - "C\n\006status\030\002 \001(\01623.google.cloud.datastrea" + - "m.v1alpha1.Validation.Status\022D\n\007message\030" + - "\003 \003(\01323.google.cloud.datastream.v1alpha1" + - ".ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006Stat" + - "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXECUT" + - "ED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Validat" + - "ionMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030\002 \001" + - "(\01629.google.cloud.datastream.v1alpha1.Va" + - "lidationMessage.Level\022S\n\010metadata\030\003 \003(\0132" + - "A.google.cloud.datastream.v1alpha1.Valid" + - "ationMessage.MetadataEntry\022\014\n\004code\030\004 \001(\t" + - "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFIED\020" + - "\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileForm" + - "at\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010\n\004A" + - "VRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHEMA_" + - "FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_F" + - "ILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.goog" + - "le.cloud.datastream.v1alpha1B\035CloudDatas" + - "treamResourcesProtoP\001ZJgoogle.golang.org" + - "/genproto/googleapis/cloud/datastream/v1" + - "alpha1;datastream\252\002 Google.Cloud.Datastr" + - "eam.V1Alpha1\312\002 Google\\Cloud\\Datastream\\V" + - "1alpha1\352\002#Google::Cloud::Datastream::V1a" + - "lpha1b\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/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..f898181d --- /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\"\323\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:\200\001\352A}\n+data" + + "stream.googleapis.com/PrivateConnection\022" + + "Nprojects/{project}/locations/{location}" + + "/privateConnections/{privateConnection}\"" + + ";\n\023PrivateConnectivity\022$\n\027private_connec" + + "tion_name\030\001 \001(\tB\003\340A\002\"\330\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_na" + + "me\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\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":\204\001\352A\200\001\n\037datastream.googleapis.com/Route" + + "\022]projects/{project}/locations/{location" + + "}/privateConnections/{privateConnection}" + + "/routes/{route}\"\312\001\n\016MysqlSslConfig\022\027\n\ncl" + + "ient_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_certif" + + "icate_set\030\020 \001(\010B\003\340A\003\"\241\010\n\021ConnectionProfi" + + "le\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\013u" + + "pdate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tampB\003\340A\003\022O\n\006labels\030\004 \003(\0132?.google.cloud" + + ".datastream.v1alpha1.ConnectionProfile.L" + + "abelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022I\n" + + "\016oracle_profile\030d \001(\0132/.google.cloud.dat" + + "astream.v1alpha1.OracleProfileH\000\022C\n\013gcs_" + + "profile\030e \001(\0132,.google.cloud.datastream." + + "v1alpha1.GcsProfileH\000\022G\n\rmysql_profile\030f" + + " \001(\0132..google.cloud.datastream.v1alpha1." + + "MysqlProfileH\000\022T\n\017no_connectivity\030\310\001 \001(\013" + + "28.google.cloud.datastream.v1alpha1.NoCo" + + "nnectivitySettingsH\001\022h\n\036static_service_i" + + "p_connectivity\030\311\001 \001(\0132=.google.cloud.dat" + + "astream.v1alpha1.StaticServiceIpConnecti" + + "vityH\001\022c\n\030forward_ssh_connectivity\030\312\001 \001(" + + "\0132>.google.cloud.datastream.v1alpha1.For" + + "wardSshTunnelConnectivityH\001\022V\n\024private_c" + + "onnectivity\030\313\001 \001(\01325.google.cloud.datast" + + "ream.v1alpha1.PrivateConnectivityH\001\032-\n\013L" + + "abelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:\200\001\352A}\n+datastream.googleapis.com/Conn" + + "ectionProfile\022Nprojects/{project}/locati" + + "ons/{location}/connectionProfiles/{conne" + + "ctionProfile}B\t\n\007profileB\016\n\014connectivity" + + "\"\273\001\n\014OracleColumn\022\023\n\013column_name\030\001 \001(\t\022\021" + + "\n\tdata_type\030\002 \001(\t\022\016\n\006length\030\003 \001(\005\022\021\n\tpre" + + "cision\030\004 \001(\005\022\r\n\005scale\030\005 \001(\005\022\020\n\010encoding\030" + + "\006 \001(\t\022\023\n\013primary_key\030\007 \001(\010\022\020\n\010nullable\030\010" + + " \001(\010\022\030\n\020ordinal_position\030\t \001(\005\"i\n\013Oracle" + + "Table\022\022\n\ntable_name\030\001 \001(\t\022F\n\016oracle_colu" + + "mns\030\002 \003(\0132..google.cloud.datastream.v1al" + + "pha1.OracleColumn\"i\n\014OracleSchema\022\023\n\013sch" + + "ema_name\030\001 \001(\t\022D\n\roracle_tables\030\002 \003(\0132-." + + "google.cloud.datastream.v1alpha1.OracleT" + + "able\"U\n\013OracleRdbms\022F\n\016oracle_schemas\030\001 " + + "\003(\0132..google.cloud.datastream.v1alpha1.O" + + "racleSchema\"\231\001\n\022OracleSourceConfig\022@\n\tal" + + "lowlist\030\001 \001(\0132-.google.cloud.datastream." + + "v1alpha1.OracleRdbms\022A\n\nrejectlist\030\002 \001(\013" + + "2-.google.cloud.datastream.v1alpha1.Orac" + + "leRdbms\"\231\001\n\013MysqlColumn\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\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.data" + + "stream.v1alpha1.MysqlColumn\"j\n\rMysqlData" + + "base\022\025\n\rdatabase_name\030\001 \001(\t\022B\n\014mysql_tab" + + "les\030\002 \003(\0132,.google.cloud.datastream.v1al" + + "pha1.MysqlTable\"V\n\nMysqlRdbms\022H\n\017mysql_d" + + "atabases\030\001 \003(\0132/.google.cloud.datastream" + + ".v1alpha1.MysqlDatabase\"\226\001\n\021MysqlSourceC" + + "onfig\022?\n\tallowlist\030\001 \001(\0132,.google.cloud." + + "datastream.v1alpha1.MysqlRdbms\022@\n\nreject" + + "list\030\002 \001(\0132,.google.cloud.datastream.v1a" + + "lpha1.MysqlRdbms\"\375\001\n\014SourceConfig\022+\n\036sou" + + "rce_connection_profile_name\030\001 \001(\tB\003\340A\002\022T" + + "\n\024oracle_source_config\030d \001(\01324.google.cl" + + "oud.datastream.v1alpha1.OracleSourceConf" + + "igH\000\022R\n\023mysql_source_config\030e \001(\01323.goog" + + "le.cloud.datastream.v1alpha1.MysqlSource" + + "ConfigH\000B\026\n\024source_stream_config\"\020\n\016Avro" + + "FileFormat\"\212\002\n\016JsonFileFormat\022N\n\022schema_" + + "file_format\030\001 \001(\01622.google.cloud.datastr" + + "eam.v1alpha1.SchemaFileFormat\022U\n\013compres" + + "sion\030\002 \001(\0162@.google.cloud.datastream.v1a" + + "lpha1.JsonFileFormat.JsonCompression\"Q\n\017" + + "JsonCompression\022 \n\034JSON_COMPRESSION_UNSP" + + "ECIFIED\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.cloud.d" + + "atastream.v1alpha1.GcsFileFormatB\002\030\001\022\030\n\020" + + "file_rotation_mb\030\003 \001(\005\0229\n\026file_rotation_" + + "interval\030\004 \001(\0132\031.google.protobuf.Duratio" + + "n\022L\n\020avro_file_format\030d \001(\01320.google.clo" + + "ud.datastream.v1alpha1.AvroFileFormatH\000\022" + + "L\n\020json_file_format\030e \001(\01320.google.cloud" + + ".datastream.v1alpha1.JsonFileFormatH\000B\r\n" + + "\013file_format\"\274\001\n\021DestinationConfig\0220\n#de" + + "stination_connection_profile_name\030\001 \001(\tB" + + "\003\340A\002\022X\n\026gcs_destination_config\030d \001(\01326.g" + + "oogle.cloud.datastream.v1alpha1.GcsDesti" + + "nationConfigH\000B\033\n\031destination_stream_con" + + "fig\"\330\t\n\006Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013cre" + + "ate_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022D\n\006labels\030\004 \003(\01324." + + "google.cloud.datastream.v1alpha1.Stream." + + "LabelsEntry\022\031\n\014display_name\030\005 \001(\tB\003\340A\002\022J" + + "\n\rsource_config\030\006 \001(\0132..google.cloud.dat" + + "astream.v1alpha1.SourceConfigB\003\340A\002\022T\n\022de" + + "stination_config\030\007 \001(\01323.google.cloud.da" + + "tastream.v1alpha1.DestinationConfigB\003\340A\002" + + "\022=\n\005state\030\010 \001(\0162..google.cloud.datastrea" + + "m.v1alpha1.Stream.State\022T\n\014backfill_all\030" + + "e \001(\0132<.google.cloud.datastream.v1alpha1" + + ".Stream.BackfillAllStrategyH\000\022V\n\rbackfil" + + "l_none\030f \001(\0132=.google.cloud.datastream.v" + + "1alpha1.Stream.BackfillNoneStrategyH\000\022<\n" + + "\006errors\030\t \003(\0132\'.google.cloud.datastream." + + "v1alpha1.ErrorB\003\340A\003\032\313\001\n\023BackfillAllStrat" + + "egy\022P\n\027oracle_excluded_objects\030\001 \001(\0132-.g" + + "oogle.cloud.datastream.v1alpha1.OracleRd" + + "bmsH\000\022N\n\026mysql_excluded_objects\030\002 \001(\0132,." + + "google.cloud.datastream.v1alpha1.MysqlRd" + + "bmsH\000B\022\n\020excluded_objects\032\026\n\024BackfillNon" + + "eStrategy\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_UNSP" + + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006P" + + "AUSED\020\003\022\017\n\013MAINTENANCE\020\004\022\n\n\006FAILED\020\005\022\026\n\022" + + "FAILED_PERMANENTLY\020\006\022\014\n\010STARTING\020\007\022\014\n\010DR" + + "AINING\020\010:_\352A\\\n datastream.googleapis.com" + + "/Stream\0228projects/{project}/locations/{l" + + "ocation}/streams/{stream}B\023\n\021backfill_st" + + "rategy\"\343\001\n\005Error\022\016\n\006reason\030\001 \001(\t\022\022\n\nerro" + + "r_uuid\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022.\n\nerror_t" + + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\022E\n" + + "\007details\030\005 \003(\01324.google.cloud.datastream" + + ".v1alpha1.Error.DetailsEntry\032.\n\014DetailsE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\020" + + "ValidationResult\022A\n\013validations\030\001 \003(\0132,." + + "google.cloud.datastream.v1alpha1.Validat" + + "ion\"\206\002\n\nValidation\022\023\n\013description\030\001 \001(\t\022" + + "C\n\006status\030\002 \001(\01623.google.cloud.datastrea" + + "m.v1alpha1.Validation.Status\022D\n\007message\030" + + "\003 \003(\01323.google.cloud.datastream.v1alpha1" + + ".ValidationMessage\022\014\n\004code\030\004 \001(\t\"J\n\006Stat" + + "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014NOT_EXECUT" + + "ED\020\001\022\n\n\006FAILED\020\002\022\n\n\006PASSED\020\003\"\272\002\n\021Validat" + + "ionMessage\022\017\n\007message\030\001 \001(\t\022H\n\005level\030\002 \001" + + "(\01629.google.cloud.datastream.v1alpha1.Va" + + "lidationMessage.Level\022S\n\010metadata\030\003 \003(\0132" + + "A.google.cloud.datastream.v1alpha1.Valid" + + "ationMessage.MetadataEntry\022\014\n\004code\030\004 \001(\t" + + "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"6\n\005Level\022\025\n\021LEVEL_UNSPECIFIED\020" + + "\000\022\013\n\007WARNING\020\001\022\t\n\005ERROR\020\002*>\n\rGcsFileForm" + + "at\022\037\n\033GCS_FILE_FORMAT_UNSPECIFIED\020\000\022\010\n\004A" + + "VRO\020\001\032\002\030\001*`\n\020SchemaFileFormat\022\"\n\036SCHEMA_" + + "FILE_FORMAT_UNSPECIFIED\020\000\022\022\n\016NO_SCHEMA_F" + + "ILE\020\001\022\024\n\020AVRO_SCHEMA_FILE\020\002B\377\001\n$com.goog" + + "le.cloud.datastream.v1alpha1B\035CloudDatas" + + "treamResourcesProtoP\001ZJgoogle.golang.org" + + "/genproto/googleapis/cloud/datastream/v1" + + "alpha1;datastream\252\002 Google.Cloud.Datastr" + + "eam.V1Alpha1\312\002 Google\\Cloud\\Datastream\\V" + + "1alpha1\352\002#Google::Cloud::Datastream::V1a" + + "lpha1b\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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 31d88bda..689a8577 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 645eeace..3f8c36a8 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 8967f70b..a1e5c6bd 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 363df0ee..1e45844f 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 (!getParentBytes().isEmpty()) { 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 (!getRequestIdBytes().isEmpty()) { 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 daa44cc2..3dc27f65 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 (!getNameBytes().isEmpty()) { 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 a7180305..f157cea5 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 (!getNameBytes().isEmpty()) { 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 5126090e..5885df7c 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 (!getNameBytes().isEmpty()) { 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 42a07933..f02cbeae 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 (!getNameBytes().isEmpty()) { 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 71d50a7d..9b06e51a 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 (!getDestinationConnectionProfileNameBytes().isEmpty()) { - 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 (!getDestinationConnectionProfileNameBytes().isEmpty()) { - 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 e89059b6..bc8627e5 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 (!getParentBytes().isEmpty()) { 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 40eaf843..f4f593aa 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 (!getReasonBytes().isEmpty()) { 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 583c6cd5..154417e4 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 (!getStreamBytes().isEmpty()) { 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 68% 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 15ef1502..c2a7b502 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 (!getNameBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 bd4d8779..5a995de9 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 9ebcafbc..57920fc3 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 (!getHostnameBytes().isEmpty()) { 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 a394a9c0..3156c5c1 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 (!getPathBytes().isEmpty()) { 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 (!getPathBytes().isEmpty()) { 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 30b8c41d..548a0042 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 (!getBucketNameBytes().isEmpty()) { 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 93eddbec..b4a1488d 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 (!getNameBytes().isEmpty()) { 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 befefd40..1c1d97cc 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 (!getNameBytes().isEmpty()) { 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 a68e5105..82114082 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 (!getNameBytes().isEmpty()) { 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 17d87099..6d3dac37 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 (!getNameBytes().isEmpty()) { 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 ffdc4ee7..9d930f05 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 3ceadb77..8f7a4c4f 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 (!getNextPageTokenBytes().isEmpty()) { 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 c806f2bd..b51967d9 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 7fa131ea..cce7e029 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 (!getNextPageTokenBytes().isEmpty()) { 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 2790d0bc..c8b67d4b 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 69f77774..4189a064 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 (!getNextPageTokenBytes().isEmpty()) { 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 05f3a29d..a589debe 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 (!getParentBytes().isEmpty()) { 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 (!getPageTokenBytes().isEmpty()) { 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 bcde3e0f..82799c47 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 (!getNextPageTokenBytes().isEmpty()) { 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 72% 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 478a5fcf..24c35a36 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 (!getColumnNameBytes().isEmpty()) { 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 (!getCollationBytes().isEmpty()) { 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 49040154..9f765a5b 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 (!getDatabaseNameBytes().isEmpty()) { 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 62f08b67..3c457ae5 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 (!getHostnameBytes().isEmpty()) { 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 (!getUsernameBytes().isEmpty()) { 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 9abf8894..cc858ae3 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 (!getClientKeyBytes().isEmpty()) { 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 (!getClientCertificateBytes().isEmpty()) { 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 (!getCaCertificateBytes().isEmpty()) { 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 ade73774..f28b556e 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 (!getTableNameBytes().isEmpty()) {
       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 68% 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 e4a9a0cd..f053744e 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 (!getTargetBytes().isEmpty()) { 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 (!getApiVersionBytes().isEmpty()) { 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 86a0fab8..f41a1ea1 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 (!getColumnNameBytes().isEmpty()) { 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 (!getEncodingBytes().isEmpty()) { 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 0be8bb2f..49f2b2ef 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 (!getHostnameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, hostname_); } @@ -468,8 +516,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!getDatabaseServiceBytes().isEmpty()) { 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 (!getUsernameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, username_); @@ -499,15 +545,15 @@ public int getSerializedSize() { if (!getDatabaseServiceBytes().isEmpty()) { 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 828604c6..7035caa7 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 (!getSchemaNameBytes().isEmpty()) { 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 a3d43d62..93ab6d26 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 (!getTableNameBytes().isEmpty()) {
       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 3df76493..e0194302 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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 260d64ee..a330a335 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 (!getPrivateConnectionNameBytes().isEmpty()) { 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 6dede5ab..5ddd4dd4 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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 b4aa922e..292b013a 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 (!getSourceConnectionProfileNameBytes().isEmpty()) { 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 (!getSourceConnectionProfileNameBytes().isEmpty()) { - 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 df4c02d2..d713b00f 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 (!getNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 (!getDisplayNameBytes().isEmpty()) { 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 f1e78ffb..8e594783 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 (!getRequestIdBytes().isEmpty()) { 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 06835338..b6308b91 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 (!getRequestIdBytes().isEmpty()) { 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 a0965e59..7bc79458 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 (!getDescriptionBytes().isEmpty()) { 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 (!getDescriptionBytes().isEmpty()) { 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 (!getCodeBytes().isEmpty()) { 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 c1fc7475..0495e57b 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 (!getMessageBytes().isEmpty()) { 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 (!getCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, code_); } @@ -533,19 +587,20 @@ public int getSerializedSize() { if (!getMessageBytes().isEmpty()) { 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 (!getCodeBytes().isEmpty()) { 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 6c3cbd37..27bf88a3 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 (!getVpcNameBytes().isEmpty()) { 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